Crash (segfault) when saving or applying preferences

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash (segfault) when saving or applying preferences

rickfitz
Ubuntu 8.04 with Subversion r1317.
Start mscore, select Edit/Preferences from menu.
Click on "Apply" or "OK" button, instant crash (Segmentation fault).
Also tried with an old version I'd saved from rev1273, and same crash occurs.

Terminal shows the following messages:
QObject::connect: Cannot connect QSizeGrip::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect QLabel::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect QLabel::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect QScrollBar::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect QScrollBar::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect QWidget::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
QObject::connect: Cannot connect Palette::destroyed(QObject*) to (null)::widgetDestroyed(QObject*)
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

rickfitz
Some progress with debugging this crash (now using rev 1330).
The crash occurs when either of the following calls is made in "preferences.cpp", function PreferenceDialog::apply():
  qApp->setStyleSheet(appStyleSheet());
  QApplication::setStyle(s);
By commenting out these two calls I can now use the preferences dialog without crashing.
I know very little about Qt, so I'm now stuck. Please someone, help me out here!
Help/AboutQt reports version 4.4.0.

rickfitz wrote
Ubuntu 8.04 with Subversion r1317.
Start mscore, select Edit/Preferences from menu.
Click on "Apply" or "OK" button, instant crash (Segmentation fault).
Also tried with an old version I'd saved from rev1273, and same crash occurs.
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

rickfitz
Have upgraded Qt to version 4.4.3, and now seems OK.
The README file lists as requirement "qt4 gui lib version qt4.4.x", so 4.4.0 should be OK.
Maybe 4.4.0 is OK and my installation was somehow bad, but if the README file is wrong, could somebody with commit rights please update it, to save anyone else wasting time trying to resolve crashes (or just giving up and losing interest).

rickfitz wrote
Some progress with debugging this crash (now using rev 1330).
The crash occurs when either of the following calls is made in "preferences.cpp", function PreferenceDialog::apply():
  qApp->setStyleSheet(appStyleSheet());
  QApplication::setStyle(s);
By commenting out these two calls I can now use the preferences dialog without crashing.
I know very little about Qt, so I'm now stuck. Please someone, help me out here!
Help/AboutQt reports version 4.4.0.

rickfitz wrote
Ubuntu 8.04 with Subversion r1317.
Start mscore, select Edit/Preferences from menu.
Click on "Apply" or "OK" button, instant crash (Segmentation fault).
Also tried with an old version I'd saved from rev1273, and same crash occurs.
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

wschweer
Administrator
I tried qt4.4.0 and could not reproduce your bug. Until there are others
reporting problems with qt4.4.0 i still think it should work.
There could be other reasons for problems with the toolchain. For example you
may get problems if the qt lib is compiled with a different compiler than
mscore due to subtle changes in the binary interface. This is definitely the
case between gcc3x and gcc4x compiler.

Am Montag 01 Dezember 2008 01:32:26 schrieb rickfitz:

> Have upgraded Qt to version 4.4.3, and now seems OK.
> The README file lists as requirement "qt4 gui lib version qt4.4.x", so
> 4.4.0 should be OK.
> Maybe 4.4.0 is OK and my installation was somehow bad, but if the README
> file is wrong, could somebody with commit rights please update it, to save
> anyone else wasting time trying to resolve crashes (or just giving up and
> losing interest).
>
> rickfitz wrote:
> > Some progress with debugging this crash (now using rev 1330).
> > The crash occurs when either of the following calls is made in
> > "preferences.cpp", function PreferenceDialog::apply():
> >   qApp->setStyleSheet(appStyleSheet());
> >   QApplication::setStyle(s);
> > By commenting out these two calls I can now use the preferences dialog
> > without crashing.
> > I know very little about Qt, so I'm now stuck. Please someone, help me
> > out here!
> > Help/AboutQt reports version 4.4.0.
> >
> > rickfitz wrote:
> >> Ubuntu 8.04 with Subversion r1317.
> >> Start mscore, select Edit/Preferences from menu.
> >> Click on "Apply" or "OK" button, instant crash (Segmentation fault).
> >> Also tried with an old version I'd saved from rev1273, and same crash
> >> occurs.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

rickfitz
I was guided by Toby Smithe's Ubuntu PPA package, which has Qt >=4.4.3 as a dependency. The PPA for MuseScore also contains version 4.4.3 of Qt, which is where I upgraded my Qt libs from.
If most Ubuntu users have Toby's package (with Qt-4.4.3), then problems with 4.4.0 won't be seen, at least on Ubuntu. Maybe Toby could clarify this from his own experience?

wschweer wrote
I tried qt4.4.0 and could not reproduce your bug. Until there are others
reporting problems with qt4.4.0 i still think it should work.
There could be other reasons for problems with the toolchain. For example you
may get problems if the qt lib is compiled with a different compiler than
mscore due to subtle changes in the binary interface. This is definitely the
case between gcc3x and gcc4x compiler.

Am Montag 01 Dezember 2008 01:32:26 schrieb rickfitz:
> Have upgraded Qt to version 4.4.3, and now seems OK.
> The README file lists as requirement "qt4 gui lib version qt4.4.x", so
> 4.4.0 should be OK.
> Maybe 4.4.0 is OK and my installation was somehow bad, but if the README
> file is wrong, could somebody with commit rights please update it, to save
> anyone else wasting time trying to resolve crashes (or just giving up and
> losing interest).
>
> rickfitz wrote:
> > Some progress with debugging this crash (now using rev 1330).
> > The crash occurs when either of the following calls is made in
> > "preferences.cpp", function PreferenceDialog::apply():
> >   qApp->setStyleSheet(appStyleSheet());
> >   QApplication::setStyle(s);
> > By commenting out these two calls I can now use the preferences dialog
> > without crashing.
> > I know very little about Qt, so I'm now stuck. Please someone, help me
> > out here!
> > Help/AboutQt reports version 4.4.0.
> >
> > rickfitz wrote:
> >> Ubuntu 8.04 with Subversion r1317.
> >> Start mscore, select Edit/Preferences from menu.
> >> Click on "Apply" or "OK" button, instant crash (Segmentation fault).
> >> Also tried with an old version I'd saved from rev1273, and same crash
> >> occurs.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

Toby Smithe
On Tue, Dec 2, 2008 at 7:22 PM, rickfitz <[hidden email]> wrote:
>
> I was guided by Toby Smithe's Ubuntu PPA package, which has Qt >=4.4.3 as a
> dependency. The PPA for MuseScore also contains version 4.4.3 of Qt, which
> is where I upgraded my Qt libs from.
> If most Ubuntu users have Toby's package (with Qt-4.4.3), then problems with
> 4.4.0 won't be seen, at least on Ubuntu. Maybe Toby could clarify this from
> his own experience?

Building the initial package (r1229) for Hardy required Qt at least
version 4.4.0, or the package would fail to build on the CMake
configuration stage. See the build log[0] for details, taking note of
these lines:

-- The installed Qt version 4.3.4 is too old, at least version 4.4.0 is required
CMake Error: Fatal error: QT (version >= 4.3.0) required. Cmake tries
to detect QT4 by searching for 'qmake' in your PATH.If you have QT4
installed, make sure qmake is found in your PATH. If you compiled QT4
yourself make sure your new qmake ist found _first_ in your PATH.

The situation may since have changed, but I do not plan to support
ancient Qt4 versions, and there is no harm in upgrading; especially if
you wish to use the latest mscore packages.

Hope this clarifies the situation,

Toby

[0] http://launchpadlibrarian.net/19238830/buildlog_ubuntu-hardy-i386.mscore_0.9.4b1229%2Bdfsg-0ubuntu~hardy1_FAILEDTOBUILD.txt.gz

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

Toby Smithe-2
On Tue, Dec 2, 2008 at 9:57 PM, Toby Smithe <[hidden email]> wrote:

> On Tue, Dec 2, 2008 at 7:22 PM, rickfitz <[hidden email]> wrote:
>>
>> I was guided by Toby Smithe's Ubuntu PPA package, which has Qt >=4.4.3 as a
>> dependency. The PPA for MuseScore also contains version 4.4.3 of Qt, which
>> is where I upgraded my Qt libs from.
>> If most Ubuntu users have Toby's package (with Qt-4.4.3), then problems with
>> 4.4.0 won't be seen, at least on Ubuntu. Maybe Toby could clarify this from
>> his own experience?
>
> Building the initial package (r1229) for Hardy required Qt at least
> version 4.4.0, or the package would fail to build on the CMake
> configuration stage. See the build log[0] for details, taking note of
> these lines:
>
> -- The installed Qt version 4.3.4 is too old, at least version 4.4.0 is required

I'd just like to extend this further: I thought that, since 4.4.3 was
the current stable version in intrepid at the time of that upload, it
would be most sensible to include packages for that version, rather
than any previous version, as that was proven to be relatively stable.

The mscore packages produce the dependency rule automatically in the
build scripts to ensure that the same versions of libraries used to
build the package are used to run the package, minimising the
possibility of ABI incompatibilities. It may be possible, if you were
to force dpkg to install the package, to run mscore against an older
version of the Qt4 library, but I cannot support that, and I could not
say whether the ABI for older versions is at all compatible. If bugs
were reported in that configuration, I would instruct users to upgrade
to the "correct" version of the library and attempt reproduction.
Validity could only be confirmed if the bug would still be presented.

It need not be imperative for MuseScore to support bizarre
configurations, thus dismissing the gravity of the statement,
"problems with 4.4.0 won't be seen".

Hope this helps,

Toby

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Crash (segfault) when saving or applying preferences

Toby Smithe-2
In reply to this post by rickfitz
Apologies for the out-of-order posting; I originally sent this message
from an unsubscribed address.

On Tue, Dec 2, 2008 at 7:22 PM, rickfitz <[hidden email]> wrote:
>
> I was guided by Toby Smithe's Ubuntu PPA package, which has Qt >=4.4.3 as a
> dependency. The PPA for MuseScore also contains version 4.4.3 of Qt, which
> is where I upgraded my Qt libs from.
> If most Ubuntu users have Toby's package (with Qt-4.4.3), then problems with
> 4.4.0 won't be seen, at least on Ubuntu. Maybe Toby could clarify this from
> his own experience?

Building the initial package (r1229) for Hardy required Qt at least
version 4.4.0, or the package would fail to build on the CMake
configuration stage. See the build log[0] for details, taking note of
these lines:

-- The installed Qt version 4.3.4 is too old, at least version 4.4.0 is required
CMake Error: Fatal error: QT (version >= 4.3.0) required. Cmake tries
to detect QT4 by searching for 'qmake' in your PATH.If you have QT4
installed, make sure qmake is found in your PATH. If you compiled QT4
yourself make sure your new qmake ist found _first_ in your PATH.

The situation may since have changed, but I do not plan to support
ancient Qt4 versions, and there is no harm in upgrading; especially if
you wish to use the latest mscore packages.

Hope this clarifies the situation,

Toby

[0] http://launchpadlibrarian.net/19238830/buildlog_ubuntu-hardy-i386.mscore_0.9.4b1229%2Bdfsg-0ubuntu~hardy1_FAILEDTOBUILD.txt.gz

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer