2

I'm trying to run uiautomatorviewer on Big Sur and I'm getting this error

java.lang.NullPointerException
    at org.eclipse.swt.widgets.Control.internal_new_GC(Unknown Source)
    at org.eclipse.swt.graphics.GC.<init>(Unknown Source)
    at org.eclipse.swt.graphics.GC.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Tree.computeSize(Unknown Source)
    at org.eclipse.swt.layout.GridData.computeSize(Unknown Source)
    at org.eclipse.swt.layout.GridLayout.layout(Unknown Source)
    at org.eclipse.swt.layout.GridLayout.computeSize(Unknown Source)
    at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source)
    at org.eclipse.swt.custom.SashFormLayout.computeSize(Unknown Source)
    at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source)
    at org.eclipse.swt.custom.SashFormLayout.computeSize(Unknown Source)
    at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source)
    at org.eclipse.swt.layout.FillData.computeSize(Unknown Source)
    at org.eclipse.swt.layout.FillLayout.computeChildSize(Unknown Source)
    at org.eclipse.swt.layout.FillLayout.computeSize(Unknown Source)
    at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source)
    at org.eclipse.swt.layout.GridData.computeSize(Unknown Source)
    at org.eclipse.swt.layout.GridLayout.layout(Unknown Source)
    at org.eclipse.swt.layout.GridLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Display.runSettings(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.android.uiautomator.UiAutomatorViewer.main(UiAutomatorViewer.java:78)
4
  • Can you please share the code that is throwing that error? – Mate Mrše Dec 15 '20 at 10:34
  • I'm running uiautomatorviewer so that it launches the GUI so that I can inspect the UI of an Android emulator. – Noldy Dec 15 '20 at 10:45
  • @Noldy, were you able to resolve this? I found others having issues with tools using SWT on BigSur. Seems like could be 32bit support related: forum.portfolio-performance.info/t/….. – toffee.beanns Jan 2 at 20:59
  • i have the same problem – clevertension Jan 6 at 6:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.