Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Is SWT Carbon UI supported in Leopard (OS x 10.5)?


There are 2 things going on here:

1) The crash you just posted (Java_org_eclipse_swt_internal_carbon_OS_MenuSelect)
2) The exception (SWTException: Invalid thread access) that should not be happening

Please create a bug report with all the information and CC me  on it.  We will investigate from there.



"Mary Nicknish" <mnicknish@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

03/28/2008 12:40 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
Re: [platform-swt-dev] Is SWT Carbon UI supported in Leopard (OS x        10.5)?





Still no luck with figuring this out.  Here is the Report I get from Apple when my application crashes...I have sent this to Apple many times, but no response.

Any other clues? My next thing to do is get this isolated in a small application so I can send it here and to Apple.

Thanks in advance...
Mary


Process:         java [5502]
Path:            /System/Library/Frameworks/JavaVM.framework/Home/bin/java
Identifier:      java
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  sh [5499]

Date/Time:       2008-03-28 09:31:16.364 -0700
OS Version:      Mac OS X 10.5.2 (9C31)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000016
Crashed Thread:  12

Application Specific Information:

Java information:
 Version: Java HotSpot(TM) Client VM (1.5.0_13-119 mixed mode)
 Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_13-119) for macosx-x86, built on Sep 28 2007 23:59:21 by root with gcc 4.0.1 (Apple Inc. build 5465)
 Exception type: Bus Error (0xa) at pc=0x963e66fd

Current thread (0x010233d0):  JavaThread "Thread-1" daemon [_thread_in_native, id=9070592]
Stack: [0xb0d0d000,0xb0d8d000)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.carbon.OS.MenuSelect(Lorg/eclipse/swt/internal/carbon/Point;)I+0
j  org.eclipse.swt.widgets.Display.mouseProc(III)I+229
v  ~StubRoutines::call_stub
j  org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(II)I+0
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+52
j  loq.agent.ui.SWTUI.run()V+18
v  ~StubRoutines::call_stub



Thread 12 Crashed:
0   com.apple.HIToolbox           0x963e66fd THIThemeTextInfoPublic::GetTruncation() const + 9
1   com.apple.HIToolbox           0x963e6d52 TCoreTextEngine::GetTextInfoOutputParameters(THIThemeTextInfo*) + 18
2   com.apple.HIToolbox           0x963ec26a TCoreTextEngine::DrawThemeTextBox(THIThemeTextInfo*, CGRect const&, unsigned long, CGContext*) + 2166
3   com.apple.HIToolbox           0x963eb900 DataEngine::DrawTextBox(void const*, CGRect const*, HIThemeTextInfo*, CGContext*) + 576
4   com.apple.HIToolbox           0x963eb690 HIThemeDrawTextBox + 344
5   com.apple.HIToolbox           0x9659d50f HIMenuBarView::DrawTextTitle(MenuData*, CGRect const*, __CFString const*, unsigned short, CGContext*, bool) + 469
6   com.apple.HIToolbox           0x963ea77e HIMenuBarView::DrawSelf(short, __HIShape const*, CGContext*) + 1784
7   com.apple.HIToolbox           0x963e9da5 HIView::DrawCacheOrSelf(short, __HIShape const*, CGContext*) + 95
8   com.apple.HIToolbox           0x963e9bae HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 108
9   com.apple.HIToolbox           0x963e980a HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 734
10  com.apple.HIToolbox           0x963e996e HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1090
11  com.apple.HIToolbox           0x963e8c08 HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 668
12  com.apple.HIToolbox           0x963e891b HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
13  com.apple.HIToolbox           0x963e886b HIView::Render(unsigned long, CGContext*) + 45
14  com.apple.HIToolbox           0x963f1367 FlushWindowObject(WindowData*, void**, unsigned char) + 749
15  com.apple.HIToolbox           0x963f4778 _FlushWindow + 78
16  com.apple.HIToolbox           0x963f4724 HIWindowFlush + 34
17  com.apple.HIToolbox           0x963e7751 MBarDraw() + 41
18  com.apple.HIToolbox           0x96417d74 _HiliteMenuTitle(MenuData*, MenuData*, unsigned char) + 238
19  com.apple.HIToolbox           0x96434cbf HiliteCurrentTitle(MenuSelectData*) + 47
20  com.apple.HIToolbox           0x96420371 DrawTheMenu(MenuSelectData*, __CFArray**, unsigned char, unsigned char*) + 737
21  com.apple.HIToolbox           0x9641ff53 MenuChanged(MenuSelectData*, unsigned char, unsigned char) + 451
22  com.apple.HIToolbox           0x9641edaa TrackMenuCommon(MenuSelectData&, unsigned char*) + 1418
23  com.apple.HIToolbox           0x9641a9b5 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 279
24  com.apple.HIToolbox           0x964a99da MenuSelect + 104
25  libswt-pi-carbon-3347.jnilib   0x12857ed6 Java_org_eclipse_swt_internal_carbon_OS_MenuSelect + 73
26  ???                           0x03587d07 0 + 56130823
27  ???                           0x0357fa7f 0 + 56097407
28  ???                           0x0357d227 0 + 56087079
29  libclient.dylib               0x004d263a 0x3b9000 + 1152570
30  libclient.dylib               0x004d2356 0x3b9000 + 1151830
31  libclient.dylib               0x0045c68c 0x3b9000 + 669324
32  libclient.dylib               0x005c848b JNI_CreateJavaVM_Impl + 101963
33  libswt-carbon-3347.jnilib     0x11833f5e callback + 794
34  ???                           0x0557d455 0 + 89642069
35  com.apple.HIToolbox           0x963c6fc3 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
36  com.apple.HIToolbox           0x963c63fd SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
37  com.apple.HIToolbox           0x963e2e0e SendEventToEventTarget + 52
38  com.apple.HIToolbox           0x963f5dcf ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2579
39  com.apple.HIToolbox           0x963c737c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
40  com.apple.HIToolbox           0x963c63fd SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
41  com.apple.HIToolbox           0x963e2e0e SendEventToEventTarget + 52
42  libswt-pi-carbon-3347.jnilib   0x1285ab3b Java_org_eclipse_swt_internal_carbon_OS_SendEventToEventTarget + 31
43  ???                           0x03587d07 0 + 56130823
44  ???                           0x0357fa7f 0 + 56097407
45  ???                           0x0357fb2b 0 + 56097579
46  ???                           0x0357d227 0 + 56087079
47  libclient.dylib               0x004d263a 0x3b9000 + 1152570
48  libclient.dylib               0x00416763 0x3b9000 + 382819
49  libclient.dylib               0x00416655 0x3b9000 + 382549
50  libclient.dylib               0x00416595 0x3b9000 + 382357
51  libclient.dylib               0x004164b8 0x3b9000 + 382136
52  libclient.dylib               0x0067dcc5 JVM_RaiseSignal + 441189
53  libSystem.B.dylib             0x93ca653b _pthread_body + 27



Thread 12 Crashed:
0   com.apple.HIToolbox           0x963e66fd THIThemeTextInfoPublic::GetTruncation() const + 9
1   com.apple.HIToolbox           0x963e6d52 TCoreTextEngine::GetTextInfoOutputParameters(THIThemeTextInfo*) + 18
2   com.apple.HIToolbox           0x963ec26a TCoreTextEngine::DrawThemeTextBox(THIThemeTextInfo*, CGRect const&, unsigned long, CGContext*) + 2166
3   com.apple.HIToolbox           0x963eb900 DataEngine::DrawTextBox(void const*, CGRect const*, HIThemeTextInfo*, CGContext*) + 576
4   com.apple.HIToolbox           0x963eb690 HIThemeDrawTextBox + 344
5   com.apple.HIToolbox           0x9659d50f HIMenuBarView::DrawTextTitle(MenuData*, CGRect const*, __CFString const*, unsigned short, CGContext*, bool) + 469
6   com.apple.HIToolbox           0x963ea77e HIMenuBarView::DrawSelf(short, __HIShape const*, CGContext*) + 1784
7   com.apple.HIToolbox           0x963e9da5 HIView::DrawCacheOrSelf(short, __HIShape const*, CGContext*) + 95
8   com.apple.HIToolbox           0x963e9bae HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 108
9   com.apple.HIToolbox           0x963e980a HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 734
10  com.apple.HIToolbox           0x963e996e HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1090
11  com.apple.HIToolbox           0x963e8c08 HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 668
12  com.apple.HIToolbox           0x963e891b HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
13  com.apple.HIToolbox           0x963e886b HIView::Render(unsigned long, CGContext*) + 45
14  com.apple.HIToolbox           0x963f1367 FlushWindowObject(WindowData*, void**, unsigned char) + 749
15  com.apple.HIToolbox           0x963f4778 _FlushWindow + 78
16  com.apple.HIToolbox           0x963f4724 HIWindowFlush + 34
17  com.apple.HIToolbox           0x963e7751 MBarDraw() + 41
18  com.apple.HIToolbox           0x96417d74 _HiliteMenuTitle(MenuData*, MenuData*, unsigned char) + 238
19  com.apple.HIToolbox           0x96434cbf HiliteCurrentTitle(MenuSelectData*) + 47
20  com.apple.HIToolbox           0x96420371 DrawTheMenu(MenuSelectData*, __CFArray**, unsigned char, unsigned char*) + 737
21  com.apple.HIToolbox           0x9641ff53 MenuChanged(MenuSelectData*, unsigned char, unsigned char) + 451
22  com.apple.HIToolbox           0x9641edaa TrackMenuCommon(MenuSelectData&, unsigned char*) + 1418
23  com.apple.HIToolbox           0x9641a9b5 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 279
24  com.apple.HIToolbox           0x964a99da MenuSelect + 104
25  libswt-pi-carbon-3347.jnilib   0x12857ed6 Java_org_eclipse_swt_internal_carbon_OS_MenuSelect + 73
26  ???                           0x03587d07 0 + 56130823
27  ???                           0x0357fa7f 0 + 56097407
28  ???                           0x0357d227 0 + 56087079
29  libclient.dylib               0x004d263a 0x3b9000 + 1152570
30  libclient.dylib               0x004d2356 0x3b9000 + 1151830
31  libclient.dylib               0x0045c68c 0x3b9000 + 669324
32  libclient.dylib               0x005c848b JNI_CreateJavaVM_Impl + 101963
33  libswt-carbon-3347.jnilib     0x11833f5e callback + 794
34  ???                           0x0557d455 0 + 89642069
35  com.apple.HIToolbox           0x963c6fc3 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
36  com.apple.HIToolbox           0x963c63fd SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
37  com.apple.HIToolbox           0x963e2e0e SendEventToEventTarget + 52
38  com.apple.HIToolbox           0x963f5dcf ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2579
39  com.apple.HIToolbox           0x963c737c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
40  com.apple.HIToolbox           0x963c63fd SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
41  com.apple.HIToolbox           0x963e2e0e SendEventToEventTarget + 52
42  libswt-pi-carbon-3347.jnilib   0x1285ab3b Java_org_eclipse_swt_internal_carbon_OS_SendEventToEventTarget + 31
43  ???                           0x03587d07 0 + 56130823
44  ???                           0x0357fa7f 0 + 56097407
45  ???                           0x0357fb2b 0 + 56097579
46  ???                           0x0357d227 0 + 56087079
47  libclient.dylib               0x004d263a 0x3b9000 + 1152570
48  libclient.dylib               0x00416763 0x3b9000 + 382819
49  libclient.dylib               0x00416655 0x3b9000 + 382549
50  libclient.dylib               0x00416595 0x3b9000 + 382357
51  libclient.dylib               0x004164b8 0x3b9000 + 382136
52  libclient.dylib               0x0067dcc5 JVM_RaiseSignal + 441189
53  libSystem.B.dylib             0x93ca653b _pthread_body + 27





On Thu, Mar 27, 2008 at 5:29 PM, Clayton Hicklin <chicklin@xxxxxxxxx> wrote:
Not sure why it works on other platforms and not OSX, but the
exception you posted looks like you tried to update the GUI from
outside the SWT event loop.  Just a guess.


On Thu, Mar 27, 2008 at 5:41 PM, Mary Nicknish <
mnicknish@xxxxxxxxx> wrote:
> Thank you so much for clearing that up...I posted this same question on the
> Apple java-dev site and no one replied.
>
> Unfortunately, I am using Java build 1.5.0_13-b05-237 and running my app
> that works perfectly on 10.4, Windows XP and Vista, and on most linux
> installations.
>
> Below is the stack trace...any ideas?
>
> Mary
>
>
> Exception in thread "Thread-7" org.eclipse.swt.SWTException: Failed to
> execute runnable (org.eclipse.swt.SWTException: Invalid thread access)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
>  at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
>  at
> loq.agent.ui.MessageSlideShell$SlideShell.run(MessageSlideShell.java:830)
>  at loq.agent.ui.MessageSlideShell$9.run(MessageSlideShell.java:642)
>  at java.lang.Thread.run(Thread.java:613)
> Caused by: org.eclipse.swt.SWTException: Invalid thread access
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.SWT.error(Unknown Source)
>  at org.eclipse.swt.widgets.Widget.error(Unknown Source)
>  at org.eclipse.swt.widgets.Widget.checkWidget(Unknown Source)
>  at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
>  at
> loq.agent.ui.MessageSlideShell$SlideShell$3.run(MessageSlideShell.java:871)
>  at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
>  at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
>  at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
>  at org.eclipse.swt.widgets.Display.observerProc(Unknown Source)
>
>
>
>
>
> On Thu, Mar 27, 2008 at 3:22 PM, Steve Northover
> <
Steve_Northover@xxxxxxxxxx> wrote:
>
> >
> > Yes, SWT carbon is supported on OS X 10.5. If you run one of the already
> available 32-bit JDK's (1.5, 1.4.x etc), it will wokr. The crash you are
> seeing on 10.5 is probably a bug in your code (or ours).
> >
> > The confusion comes because Apple is no longer supporting 64-bit carbon.
> This wouldn't be a big deal for us right away because we can still call
> 32-bit carbon (32-bit JVM calls 32-bit carbon).  The problem happens because
> the (yet to be officially released JDK 1.6) is rumoured to be 64-bit only.
> This won't work (64-bit JVM cannot call 32-bit carbon).
> >
> > Feel free to complain to Apple about the situation.
> >
> >
> >
> >
> > "Mary Nicknish" <
mnicknish@xxxxxxxxx>
> > Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx
> >
> > 03/27/2008 05:58 PM
> >
> > Please respond to
> > "Eclipse Platform SWT component developers list."
> <
platform-swt-dev@xxxxxxxxxxx>
> >
> >
> > To
platform-swt-dev@xxxxxxxxxxx
> >
> > cc
> >
> > Subject [platform-swt-dev] Is SWT Carbon UI supported in Leopard (OS x
> 10.5)?
> >
> >
> >
> >
> >
> >
> >
> >
> > I have seen this question posted several places (even on this site) and no
> one has directly answered the question.
> >
> > I have a Java application that uses Carbon to create the menus on the Mac.
> It works great in 10.4, but gets a memory overwrite exception in 10.5
> >
> > Does Carbon work on a 64 bit system? If not, what should I replace it
> with???
> >
> > Thanks
> > Mary_______________________________________________
> > platform-swt-dev mailing list
> >
platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
> > _______________________________________________
> > platform-swt-dev mailing list
> >
platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
>
>
> _______________________________________________
>  platform-swt-dev mailing list
>  
platform-swt-dev@xxxxxxxxxxx
>  
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>



--
Clayton Hicklin

chicklin@xxxxxxxxx
_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top