calabash / calabash-android

Automated Functional testing for Android using cucumber
Other
1.68k stars 618 forks source link

NullObjectReference in Xamarin.UITest 3.0 #912

Open sdebruyn opened 5 years ago

sdebruyn commented 5 years ago

Logs are available at: https://testcloud-artifacts.s3-eu-west-1.amazonaws.com/03e2d078-9b42-4a48-8e59-4d5a462b6241/d03e1e6c-7ee6-4fd4-8823-5a8548091acb?response-cache-control=max-age%3D315569520&AWSAccessKeyId=AKIAI4UZT4FCOF2OTJYQ&Signature=SZ0RW5uBGc%2B5%2BgN3BzRm8Bmp8T4%3D&Expires=1735689600

Somewhere in the log you'll find:

V/BelgianRail(18655): MVX|Receiving SetValue to Klaar voor een nieuwe dag?|
V/BelgianRail(18655): MVX|Receiving SetValue to Klaar om de dag te beginnen? Klik dan op de login knop hieronder. Veel plezier!|
V/BelgianRail(18655): MVX|Receiving SetValue to MvvmCross.Commands.MvxAsyncCommand|
V/BelgianRail(18655): MVX|Receiving SetValue to Login|
V/BelgianRail(18655): MVX|Receiving SetValue to MvvmCross.Commands.MvxAsyncCommand|
V/BelgianRail(18655): MVX|Receiving SetValue to Gone|
V/BelgianRail(18655): MVX|Receiving SetValue to Omgeving|
V/BelgianRail(18655): MVX|Receiving SetValue to Nederlands|
V/BelgianRail(18655): MVX|Receiving SetValue to MvvmCross.Binding.ValueConverters.MvxWrappingCommand|
V/BelgianRail(18655): MVX|Abbreviation not found android|
V/BelgianRail(18655): MVX|Receiving SetValue to False|
V/BelgianRail(18655): MVX|Receiving SetValue to Français|
V/BelgianRail(18655): MVX|Receiving SetValue to MvvmCross.Binding.ValueConverters.MvxWrappingCommand|
V/BelgianRail(18655): MVX|Abbreviation not found android|
V/BelgianRail(18655): MVX|Abbreviation not found android|
V/BelgianRail(18655): MVX|Abbreviation not found android|
I/BelgianRail(18655): VIEW|BelgianRail.Edrive.Core.ViewModels.LoginViewModel|
D/InputTransport( 2914): Input channel constructed: fd=268
D/InputTransport( 2914): Input channel constructed: fd=346
D/InputTransport( 2914): Input channel destroyed: fd=346
D/InputTransport(18655): Input channel constructed: fd=85
D/ViewRootImpl@610e515[LoginView](18655): setView = DecorView@e3c202a[LoginView] TM=true MM=false
D/ActivityManager( 2914): post active user change for 0 fullscreen true isHomeActivity() false
I/Choreographer(18655): Skipped 46 frames!  The application may be doing too much work on its main thread.
D/OpenGLRenderer(18655): eglDestroySurface = 0xc7e92d48, 0xc9afa800
V/WindowManager( 2914): Relayout Window{c5c3c8f u0 be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen}: viewVisibility=8 req=1200x1920 WM.LayoutParams{(0,0)(fillxfill) sim=#120 ty=1 fl=#81810500 pfl=0x20000 fmt=-3 wanim=0x10302fc vsysui=0x600 needsMenuKey=2 colorMode=0 naviIconColor=0}
E/WindowManager( 2914): win=Window{c5c3c8f u0 be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8, caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2870 com.android.server.wm.WindowManagerService.relayoutWindow:2604 com.android.server.wm.Session.relayoutForDisplayCutout:296 com.android.server.wm.Session.relayout:279 android.view.IWindowSession$Stub.onTransact:288 
I/WindowManager( 2914): Destroying surface #21adf68: Surface(name=be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen) called by com.android.server.wm.WindowStateAnimator.destroySurface:2617 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1026 com.android.server.wm.WindowState.destroyOrSaveSurfaceUnchecked:3921 com.android.server.wm.WindowState.destroySurface:3867 com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2870 com.android.server.wm.WindowManagerService.relayoutWindow:2604 com.android.server.wm.Session.relayoutForDisplayCutout:296 com.android.server.wm.Session.relayout:279 
I/SurfaceFlinger( 2591): id=22 Removed be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen[18655]#0 (1/4)
I/SurfaceFlinger( 2591): id=22 Removed be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen[18655]#0 (-2/4)
I/Layer   ( 2591): id=22 onRemoved be.belgianrail.btr.edrive.integration/md54b571063a5bf51d3963f52ff056766c9.SplashScreen[18655]#0 
D/ViewRootImpl@73dd9de[SplashScreen](18655): Relayout returned: old=[0,0][1200,1920] new=[0,0][1920,1200] result=0x5 surface={valid=false 0} changed=true
D/ViewRootImpl@610e515[LoginView](18655): dispatchAttachedToWindow
V/WindowManager( 2914): Relayout Window{e4e428b u0 be.belgianrail.btr.edrive.integration/md51b130938b4cfcbe2dfbf90aaeac0c48f.LoginView}: viewVisibility=0 req=1920x1164 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#81810100 pfl=0x20000 wanim=0x10302fc vsysui=0x600 needsMenuKey=2 colorMode=0 naviIconColor=0}
I/SurfaceFlinger( 2591): id=24 createSurf (1920x1200),1 flag=404, be.belgianrail.btr.edrive.integration/md51b130938b4cfcbe2dfbf90aaeac0c48f.LoginView[18655]#0
V/Surface ( 2914): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/WindowManager( 2914): set systemUiVisibility : systemUiFlags= 0x608 fullscreenStackSysUiFlags= 0x0 dockedVisibility= 0x0
D/InputDispatcher( 2914): Focus entered window: 18655 0
V/Surface (18655): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/ViewRootImpl@610e515[LoginView](18655): Relayout returned: old=[0,0][0,0] new=[0,0][1920,1200] result=0x7 surface={valid=true 3314540544} changed=true
D/mali_winsys(18655): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000,  [1920x1200]-format:1
D/OpenGLRenderer(18655): eglCreateWindowSurface = 0xc7e92c08, 0xc58fe008
I/zygote  (18655): Do partial code cache collection, code=60KB, data=60KB
I/zygote  (18655): After code cache collection, code=60KB, data=60KB
I/zygote  (18655): Increasing code cache capacity to 256KB
D/AndroidRuntime(18655): Shutting down VM
--------- beginning of crash
E/AndroidRuntime(18655): FATAL EXCEPTION: main
E/AndroidRuntime(18655): Process: be.belgianrail.btr.edrive.integration, PID: 18655
E/AndroidRuntime(18655): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
E/AndroidRuntime(18655):    at sh.calaba.instrumentationbackend.query.InvocationOperation.findCompatibleMethod(InvocationOperation.java:93)
E/AndroidRuntime(18655):    at sh.calaba.instrumentationbackend.query.InvocationOperation$1.run(InvocationOperation.java:32)
E/AndroidRuntime(18655):    at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:2126)
E/AndroidRuntime(18655):    at android.os.Handler.handleCallback(Handler.java:790)
E/AndroidRuntime(18655):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(18655):    at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(18655):    at android.app.ActivityThread.main(ActivityThread.java:7000)
E/AndroidRuntime(18655):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(18655):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
E/AndroidRuntime(18655):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
D/NetworkSecurityConfig(18655): Using Network Security Config from resource network_security_config debugBuild: true
I/System.out(18655): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out(18655): (HTTPLog)-Static: isSBSettingEnabled false
D/DnsProxyListener( 2679): DNSDBG::dns addrinfo af 2
E/AppCenterCrashes(18655): Unhandled Exception from source=AppDomain
E/AppCenterCrashes(18655): Java.Lang.RuntimeException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
E/AppCenterCrashes(18655):   --- End of managed Java.Lang.RuntimeException stack trace ---
E/AppCenterCrashes(18655): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
E/AppCenterCrashes(18655):  at sh.calaba.instrumentationbackend.query.InvocationOperation.findCompatibleMethod(InvocationOperation.java:93)
E/AppCenterCrashes(18655):  at sh.calaba.instrumentationbackend.query.InvocationOperation$1.run(InvocationOperation.java:32)
E/AppCenterCrashes(18655):  at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:2126)
E/AppCenterCrashes(18655):  at android.os.Handler.handleCallback(Handler.java:790)
E/AppCenterCrashes(18655):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/AppCenterCrashes(18655):  at android.os.Looper.loop(Looper.java:164)
E/AppCenterCrashes(18655):  at android.app.ActivityThread.main(ActivityThread.java:7000)
E/AppCenterCrashes(18655):  at java.lang.reflect.Method.invoke(Native Method)
E/AppCenterCrashes(18655):  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
E/AppCenterCrashes(18655):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

This happened on the Samsung Galaxy Tab A with Android 8.1 that is available on App Center Test.

Is this something in my code? Looks to be a NRE in Calabash?

jamuc commented 2 years ago

@sdebruyn did this ever get resolved? We seem to be running into the same issue.

sdebruyn commented 2 years ago

No, I think this project is dead