Skip to content

Instantly share code, notes, and snippets.

@vicwomg
Created September 3, 2013 18:42
Show Gist options
  • Save vicwomg/6427896 to your computer and use it in GitHub Desktop.
Save vicwomg/6427896 to your computer and use it in GitHub Desktop.
Selendroid inspector hang
I/System.out( 2188): alert message: selendroidSource:<head>
I/System.out( 2188): <title>Edit Station</title>
I/System.out( 2188): <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I/System.out( 2188): <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
I/System.out( 2188): <script>
I/System.out( 2188): //sets the viewport based on user agent and screen pixel density
I/System.out( 2188): var ua = navigator.userAgent.toLowerCase(),
I/System.out( 2188): isIpad = ua.indexOf("ipad") > -1,
I/System.out( 2188): isAndroid = ua.indexOf("android") > -1,
I/System.out( 2188): isIphoneRetina = !isAndroid && (window.devicePixelRatio == 2) && !isIpad,
I/System.out( 2188): isIpadRetina = !isAndroid && (window.devicePixelRatio == 2) && isIpad,
I/System.out( 2188): isAndroidHdpi = window.devicePixelRatio == 2,
I/System.out( 2188): isIphoneOrAndroid = window.devicePixelRatio == 1,
I/System.out( 2188): viewport = document.querySelector("meta[name=viewport]");
I/System.out( 2188): window.isTablet = 'false'; // flag for tablet detection for app v4.6 & up
I/System.out( 2188): if (isIpadRetina && isTablet) {
I/System.out( 2188): // iPad Retina Screens for app v4.6 & up
I/System.out( 2188): // Removed 'width=device-width' to display properly in iPad Retina
I/System.out( 2188): viewport.setAttribute('content', 'initial-scale=1, maximum-scale=1');
I/System.out( 2188):
I/System.out( 2188): } else if (isIphoneRetina || isIpadRetina) {
I/System.out( 2188): // iPhone Retina Screens or iPad Retina Screens for app v4.5 & below
I/System.out( 2188): viewport.setAttribute('content', 'width=device-width, initial-scale=0.5, maximum-scale=0.5');
I/System.out( 2188): } else if (isAndroidHdpi) {
I/System.out( 2188): // Android HDPI Screens
I/System.out( 2188): // viewport is inconsistently implemented in android - for now treat them like low density screens
I/System.out( 2188): viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1');
I/System.out( 2188): } else if (isIpad) {
I/System.out( 2188): // iPad non-retina (fixes MOBILE-5290)
I/System.out( 2188): viewport.setAttribute('content', 'initial-scale=1, maximum-scale=1');
I/System.out( 2188): } else if (isIphoneOrAndroid) {
I/System.out( 2188): // iOS + Android - standard density screens
I/System.out( 2188): viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1');
I/System.out( 2188): } else {
I/System.out( 2188): // Anything else
I/System.out( 2188): viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1');
I/System.out( 2188): }
I/System.out( 2188): </script> <meta name="apple-mobile-web-app-capable" content="yes">
I/System.out( 2188): <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent">
I/System.out( 2188):
I/System.out( 2188): <link rel="stylesheet" type="text/css" media="screen" href="/mobile/css/compiled.css?v=743191518">
I/System.out( 2188): <script type="text/javascript" src="/js/libs/jquery-1.7.1.min.js"></script>
I/System.out( 2188): <script type="text/javascript" src="/mobile/js/script.combined.js?cb=743191518"></script>
I/System.out( 2188): <script>
I/System.out( 2188): var countryCode = "US";
I/System.out( 2188): var isUnitedStates = true;
I/System.out( 2188): var pageCategory = "backstage";
I/System.out( 2188): </script>
I/System.out( 2188): </head>
I/System.out( 2188): <body class="android us-only">
I/System.out( 2188): <style>
I/System.out( 2188): body {
I/System.out( 2188): background: #ecebe8;
I/System.out( 2188): }
I/System.out( 2188): </style>
I/System.out( 2188): <script>
I/System.out( 2188): function saveClicked() {
I/System.out( 2188): var DEFAULT_ERROR = "ERROR: could not update station at this time. Please try again later.";
I/System.out( 2188): var name = jQuery.trim($("#stationName").val());
I/System.out( 2188): if (name.length == 0) {
I/System.out( 2188): $("#error").text("Station name cannot be empty").show();
I/System.out( 2188): return;
I/System.out( 2188): }
I/System.out( 2188): var description = jQuery.trim($("#description").val());
I/System.out( 2188): jQuery.ajax({
I/System.out( 2188): "url": "/services/ajax/",
I/System.out( 2188): "dataType": "json",
I/System.out( 2188): "data": {
I/System.out( 2188): "pat": getUrlParam("pat"),
I/System.out( 2188): "method": "station.setStationNameAndDescription",
I/System.out( 2188): "stationId": "2081212302680031",
I/System.out( 2188): "name": name,
I/System.out( 2188): "description": description
I/System.out( 2188): },
I/System.out( 2188): "success": function (data) {
I/System.out( 2188): if (data && data['stat'] == "ok") {
I/System.out( 2188): Stage.refreshStationList();
I/System.out( 2188): Stage.closeModalPage();
I/System.out( 2188): return;
I/System.out( 2188): }
I/System.out( 2188): $("#error").text(DEFAULT_ERROR).show();
I/System.out( 2188): },
I/System.out( 2188): "error": function (xhr, textStatus, errorThrown) {
I/System.out( 2188): // An error was returned by jQuery
I/System.out( 2188): $("#error").text(DEFAULT_ERROR).show();
I/System.out( 2188): }
I/System.out( 2188): });
I/System.out( 2188): }
I/System.out( 2188): </script>
I/System.out( 2188): <div id="error"></div>
I/System.out( 2188): <div class="infobox section-edit">
I/System.out( 2188): <label>Name</label>
I/System.out( 2188): <input type="text" id="stationName" name="stationName" size="20" value="Fred Sanders Radio">
I/System.out( 2188): <label>Description</label>
I/System.out( 2188): <textarea id="description" name="description" cols="40" rows="5"></textarea>
I/System.out( 2188): </div>
I/System.out( 2188): </body>
W/ResourceType( 2188): No known package when getting name for resource number 0xffffffff
W/ResourceType( 2188): No known package when getting name for resource number 0xffffffff
I/System.out( 2188): alert message: selendroidSource:<head></head><body></body>
W/ResourceType( 2188): No known package when getting name for resource number 0xffffffff
W/ResourceType( 2188): No known package when getting name for resource number 0xffffffff
W/ResourceType( 2188): No known package when getting name for resource number 0xffffffff
W/System.err( 2188): org.webbitserver.WebbitException: ActionBarView$HomeView on [id: 0xb6029108, /127.0.0.1:43994 => /127.0.0.1:8080]
W/System.err( 2188): at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:171)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpResponse.error(NettyHttpResponse.java:32)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:80)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
W/System.err( 2188): at org.webbitserver.handler.PathMatchHandler.handleHttpRequest(PathMatchHandler.java:33)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
W/System.err( 2188): at org.webbitserver.handler.DateHeaderHandler.handleHttpRequest(DateHeaderHandler.java:21)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
W/System.err( 2188): at org.webbitserver.handler.ServerHeaderHandler.handleHttpRequest(ServerHeaderHandler.java:25)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:67)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpChannelHandler$2.run(NettyHttpChannelHandler.java:77)
W/System.err( 2188): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
W/System.err( 2188): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
W/System.err( 2188): at java.lang.Thread.run(Thread.java:856)
W/System.err( 2188): Caused by: org.w3c.dom.DOMException: ActionBarView$HomeView
W/System.err( 2188): at org.apache.harmony.xml.dom.NodeImpl.setName(NodeImpl.java:286)
W/System.err( 2188): at org.apache.harmony.xml.dom.ElementImpl.<init>(ElementImpl.java:56)
W/System.err( 2188): at org.apache.harmony.xml.dom.DocumentImpl.createElement(DocumentImpl.java:344)
W/System.err( 2188): at org.apache.harmony.xml.dom.DocumentImpl.createElement(DocumentImpl.java:48)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:65)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlNode(JsonXmlUtil.java:79)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.buildXmlDoc(JsonXmlUtil.java:43)
W/System.err( 2188): at io.selendroid.server.model.internal.JsonXmlUtil.toXml(JsonXmlUtil.java:27)
W/System.err( 2188): at io.selendroid.server.inspector.view.TreeView.getXMLSource(TreeView.java:65)
W/System.err( 2188): at io.selendroid.server.inspector.view.TreeView.render(TreeView.java:59)
W/System.err( 2188): at io.selendroid.server.inspector.InspectorServlet.handleHttpRequest(InspectorServlet.java:71)
W/System.err( 2188): at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
W/System.err( 2188): ... 14 more
D/dalvikvm( 2188): GC_CONCURRENT freed 2008K, 32% free 18140K/26311K, paused 1ms+1ms, total 8ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment