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

Failed to execute runnable (java.lang.ArithmeticException: / by zero) #1288

Open
hieuna-441907 opened this issue Apr 11, 2023 · 0 comments
Open

Comments

@hieuna-441907
Copy link

hieuna-441907 commented Apr 11, 2023

Environment information:

  • AGI version: 2023-3.3.0
  • Host OS: MacOS
    If tracing on Android:
  • Device model: Google Pixel 4A (5G)
  • Android Version: Android 13 API 33

Bug description
Hi, I've traced a demo app that simply displays lines of text on Android using OpenGL on Angle mode. In the session, the AGI tool made progress and after some seconds elapsed, it finished properly with a trace file it saved actually be on the output directory, but then I click a 'Open Trace' button, a window displayed with an error message just like below:

Stacktrace
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

image

so I think it's a bug related to calculate the size of some UI components, please help me fix it. Thanks.

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