Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Weired thread names in OSX Lion
Weired thread names in OSX Lion [message #723184] Wed, 07 September 2011 22:53 Go to next message
Ralf Grossklaus is currently offline Ralf GrossklausFriend
Messages: 5
Registered: July 2009
Junior Member
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 22:58 Go to previous message
Ralf Grossklaus is currently offline Ralf GrossklausFriend
Messages: 5
Registered: July 2009
Junior Member
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
Previous Topic:adding a new command to gdb while using cdt eclipse
Next Topic:Changing Appearance of Properties View
Goto Forum:
  


Current Time: Sat Nov 29 03:59:32 GMT 2014

Powered by FUDForum. Page generated in 0.01995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software