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

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArithmeticException: / by zero) #1408

Open
ShiremanSun opened this issue Mar 5, 2025 · 0 comments

Comments

@ShiremanSun
Copy link

Environment information:

  • AGI version: 2024-3.3.3:5f97b4fd99a9459320b782203ce2de5351a1e661
  • Host OS: [e.g. Linux]
    If tracing on Android:
  • Device model: samsung SM-G990E (S21 FE)
  • Android Version: Android 13

Bug description
A clear and concise description of what the bug is.
Can not open Frame Profile Trace
Reproduction steps
Steps to reproduce the behavior:
Capture A New Trace -> Frame Profile - OpenGL on ANGLE -> ok -> start -> open trace
Then get error
Stacktrace
Please paste a stacktrace here if it's available.

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArithmeticException: / by zero)
at org.eclipse.swt.SWT.error(SWT.java:4918)
at org.eclipse.swt.SWT.error(SWT.java:4833)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4345)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
at org.eclipse.jface.window.Window.open(Window.java:799)
at com.google.gapid.Main$UI.show(Main.java:140)
at com.google.gapid.Main.main(Main.java:80)
Caused by: java.lang.ArithmeticException: / by zero
at com.google.gapid.widgets.TabComposite$HorizontalGroup.setChildBounds(TabComposite.java:685)
at com.google.gapid.widgets.TabComposite$Group.setBounds(TabComposite.java:566)
at com.google.gapid.widgets.TabComposite$Group.setBounds(TabComposite.java:555)
at com.google.gapid.widgets.TabComposite.layoutLayout(TabComposite.java:356)
at com.google.gapid.widgets.TabComposite$1.layout(TabComposite.java:80)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1308)
at org.eclipse.swt.widgets.Composite.resized(Composite.java:1030)
at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3973)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:6269)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:252)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3695)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3677)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1308)
at org.eclipse.swt.widgets.Composite.resized(Composite.java:1030)
at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3973)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:6269)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:252)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3695)
at org.eclipse.swt.widgets.Control.setBounds(Control.java:3677)
at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1308)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:744)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:696)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:652)
at com.google.gapid.MainWindow$MainViewContainer.updateAndGet(MainWindow.java:449)
at com.google.gapid.MainWindow$1.lambda$onCaptureLoaded$0(MainWindow.java:134)
at com.google.gapid.widgets.Widgets.ifNotDisposed(Widgets.java:141)
at com.google.gapid.widgets.Widgets.lambda$scheduleIfNotDisposed$1(Widgets.java:169)
at com.google.gapid.widgets.Widgets.lambda$schedule$0(Widgets.java:161)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
... 6 more

Screenshots

If applicable, add screenshots to help explain your problem.

Image

Additional debugging information

  • Please attach the generated gapis.log and gapic.log files you will find in the temp folder (e.g. /tmp/ on linux).
  • If using Android: Please attach a full logcat dump (adb logcat -d > logcat-full.txt) that contains logs since AGI was started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant