Project: SWT
Bug 18804 GPF setting image to menu item (Photon)
Reported: 2002-06-03 12:53:14 | Status: resolved fixed

Show hierarchy view of org.eclipse.swt.widgets.Widget and eclipse will GPF. Unhandled exception Type=GPF vmState=0xffffffff Handler1=0xb8242414 Handler2=0xb82314f8 Signal=0x0000000b EFlags=0x00011202 EDI=0x09c2a7bc ESI=0x083523c8 EAX=0x0baa537c EBX=0xb0460064 ECX=0x00000000 EDX=0x00000000 EBP=0x080474d4 ESP=0x080474bc EIP=0xb03ceb2e CS=0x000000f3 SS=0x000000fb Thread: main (priority 5) (LOCATION OF ERROR) 0089 org/eclipse/swt/internal/photon/OS.PtSetResources(II[I)I (@085d5e91) 006f org/eclipse/swt/widgets/MenuItem.setImage(Lorg/eclipse/swt/graphics/Image;)V 00f6 org/eclipse/jface/action/ActionContributionItem.updateImages(Z)Z 0214 org/eclipse/jface/action/ActionContributionItem.update(Ljava/lang/String;)V 0025 org/eclipse/jface/action/ActionContributionItem.actionPropertyChange(Lorg/eclipse/jface/util/PropertyChangeEvent;)V 0002 org/eclipse/jface/action/ActionContributionItem.access$1(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/jface/util/PropertyChangeEvent;)V 0005 org/eclipse/jface/action/ActionContributionItem$ActionListener.propertyChange(Lorg/eclipse/jface/util/PropertyChangeEvent;)V 17e05 org/eclipse/jface/action/Action.firePropertyChange(Lorg/eclipse/jface/util/PropertyChangeEvent;)V (@08639f19) 0175 org/eclipse/jface/action/Action.firePropertyChange(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V (@08639f19) 0017 org/eclipse/jface/action/Action.setImageDescriptor(Lorg/eclipse/jface/resource/ImageDescriptor;)V 0011 org/eclipse/ui/actions/LabelRetargetAction.updateImages(Lorg/eclipse/jface/action/IAction;)V 0032 org/eclipse/ui/actions/LabelRetargetAction.setActionHandler(Lorg/eclipse/jface/action/IAction;)V 0026 org/eclipse/ui/actions/RetargetAction.partActivated(Lorg/eclipse/ui/IWorkbenchPart;)V 0008 org/eclipse/ui/internal/PartListenerList$1.run()V 0029 org/eclipse/core/internal/runtime/InternalPlatform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V (@087d8a2d) 87d308b org/eclipse/core/runtime/Platform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V (@087d3434) 00c0 org/eclipse/ui/internal/PartListenerList.firePartActivated(Lorg/eclipse/ui/IWorkbenchPart;)V (@087d3434) 0005 org/eclipse/ui/internal/WWinPartService.partActivated(Lorg/eclipse/ui/IWorkbenchPart;)V 0008 org/eclipse/ui/internal/PartListenerList$1.run()V 0029 org/eclipse/core/internal/runtime/InternalPlatform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V (@087d8a2d) 87d308b org/eclipse/core/runtime/Platform.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V (@087d3434) 00c0 org/eclipse/ui/internal/PartListenerList.firePartActivated(Lorg/eclipse/ui/IWorkbenchPart;)V (@087d3434) 0005 org/eclipse/ui/internal/WorkbenchPage.firePartActivated(Lorg/eclipse/ui/IWorkbenchPart;)V 007c org/eclipse/ui/internal/WorkbenchPage.setActivePart(Lorg/eclipse/ui/IWorkbenchPart;)V 0048 org/eclipse/ui/internal/WorkbenchPage.activate(Lorg/eclipse/ui/IWorkbenchPart;)V 001e org/eclipse/ui/internal/WorkbenchPage.busyShowView(Ljava/lang/String;Z)Lorg/eclipse/ui/IViewPart; 0003 org/eclipse/ui/internal/WorkbenchPage.access$7(Lorg/eclipse/ui/internal/WorkbenchPage;Ljava/lang/String;Z)Lorg/eclipse/ui/IViewPart; 0011 org/eclipse/ui/internal/WorkbenchPage$10.run()V 022e org/eclipse/swt/custom/BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V (@08613aa2) 0011 org/eclipse/ui/internal/WorkbenchPage.showView(Ljava/lang/String;Z)Lorg/eclipse/ui/IViewPart; 0003 org/eclipse/ui/internal/WorkbenchPage.showView(Ljava/lang/String;)Lorg/eclipse/ui/IViewPart; 0013 org/eclipse/jdt/internal/ui/util/OpenTypeHierarchyUtil.openInViewPart(Lorg/eclipse/ui/IWorkbenchWindow;Lorg/eclipse/jdt/core/IJavaElement;)Lorg/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart; 003e org/eclipse/jdt/internal/ui/util/OpenTypeHierarchyUtil.open([Lorg/eclipse/jdt/core/IJavaElement;Lorg/eclipse/ui/IWorkbenchWindow;)Lorg/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart; 0018 org/eclipse/jdt/ui/actions/OpenTypeHierarchyAction.run([Lorg/eclipse/jdt/core/IJavaElement;)V 0012 org/eclipse/jdt/ui/actions/OpenTypeHierarchyAction.run(Lorg/eclipse/jface/viewers/IStructuredSelection;)V 000c org/eclipse/jdt/ui/actions/SelectionDispatchAction.dispatchRun(Lorg/eclipse/jface/viewers/ISelection;)V 0005 org/eclipse/jdt/ui/actions/SelectionDispatchAction.run()V 0001 org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V 00bf org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection(Lorg/eclipse/swt/widgets/Event;)V 003a org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent(Lorg/eclipse/swt/widgets/Event;)V 0002 org/eclipse/jface/action/ActionContributionItem.access$0(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event;)V 0005 org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V 00b8 org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V (@08601f4c) 000d org/eclipse/swt/widgets/Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V 00ff org/eclipse/swt/widgets/Display.runDeferredEvents()Z (@0867de73) 0430 org/eclipse/swt/widgets/Display.readAndDispatch()Z (@086a8a14) 0055 org/eclipse/ui/internal/Workbench.runEventLoop()V (@0867dae9) 0088 org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; 0039 org/eclipse/core/internal/boot/InternalBootLoader.run(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; 0006 org/eclipse/core/boot/BootLoader.run(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; 0004 java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; 0163 java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; 00f6 org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;)Ljava/lang/Object; 000e org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; 001b org/eclipse/core/launcher/Main.main([Ljava/lang/String;)V Thread: Gc Thread (priority 5) (daemon) Thread: Finalizer thread (priority 5) (daemon) Thread: Java indexing (priority 4) (daemon) ffffffec java/lang/Thread.sleep(JI)V 8618a33 java/lang/Thread.sleep(J)V (@08618e16) fff2b112 org/eclipse/jdt/internal/core/search/processing/JobManager.run()V (@08618e16) 000b java/lang/Thread.run()V Thread: Snapshot (priority 5) ffffffec java/lang/Object.wait(JI)V 0003 java/lang/Object.wait(J)V 0009 org/eclipse/core/internal/resources/DelayedSnapshotRunnable.run()V 000b java/lang/Thread.run()V JVM terminated. Exit code=255 /home/ssq/ive/bin/j9 -jit -ms:16 -mso:128 -cp /home/ssq/eclipse/startup.jar org.eclipse.core.launcher.Main -os qnx -ws photon -arch x86 -showsplash /home/ssq/eclipse/eclipse -showsplash 600

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MenuItem.java