Cannot move to target thread

Asked by jus

OSX 10.5.8 / QT 4.6

Build went fine from lp:~mixxxdevelopers/mixxx/features_sqlite with "scons m4a=0 qtdir=/Developer/Applications/Qt"

When i launch the app, Mixxx will hang and then die.

Console message:
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Setting up plugin paths...
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: ...done.
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: setting Qt's plugin seach path (on OS X)
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Mixxx Trunk "(bzr 2510; built on: Dec 4 2009 @ 18:25:49) " is starting...
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: At current version Trunk
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: CachingReader using 4980736 bytes.
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: CachingReader using 4980736 bytes.
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: ControlObject::getControl returning NULL for ( "[Mixer Profile]" , "LoEQFrequency" )
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: SampleRate 0
12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Latency 0
12/4/09 6:35:06 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Warning: [Main]: QObject::moveToThread: Current thread (0x247f160) is not the object's thread (0x240ca20).
12/4/09 6:35:06 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Cannot move to target thread (0x240ca20)
12/4/09 6:35:07 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Warning: [Main]: QObject::moveToThread: Current thread (0x247f160) is not the object's thread (0x240ca20).
12/4/09 6:35:07 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Cannot move to target thread (0x240ca20)
12/4/09 6:35:21 PM /usr/sbin/spindump[38265] process 38262 is being monitored
12/4/09 6:35:23 PM /usr/sbin/spindump[38265] process 38262 is being force quit
12/4/09 6:35:26 PM com.apple.launchd[171] ([0x0-0x8c08c].Mixxx 1.7 waveform[38262]) Exited: Terminated

The current lp:mixxx on the other hand builds and runs pretty flawless.
Any hints whats the problem here?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Mixxx Edit question
Assignee:
No assignee Edit question
Solved by:
jus
Solved:
Last query:
Last reply:
Revision history for this message
Albert Santoni (gamegod) said :
#1

I had this problem until I delete my Mixxx.app bundle in the osx_build
directory. After that, I ran "scons bundle" to recreate it and
everything worked for me again.

Hope this helps,
Albert

On Fri, Dec 4, 2009 at 10:01 AM, jus
<email address hidden> wrote:
> New question #92851 on Mixxx:
> https://answers.launchpad.net/mixxx/+question/92851
>
> OSX 10.5.8 / QT 4.6
>
> Build went fine from lp:~mixxxdevelopers/mixxx/features_sqlite with "scons m4a=0 qtdir=/Developer/Applications/Qt"
>
> When i launch the app, Mixxx will hang and then die.
>
> Console message:
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Setting up plugin paths...
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: ...done.
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: setting Qt's plugin seach path (on OS X)
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Mixxx Trunk "(bzr 2510; built on: Dec  4 2009 @ 18:25:49) " is starting...
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: At current version Trunk
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: CachingReader using 4980736 bytes.
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: CachingReader using 4980736 bytes.
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: ControlObject::getControl returning NULL for ( "[Mixer Profile]" , "LoEQFrequency" )
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: SampleRate 0
> 12/4/09 6:35:05 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Debug: [Main]: Latency 0
> 12/4/09 6:35:06 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Warning: [Main]: QObject::moveToThread: Current thread (0x247f160) is not the object's thread (0x240ca20).
> 12/4/09 6:35:06 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Cannot move to target thread (0x240ca20)
> 12/4/09 6:35:07 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Warning: [Main]: QObject::moveToThread: Current thread (0x247f160) is not the object's thread (0x240ca20).
> 12/4/09 6:35:07 PM [0x0-0x8c08c].Mixxx 1.7 waveform[38262] Cannot move to target thread (0x240ca20)
> 12/4/09 6:35:21 PM /usr/sbin/spindump[38265] process 38262 is being monitored
> 12/4/09 6:35:23 PM /usr/sbin/spindump[38265] process 38262 is being force quit
> 12/4/09 6:35:26 PM com.apple.launchd[171] ([0x0-0x8c08c].Mixxx 1.7 waveform[38262]) Exited: Terminated
>
> The current lp:mixxx on the other hand builds and runs pretty flawless.
> Any hints whats the problem here?
>
> Thanks.
>
> --
> You received this question notification because you are a member of
> Mixxx Development Team, which is an answer contact for Mixxx.
>

Revision history for this message
jus (jus) said :
#2

Thanks for the reply.

*Reloaded branch -> scons m4a=0 -> scons bundle -> start mixxx.app -> crash .
*Delete mixxx.app -> scons bundle -> start mixxx.app -> crash .

Even tried with some different scons options, still no luck. Same error as above.
Problem persist with lp:~mixxxdevelopers/mixxx/features_sqlite , but not with lp:mixxx .

What i am missing?

Revision history for this message
jus (jus) said :
#3

Still not now what the cause is.

Workaround :
Add new user for OSX. Switch to that user. Build Mixxx.app.
Open the Mixxx.app package and add an empty qt.conf file in /Mixxx.app/Contents/Resources/

Mixxx start up with no error message. Strange:-)

Revision history for this message
jus (jus) said :
#4

This problem appears only if you have a separate QT installation (i.e for development) in your system. Probably a different version then the one used to compile Mixxx.

In this case when loading certain QT plugins look for them in the system instead of in the .app therefore triggering the load of the Qt installed in your machine. This is why you get the message of two sets of Qt binaries.

Create a blank file "qt.conf" in your "Mixxx.app/Contents/Resources/" directory.
Insert the following 2 lines into "qt.conf" and save.

[Paths]
Plugins = plugins

This file forces qt binaries in the .app to load the plugins contained in the package, and not those installed in your system.
Maybe the file could be included in the Mixxx distribution...

Problem solved