Skip to main content
natural_criticB837
Legend
September 5, 2017
Question

Air 27 Beta: Android NullPointerException: at com.adobe.air.AIRWindowSurfaceView.surfaceChanged

  • September 5, 2017
  • 3 replies
  • 1126 views

Hi Adobe Air team!

we are seeing a new NullpointerException when publishing to live from Air SDK 27 Beta. I hope the following information helps to identify and fix the error (sorry for the German screen, I can't easily switch the language). This new exception is one of the most frequent exceptions we are currently seeing in the dashboard:

Exemplary stack trace:

java.lang.NullPointerException:

  at com.adobe.air.AIRWindowSurfaceView.surfaceChanged (AIRWindowSurfaceView.java:735)

  at android.view.SurfaceView.updateWindow (SurfaceView.java:619)

  at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:242)

  at android.view.View.dispatchWindowVisibilityChanged (View.java:8121)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1077)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1077)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1077)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1077)

  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1314)

  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1062)

  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:5996)

  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:761)

  at android.view.Choreographer.doCallbacks (Choreographer.java:574)

  at android.view.Choreographer.doFrame (Choreographer.java:544)

  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:747)

  at android.os.Handler.handleCallback (Handler.java:733)

  at android.os.Handler.dispatchMessage (Handler.java:95)

  at android.os.Looper.loop (Looper.java:136)

  at android.app.ActivityThread.main (ActivityThread.java:5590)

  at java.lang.reflect.Method.invokeNative (Native Method)

  at java.lang.reflect.Method.invoke (Method.java:515)

  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)

  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)

  at dalvik.system.NativeStart.main (Native Method)


Let me know if you have questions or need more info
This topic has been closed for replies.

3 replies

Participant
December 11, 2017

There's a forum thread on Starling's github page discussing this. Currently quite active (Dec 2017):

Input dispatching timed out ANRs & ANR rate survey · Issue #29 · Gamua/Adobe-Runtime-Support · GitHub

natural_criticB837
Legend
December 8, 2017

no idea how to fix this sorry. I assume this is an Air error and it should be fixed in the SDK.

natural_criticB837
Legend
September 28, 2017

Hello,

can anyone help? We are seeing this exception on all our production apps with Air 27 and it is still a problem with Air 27.0.0.124. I see that 2 other people upvoted my question, can you share your experiences with the exception?

Is the Adobe Air team looking into this? Anything we can do to help fixing the issue?

Thanks in advance

Participant
November 29, 2017

Hi – yep we're seeing this error too, however we're using Air SDK 23.0, not 27. The error is happening on the exact same line number of AirWindowSurfaceView.java.

Did you have any luck solving the issue? We have no idea what's causing it at the moment.

Here's a typical stack trace:

java.lang.NullPointerException:

  at com.adobe.air.AIRWindowSurfaceView.surfaceChanged (AIRWindowSurfaceView.java:735)

  at android.view.SurfaceView.updateWindow (SurfaceView.java:731)

  at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:322)

  at android.view.View.dispatchWindowVisibilityChanged (View.java:10459)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1330)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1330)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1330)

  at android.view.ViewGroup.dispatchWindowVisibilityChanged (ViewGroup.java:1330)

  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1857)

  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1544)

  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7616)

  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)

  at android.view.Choreographer.doCallbacks (Choreographer.java:686)

  at android.view.Choreographer.doFrame (Choreographer.java:622)

  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)

  at android.os.Handler.handleCallback (Handler.java:739)

  at android.os.Handler.dispatchMessage (Handler.java:95)

  at android.os.Looper.loop (Looper.java:148)

  at android.app.ActivityThread.main (ActivityThread.java:7406)

  at java.lang.reflect.Method.invoke (Native Method)

  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)

  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)