Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Bad Access Error using RCP on Mac OS(Bad Access Error using SWT on Mac OS)
Bad Access Error using RCP on Mac OS [message #514460] Mon, 15 February 2010 13:13
Cathy Scott is currently offline Cathy ScottFriend
Messages: 4
Registered: July 2009
Junior Member
I am developing an RCP application based on Eclipse GMF.

One of the default features of any GMF editor is to drag a 'sticky note' from the palette to the canvas. The user then has an editable text field. This feature works fine on Windows but on Mac OSx it fails with a EXC_BAD_ACCESS - see full trace below. The error appears to have come from a call to SWT code..

To reproduce the error - run the GMF Taipan RCP example. Select the 'Note' from the palette - this is the yellow rectangle representing a 'sticky note' and drag it to the canvas. When presented with a text field on the note, enter text. The application crashes with the error below.

Note I am running on Mac OS X 10.6.2 with the following swt jar files;-
org.eclipse.swt_3.5.1.v3555a.jar
org.eclipse.swt.carbon.macosx_3.5.1.v3555a.jar

Any help diagnosing and fixing this would be much appreciated.

Cathy

Process: java
Path: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/H ome/bin/java
Identifier: java
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: eclipse

Date/Time: 2010-02-15 12:27:47.237 +0000
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Interval Since Last Report: 235252 sec
Crashes Since Last Report: 5
Per-App Crashes Since Last Report: 2
Anonymous UUID: 57E00810-5DFE-4BE8-8D05-F4FA61D5CD45

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bf800fe4
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:

Java information:
Exception type: Bus Error (0xa) at pc=0x9402e875

Java VM: Java HotSpot(TM) Client VM (14.3-b01-101 mixed mode macosx-x86)

Current thread (0x01818c00): JavaThread "Thread-0" daemon
Stack:
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(II)I
j org.eclipse.swt.widgets.Display.textInputProc(III)I+82
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 org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/ jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widge ts/Display;)V+9
j org.eclipse.ui.internal.Workbench.runUI()I+393
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/i nternal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$5.run()V+55
j org.eclipse.core.databinding.observable.Realm.runWithDefault (Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/R unnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg /eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/Wor kbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse /swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAd visor;)I+2
j org.eclipse.gmf.examples.taipan.gmf.editor.application.TaiPa nApplication.start(Lorg/eclipse/equinox/app/IApplicationCont ext;)Ljava/lang/Object;+12
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/ lang/Object;)Ljava/lang/Object;+135
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/la ng/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(
0x02923c00 JavaThread "Worker-2"
0x019d8c00 JavaThread "Java indexing" daemon
0x019f2800 JavaThread "Worker-1"
0x019f9400 JavaThread "Worker-0"
0x028ed400 JavaThread "Framework Event Dispatcher" daemon
0x019fb000 JavaThread "Start Level Event Dispatcher" daemon
0x028e0400 JavaThread "Bundle File Closer" daemon
=>0x01818c00 JavaThread "Thread-0" daemon
0x028a3400 JavaThread "Low Memory Detector" daemon
0x028a2000 JavaThread "CompilerThread0" daemon
0x028a1000 JavaThread "Signal Dispatcher" daemon
0x01800c00 JavaThread "Surrogate Locker Thread (CMS)" daemon
0x0289cc00 JavaThread "Finalizer" daemon
0x0289bc00 JavaThread "Reference Handler" daemon
0x02800000 JavaThread "main"
Other Threads:
0x02899c00 VMThread
0x028b4800 WatcherThread [id=-1327378432]

VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None

Heap
par new generation total 14336K, used 7104K [0x05010000, 0x06010000, 0x07010000)
eden space 12288K, 46% used [0x05010000, 0x055b0e68, 0x05c10000)
from space 2048K, 65% used [0x05c10000, 0x05d5f278, 0x05e10000)
to space 2048K, 0% used [0x05e10000, 0x05e10000, 0x06010000)
concurrent mark-sweep generation total 43808K, used 27530K [0x07010000, 0x09ad8000, 0x25010000)
concurrent-mark-sweep perm gen total 60392K, used 47046K [0x25010000, 0x28b0a000, 0x35010000)

Virtual Machine Arguments:
JVM Args: -Dosgi.requiredJavaVersion=1.5 -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Xms40m -Xmx512m -Dorg.eclipse.swt.internal.carbon.smallFonts -Declipse.pde.launch=true -Dfile.encoding=MacRoman -Xbootclasspath/p:/Users/cathyscott/Programs/eclipse/plugins /org.eclipse.jdt.debug_3.5.0.v20090526/jdi.jar
Java Command: org.eclipse.equinox.launcher.Main -application org.eclipse.gmf.examples.taipan.gmf.editor.rcp.TaiPanApplica tion -data /Users/cathyscott/Documents/workspace2/../runtime-New_config uration -configuration file:/Users/cathyscott/Documents/workspace2/.metadata/.plugi ns/org.eclipse.pde.core/Taipan/ -dev file:/Users/cathyscott/Documents/workspace2/.metadata/.plugi ns/org.eclipse.pde.core/Taipan/dev.properties -os macosx -ws carbon -arch x86 -nl en_US
Launcher Type: SUN_STANDARD
Physical Memory: Page Size = 4k, Total = 1792M, Free = 8M


Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x9402e875 tiny_malloc_from_free_list + 9
1 libSystem.B.dylib 0x9402db03 szone_malloc_should_clear + 297
2 libSystem.B.dylib 0x9402d988 malloc_zone_malloc + 81
3 libSystem.B.dylib 0x9402ba58 malloc + 50
4 com.apple.QD 0x94e8ec82 TTextLineLayout::ConstructGlyphRecordArray(TATSUGlyphRecordA rray*, TLayoutControls*) + 66
5 com.apple.QD 0x94f0cb8f TTextLineLayout::ConstructAndLayoutGlyphArray(TATSUGlyphReco rdArray*, ATSLineLayoutLineParams*, TLayoutControls*, long, unsigned long) + 227
....
.....
Previous Topic:attaching and synchronizing gmf generated diagram with editor
Next Topic:SHared EditingDomain
Goto Forum:
  


Current Time: Tue Mar 19 08:23:38 GMT 2024

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

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

Back to the top