Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1863] Android: xml properties test case crashing application with " HeapWorker may be wedged: 6884ms " message

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, regression
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:04:12.000+0000
Updated2011-04-17T01:57:23.000+0000

Description

Seen on g1 running 1.6. TiMobileSDK 1.4.2.dc7b90

1.Platform>XHR>xml properties (with device plugged in a db logcat going)
2.view output

results: app crashes, HeapWorker may be wedged: 6884ms in output

log at - http://pastie.org/1172754">http://pastie.org/1172754

Comments

  1. Don Thorp 2011-04-15

    This is the real error

       (kroll$6) [2464,12685] Error parsing XML
       E/XMLModule(  343): org.xml.sax.SAXParseException: Unexpected end of document
       E/XMLModule(  343):     at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:129)
       E/XMLModule(  343):     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:157)
       E/XMLModule(  343):     at ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:61)
       E/XMLModule(  343):     at ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:54)
       E/XMLModule(  343):     at ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:479)
       E/XMLModule(  343):     at ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:67)
       E/XMLModule(  343):     at java.lang.reflect.Method.invokeNative(Native Method)
       E/XMLModule(  343):     at java.lang.reflect.Method.invoke(Method.java:521)
       E/XMLModule(  343):     at org.appcelerator.titanium.kroll.KrollObject.handleMethodOrProperty(KrollObject.java:241)
       E/XMLModule(  343):     at org.appcelerator.titanium.kroll.KrollObject.get(KrollObject.java:148)
       E/XMLModule(  343):     at org.mozilla.javascript.ScriptableObject.getProperty(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.ScriptRuntime.getObjectProp(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.ScriptRuntime.getObjectProp(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
       E/XMLModule(  343):     at org.mozilla.javascript.Context.evaluateReader(Unknown Source)
       E/XMLModule(  343):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:159)
       E/XMLModule(  343):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:101)
       E/XMLModule(  343):     at android.os.Handler.dispatchMessage(Handler.java:95)
       E/XMLModule(  343):     at android.os.Looper.loop(Looper.java:123)
       E/XMLModule(  343):     at android.os.HandlerThread.run(HandlerThread.java:60)
       
  2. Bill Dawson 2011-04-15

    I got this covered, but I'M having a hard time with master branch at the moment. Fix coming.

  3. Bill Dawson 2011-04-15

    (from [b0ed12634f608e1047d3ab34602fa6410a4e66f1]) [#1863 state:fixed-in-qa] Stop trying to xml-parse empty strings, and stop letting TiBlob try to turn known binary data into UTF-8 strings for getText http://github.com/appcelerator/titanium_mobile/commit/b0ed12634f608e1047d3ab34602fa6410a4e66f1"> http://github.com/appcelerator/titanium_mobile/commit/b0ed12634f608...

  4. Bill Dawson 2011-04-15

    (from [97f3f71520940fea3f0a4bea031834bc165c3a1b]) [#1863] Quick fix to avoid NPE in KrollObject.get. Was crashing my tests for this ticket. http://github.com/appcelerator/titanium_mobile/commit/97f3f71520940fea3f0a4bea031834bc165c3a1b"> http://github.com/appcelerator/titanium_mobile/commit/97f3f71520940...

  5. Thomas Huelbert 2011-04-15

    crash gone, as per Don the heapworker message is relate dot the tets downloading a large unsupported file type. closing. 1.4.2.4ce7ff G1 running 1.6, 2.2 simulator

  6. Thomas Huelbert 2011-04-15

    copy past error, build closed against is Mobile sdk 1.5.0.02c264.

JSON Source