Weired thread names in OSX Lion [message #723184] |
Wed, 07 September 2011 18:53  |
Eclipse User |
|
|
|
Hello there,
i'm experiencing some wiered behaviour when debugging a simple rcp
application with eclipse running on OSX Lion. Starting equinox with the
standard Lion JDK (the one, that downloads automatically when you type
"java") and halting it right at the first line in the main() method
results in having two threads running. Not only the Eclipse DebugView,
but also the jconsole shows this two threads (see
http://img225.imageshack.us/img225/3074/bildschirmfoto20110908u.png).
The funny thing is, that the thread which is called 'main" is actually
not the thread, which runs the main method (this thread is called
'Thread-1')
launching the same application with a prerelease of OpenJDK 7 shows a
different behaviour. Only the 'main' thread is running, which seems to
be ok
(http://img600.imageshack.us/img600/3074/bildschirmfoto20110908u.png).
But if I continue running the Application, it will crash with an Error
(org.eclipse.swt.SWTException: Invalid thread access) because
NSThread.isMainThread() returns false
I tried to reproduce this on Windows 7 => no success. Neither can I
remember a similar behaviour on any OSX Version prior Lion (although i'm
not completely sure about this, since couldn't test it on Snow Leopard
or Leopard).
Does anyone experience simmilar problems?
Best Regards, Ralf
|
|
|
Re: Weired thread names in OSX Lion [message #723185 is a reply to message #723184] |
Wed, 07 September 2011 18:58  |
Eclipse User |
|
|
|
Sorry, i wanted to post this in the equinox newsgroup... :(
Regards, Ralf
Am 08.09.11 00:53, schrieb Ralf Grossklaus:
> Hello there,
>
> i'm experiencing some wiered behaviour when debugging a simple rcp
> application with eclipse running on OSX Lion. Starting equinox with the
> standard Lion JDK (the one, that downloads automatically when you type
> "java") and halting it right at the first line in the main() method
> results in having two threads running. Not only the Eclipse DebugView,
> but also the jconsole shows this two threads (see
> http://img225.imageshack.us/img225/3074/bildschirmfoto20110908u.png).
> The funny thing is, that the thread which is called 'main" is actually
> not the thread, which runs the main method (this thread is called
> 'Thread-1')
>
> launching the same application with a prerelease of OpenJDK 7 shows a
> different behaviour. Only the 'main' thread is running, which seems to
> be ok
> (http://img600.imageshack.us/img600/3074/bildschirmfoto20110908u.png).
> But if I continue running the Application, it will crash with an Error
> (org.eclipse.swt.SWTException: Invalid thread access) because
> NSThread.isMainThread() returns false
>
>
> I tried to reproduce this on Windows 7 => no success. Neither can I
> remember a similar behaviour on any OSX Version prior Lion (although i'm
> not completely sure about this, since couldn't test it on Snow Leopard
> or Leopard).
>
> Does anyone experience simmilar problems?
>
> Best Regards, Ralf
|
|
|
Powered by
FUDForum. Page generated in 0.05765 seconds