You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 25th 2012, 11:46pm

Phonon Crashes after migrate from Qt4.7 to Qt4.8

Hi all,
I'm developing an Qt Phonon application.
it was working fine w/ Qt 4.7
then I decided to migrate to Qt 4.8

And now I got a crash in this line:
_mediaObject = new Phonon::MediaObject(_centralWidget);


_mediaObject is a Phonon::MediaObject
and _centralWidget is a QWidget*


at first I saw that my system had 2 Qt installations (one dylib and other as framework)... and it was confusing somehow...
and even my Qmake pointing to the framework I still get my application linking to dylib...
So I deleted manually the dylib (I know maybe it was wrong but I didn't figure out a better way to uninstall that =x), and now my application successfull link to framework, but crashes at that line


the otool -L output
phonon.framework/Versions/4/phonon (compatibility version 4.4.0, current version 4.4.0)

QtDBus.framework/Versions/4/QtDBus (compatibility version 4.8.0, current version 4.8.0)
QtXml.framework/Versions/4/QtXml (compatibility version 4.8.0, current version 4.8.0)
QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.0)

QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.0)
QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)

/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)


The Phonon is 4.4, maybe it's a problem?

and here is the crashreport:

http://pastebin.ca/2106145




My OS: OSX 10.6
G++ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Qt: 4.8

2

Thursday, January 26th 2012, 8:26pm

Anyone? =/

Junior

Professional

  • "Junior" is male

Posts: 1,622

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

3

Thursday, January 26th 2012, 9:52pm

I found this, but I don't know if it would be helpful.

Quoted

Mac OS X

On Mac OS X, Qt uses QuickTime for its backend. The minimum supported version is 7.0.
Deploying Phonon Applications on Windows and Mac OS X

On Windows and Mac OS X, the Qt backend makes use of the QtOpenGL module. You therefore need to deploy the QtOpenGL shared library. If this is not what you want, it is possible to configure Qt without OpenGL support. In that case, you need to run configure with the -no-opengl option.


ref: http://developer.qt.nokia.com/doc/qt-4.8…w.html#mac-os-x

4

Friday, January 27th 2012, 2:14pm

Hi, thanks for the answer.

I tried to change the link option to opengl, but nothing changes...
I think it's not related w/ deploy... because before upgrade to Qt4.8 it was working.

I've searched about the error in CrashReport (EXC_BAD_ACCESS in QObject::moveToThread(QThread*))
And it seems to be related to multiple Qt libraries installed, but I can't figure out how to solve.

5

Friday, February 3rd 2012, 10:29pm

I tried to change the link option to opengl, but nothing changes...
I think it's not related w/ deploy... because before upgrade to Qt4.8 it was working.
I've searched about the error in CrashReport (EXC_BAD_ACCESS in QObject::moveToThread(QThread*))
And it seems to be related to multiple Qt libraries installed, but I can't figure out how to solve.
I don't think it is related to the things you describe above, but instead to this: https://bugreports.qt-project.org/browse/QTSDK-1140

Even compiling and running the qmusicplayer sample gives me the same problem on my Lion machine. I really need Phonon, but according to the bug tracker a fix does not seem to be released. Any ideas?

6

Sunday, February 5th 2012, 11:14am

I have now rebuilt QT with DBUS-support disabled and that seems to do the trick.

Similar threads

Used tags

crash, phonon, qt4.8