Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 390722 - EXC_BAD_ACCESS when creating/opening EMF model with generated code
Summary: EXC_BAD_ACCESS when creating/opening EMF model with generated code
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: Macintosh Mac OS X
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 13:49 EDT by David Rees CLA
Modified: 2019-11-27 07:29 EST (History)
1 user (show)

See Also:


Attachments
generated runtime (14.58 KB, application/zip)
2012-09-28 13:49 EDT, David Rees CLA
no flags Details
mac crash report (97.93 KB, text/plain)
2012-09-28 13:50 EDT, David Rees CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Rees CLA 2012-09-28 13:49:24 EDT
Created attachment 221664 [details]
generated runtime

Using EMF on 3.8 do the following:

Create a simple ecore metamodel
Generate the code
Run Eclipse configuration with the generated projects
Create a new model using the generated wizard
Eclipse dies with error report shown below 

Generated runtime is attached. Mac error report is also attached.

Doesn't seem to happen with 4.2.



Process:         java [8079]
Path:            /Library/Java/JavaVirtualMachines/1.6.0_35-b10-428.jdk/Contents/Home/bin/java
Identifier:      java
Version:         1.0 (1.0)
Code Type:       X86 (Native)
Parent Process:  eclipse [7837]

Date/Time:       2012-09-28 13:32:34.694 -0400
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Interval Since Last Report:          75546 sec
Crashes Since Last Report:           3
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      33866CA0-280E-4A02-90C7-D1E61AA8D6B4

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000fefff000

VM Regions Near 0xfefff000:
    CG backing stores      00000000c8efd000-00000000c9466000 [ 5540K] rw-/rw- SM=SHM  
--> VM_ALLOCATE            00000000fefff000-00000000ff000000 [    4K] rw-/rwx SM=COW  
    Submap                 00000000ffff0000-00000000ffff2000          r-x/r-x process-only submap

Application Specific Information:
objc[8079]: garbage collection is OFF
 
Java information:
 Exception type: Bus Error (0xa) at pc=00000000fefff000
 
 Java VM: Java HotSpot(TM) Client VM (20.10-b01-428 mixed mode macosx-x86)
 
Current thread (000000000216e000):  JavaThread "Thread-1" daemon [_thread_in_native, id=-1390300480, stack(00000000bf800000,00000000c0000000)]
Stack: [00000000bf800000,00000000c0000000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.eclipse.swt.internal.cocoa.OS.objc_msgSend(III)I
j  org.eclipse.swt.internal.cocoa.NSWindow.setRepresentedFilename(Lorg/eclipse/swt/internal/cocoa/NSString;)V+19
j  org.eclipse.ui.internal.cocoa.CocoaTitlePathUpdater.updateTitlePath(Lorg/eclipse/swt/widgets/Shell;Ljava/lang/String;)V+27
j  org.eclipse.ui.internal.ide.application.IDEWorkbenchWindowAdvisor.setTitlePath()V+73
j  org.eclipse.ui.internal.ide.application.IDEWorkbenchWindowAdvisor.recomputeTitle()V+33
j  org.eclipse.ui.internal.ide.application.IDEWorkbenchWindowAdvisor.updateTitle(Z)V+166
j  org.eclipse.ui.internal.ide.application.IDEWorkbenchWindowAdvisor.access$3(Lorg/eclipse/ui/internal/ide/application/IDEWorkbenchWindowAdvisor;Z)V+2
j  org.eclipse.ui.internal.ide.application.IDEWorkbenchWindowAdvisor$4.partBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+12
j  org.eclipse.ui.internal.PartListenerList2$2.run()V+8
j  org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
j  org.eclipse.core.runtime.Platform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+1
j  org.eclipse.ui.internal.PartListenerList2.fireEvent(Lorg/eclipse/jface/util/SafeRunnable;Lorg/eclipse/ui/IPartListener2;Lorg/eclipse/ui/IWorkbenchPartReference;Ljava/lang/String;)V+45
j  org.eclipse.ui.internal.PartListenerList2.firePartBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+35
j  org.eclipse.ui.internal.PartService.firePartBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+73
j  org.eclipse.ui.internal.WWinPartService$WWinListener.partBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+8
j  org.eclipse.ui.internal.PartListenerList2$2.run()V+8
j  org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
j  org.eclipse.core.runtime.Platform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+1
j  org.eclipse.ui.internal.PartListenerList2.fireEvent(Lorg/eclipse/jface/util/SafeRunnable;Lorg/eclipse/ui/IPartListener2;Lorg/eclipse/ui/IWorkbenchPartReference;Ljava/lang/String;)V+45
j  org.eclipse.ui.internal.PartListenerList2.firePartBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+35
j  org.eclipse.ui.internal.PartService.firePartBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+73
j  org.eclipse.ui.internal.WorkbenchPagePartList.firePartBroughtToTop(Lorg/eclipse/ui/IWorkbenchPartReference;)V+5
j  org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEditorChanged(Lorg/eclipse/ui/IWorkbenchPartReference;)V+6
j  org.eclipse.ui.internal.PartList.setActiveEditor(Lorg/eclipse/ui/IEditorReference;)V+73
j  org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(Lorg/eclipse/ui/IEditorReference;)V+76
j  org.eclipse.ui.internal.WorkbenchPage.updateActivePart()V+123
j  org.eclipse.ui.internal.WorkbenchPage.partAdded(Lorg/eclipse/ui/internal/WorkbenchPartReference;)V+17
j  org.eclipse.ui.internal.EditorAreaHelper.addEditor(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;Z)V+69
j  org.eclipse.ui.internal.EditorManager.createEditorTab(Lorg/eclipse/ui/internal/EditorReference;Ljava/lang/String;)V+7
j  org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(Lorg/eclipse/ui/internal/registry/EditorDescriptor;Lorg/eclipse/ui/IEditorInput;Lorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorReference;+175
j  org.eclipse.ui.internal.EditorManager.openEditor(Ljava/lang/String;Lorg/eclipse/ui/IEditorInput;ZLorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorReference;+92
j  org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+220
j  org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+27
j  org.eclipse.ui.internal.WorkbenchPage.access$11(Lorg/eclipse/ui/internal/WorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+8
j  org.eclipse.ui.internal.WorkbenchPage$10.run()V+29
j  org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V+116
j  org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+59
j  org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZI)Lorg/eclipse/ui/IEditorPart;+7
j  org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;Z)Lorg/eclipse/ui/IEditorPart;+5
j  org.eclipse.ui.ide.IDE.openEditor(Lorg/eclipse/ui/IWorkbenchPage;Lorg/eclipse/core/resources/IFile;ZZ)Lorg/eclipse/ui/IEditorPart;+36
j  org.eclipse.ui.ide.IDE.openEditor(Lorg/eclipse/ui/IWorkbenchPage;Lorg/eclipse/core/resources/IFile;Z)Lorg/eclipse/ui/IEditorPart;+4
j  org.eclipse.ui.actions.OpenFileAction.openFile(Lorg/eclipse/core/resources/IFile;)V+17
j  org.eclipse.ui.actions.OpenSystemEditorAction.run()V+35
j  org.eclipse.ui.actions.RetargetAction.run()V+11
j  org.eclipse.ui.navigator.CommonNavigatorManager$3.open(Lorg/eclipse/jface/viewers/ISelection;Z)V+59
j  org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(Lorg/eclipse/jface/viewers/OpenEvent;)V+25
j  org.eclipse.jface.viewers.StructuredViewer$2.run()V+8
j  org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+5
j  org.eclipse.ui.internal.JFaceUtil$1.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+1
j  org.eclipse.jface.util.SafeRunnable.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V+4
j  org.eclipse.jface.viewers.StructuredViewer.fireOpen(Lorg/eclipse/jface/viewers/OpenEvent;)V+32
j  org.eclipse.jface.viewers.StructuredViewer.handleOpen(Lorg/eclipse/swt/events/SelectionEvent;)V+31
j  org.eclipse.ui.navigator.CommonViewer.handleOpen(Lorg/eclipse/swt/events/SelectionEvent;)V+6
j  org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Lorg/eclipse/swt/events/SelectionEvent;)V+5
j  org.eclipse.jface.util.OpenStrategy.fireOpenEvent(Lorg/eclipse/swt/events/SelectionEvent;)V+38
j  org.eclipse.jface.util.OpenStrategy.access$2(Lorg/eclipse/jface/util/OpenStrategy;Lorg/eclipse/swt/events/SelectionEvent;)V+2
j  org.eclipse.jface.util.OpenStrategy$1.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+37
J  org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
j  org.eclipse.swt.widgets.Display.sendEvent(Lorg/eclipse/swt/widgets/EventTable;Lorg/eclipse/swt/widgets/Event;)V+24
j  org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V+9
j  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;Z)V+73
j  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/Event;)V+4
j  org.eclipse.swt.widgets.Widget.notifyListeners(ILorg/eclipse/swt/widgets/Event;)V+19
j  org.eclipse.swt.widgets.Display.runDeferredEvents()Z+96
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+125
j  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9
j  org.eclipse.ui.internal.Workbench.runUI()I+555
j  org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j  org.eclipse.ui.internal.Workbench$7.run()V+73
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j  org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+108
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/lang/Object;)Ljava/lang/Object;+149
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j  org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
j  org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126
j  org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub
Comment 1 David Rees CLA 2012-09-28 13:50:11 EDT
Created attachment 221665 [details]
mac crash report
Comment 2 David Rees CLA 2012-09-28 13:55:27 EDT
Note it can be repeated by just trying to open the model also. So its not creation, its editing/viewing.
Comment 3 Lars Vogel CLA 2019-11-27 07:29:33 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.