Skip to content

Instantly share code, notes, and snippets.

@GeneraalGarnaal
Created September 21, 2023 13:59
Show Gist options
  • Save GeneraalGarnaal/72fa7ac55e7038ffb56974c7d03ddb6d to your computer and use it in GitHub Desktop.
Save GeneraalGarnaal/72fa7ac55e7038ffb56974c7d03ddb6d to your computer and use it in GitHub Desktop.
Stack trace NPE UIAutomator2 server
{'timestamp': 1695261415006, 'level': 'ALL', 'message': "[W3C (9ac85ef4)] io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.accessibility.AccessibilityWindowInfo.getBoundsInScreen(android.graphics.Rect)' on a null object reference"}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:244)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:111)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:94)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:71)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:41)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:253)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:247)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat java.lang.Thread.run(Thread.java:1012)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': "[W3C (9ac85ef4)] Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.accessibility.AccessibilityWindowInfo.getBoundsInScreen(android.graphics.Rect)' on a null object reference"}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.core.AccessibilityNodeInfoHelpers.getBounds(AccessibilityNodeInfoHelpers.java:127)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.core.AccessibilityNodeInfoHelpers.getBounds(AccessibilityNodeInfoHelpers.java:102)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:87)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.makeNode(UiElementSnapshot.java:147)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.buildChildren(UiElementSnapshot.java:181)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:91)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:95)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.<init>(UiElementSnapshot.java:106)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.model.UiElementSnapshot.take(UiElementSnapshot.java:130)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.toStream(AccessibilityNodeInfoDumper.java:176)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \tat io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:219)'}
{'timestamp': 1695261415006, 'level': 'ALL', 'message': '[W3C (9ac85ef4)] \t... 37 more'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment