Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.getFixedSides() #224

Open
1 of 2 tasks
NikitaIsalkar opened this issue Sep 2, 2024 · 3 comments
Open
1 of 2 tasks
Labels
bug Something isn't working need info

Comments

@NikitaIsalkar
Copy link

NikitaIsalkar commented Sep 2, 2024

Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

  1. Launch our Eclipse based application.
  2. Click on minimize button for any view (for example, Project Explorer).
  3. After minimizing this view, we get icons on either side of the window.
  4. Click on View icon, after clicking on the icon I should be able to see the view, but instead I am getting NullPointerException in TrimStack.getFixedSides(method) and UI is behaving unusual.
    Furthermore, in some instances the icons are hidden, they only show up after I restart my application.

Please see : We have upgraded RCP from 4.6.3 to 4.15 and we are getting this issue after the upgrade.

I expected: <After minimizing the window, when I click on view icon, i should be able to see the view>

But got: <I got NullPointerException in TrimStack.getFixedSides(method) and UI is behaving unusual.>

Here is some relevant log output

From <workspace>/.metadata/.log

java.lang.NullPointerException
	at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.getFixedSides(TrimStack.java:1180)
	at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.getHostPane(TrimStack.java:1162)
	at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.showStack(TrimStack.java:950)
	at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack$2.widgetSelected(TrimStack.java:516)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4105)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3922)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3524)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
	at com.rocketsoftware.bi.ide.core.rcp.BiApplication.runApp(BiApplication.java:195)
	at com.rocketsoftware.bi.ide.core.rcp.BiApplication.start(BiApplication.java:81)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1420)

Tested under this environment:

  • OS & version: Windows 10
  • Eclipse IDE/Platform version (as shown in Help > About): Version: 2020-03 (4.15.0)
    Build id: 20200313-1211
  • We have upgraded RCP from 4.6.3 to 4.15, we never got this issue with RCP 4.6.3, its happening after upgrade to 4.15.

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
@NikitaIsalkar NikitaIsalkar added the bug Something isn't working label Sep 2, 2024
@jukzi
Copy link
Contributor

jukzi commented Sep 2, 2024

Please report stacktrace reproducable with current release 2024-06 or better with daily build:
https://download.eclipse.org/eclipse/downloads/drops4/S-4.33RC2-202408281820/

@jukzi jukzi added the need info label Sep 2, 2024
@NikitaIsalkar
Copy link
Author

@jukzi , I have tried with latest release and getting below stack when I am trying to restore the view.

java.lang.NullPointerException
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.getFixedSides(TrimStack.java:1178)
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.getHostPane(TrimStack.java:1160)
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.showStack(TrimStack.java:948)
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack$2.widgetSelected(TrimStack.java:514)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4105)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3922)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3524)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
at com.rocketsoftware.bi.ide.core.rcp.BiApplication.runApp(BiApplication.java:195)
at com.rocketsoftware.bi.ide.core.rcp.BiApplication.start(BiApplication.java:81)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)

@NikitaIsalkar
Copy link
Author

While debugging, I have found that line 1177(TrimStack.java) is returning NULL, which is causing a NPE while I am trying to maximize the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need info
Projects
None yet
Development

No branches or pull requests

2 participants