[AC-585] V8Object: (KrollRuntimeThread) [11,14] Runtime disposed, cannot set property 'userAgent'
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-04T05:25:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | macao |
Assignee | Sharif AbuDarda |
Created | 2016-01-28T07:49:24.000+0000 |
Updated | 2016-02-04T05:25:13.000+0000 |
Description
I have a problem only with deploying android application on titanium 5.0 framework.A have searched for this issue and try a lot a stuff but nothing can help.I got this message:
V8Object: (KrollRuntimeThread) [11,14] Runtime disposed, cannot set property 'userAgent'.
Can somebody help or give me reference where to find solution.Thanks.
Attachments
File | Date | Size |
debug.txt | 2016-02-01T07:59:00.000+0000 | 11465 |
Hello, Are you running on device?. Please provide a full description of you environment and a sample code. You can take some help from this [community post](https://archive.appcelerator.com/question/160742/cant-run-app-on-android-device-but-debug-works#comment-197873). Follow Chris Barber comment on the post. Thanks.
*This is the application log.I run directly on android device.Application show splash screen and than I got message application has stoped.* -- Start application log ----------------------------------------------------- [INFO] : Forwarding host port 64698 to device for debugging [INFO] : Project built successfully in 2m 6s 440ms [INFO] : TiApplication: (main) [0,0] checkpoint, app created. [INFO] : TiApplication: (main) [819,819] Titanium 5.0.3 (2015/12/03 12:51 1ac4be4) [INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default '' [INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default '' [INFO] : I/dalvikvm-heap: Grow heap (frag case) to 11.921MB for 501932-byte allocation [INFO] : TiApplication: (main) [441,1260] Titanium Javascript runtime: v8 [INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null [INFO] : TiApplication: (main) [1,1] Analytics have been disabled [WARN] : V8Object: (KrollRuntimeThread) [101,102] Runtime disposed, cannot set property 'userAgent' [WARN] : dalvikvm: threadid=10: thread exiting with uncaught exception (group=0x41fe92a0)
I used a titanium 5.0 framework,java 1.6 JRE.Application works on ios without problem.App.js can't even read first line so i supposed maybe this is not about code.I tried with creating simple alert popup and simple window in app.js,but application cannot reach this code.
Hello, Try using Appcelerator SDK 5.1.2.GA with Appcelrator studio, build: 4.4.0.201511182122. Also, Try cleaning the project and if there is a previous version installed in the device, try uninstalling it. You should open the project in terminal from the studio and run "appc run -l trace" attach the log as a file in here. Did you followed the community post?
Thanks you on answer.My application use several modules.I suspected on module so I disabled modules one by one and I found:ti.styledlabel,ti.barcode,dk.napp.drawer,com.obscure.keychain not work.Is there are any new release of this modules that is supported by new version of titanium?
Hello, You have to be specific which module is causing problem and the particular module version. Did you tried with latest SDK? Send the Log.
I will now investigate which version doesn't work,and I will post result here.With this code i cannot use lastest titanum version because of android 6.0 application permission.I need to make change whereever hardware permission is need it.Because of that i back to previous version of titanium.
Hello,I found this line of code made problem to my application in android manifest: * android:theme="@android:style/Theme.Holo.Light.DarkActionBar" After I removed this line my application start but it doesn't show some layout resource. Also I got this log: WARN] : TableViewRowProxy: (KrollRuntimeThread) [339,1127] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (KrollRuntimeThread) [1,1128] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (KrollRuntimeThread) [3,1131] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (KrollRuntimeThread) [1,1132] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (KrollRuntimeThread) [2,1134] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [INFO] : dalvikvm: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged [WARN] : dalvikvm: VFY: unable to resolve virtual method 13789: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V [INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations [WARN] : dalvikvm: VFY: unable to resolve virtual method 578: Landroid/content/res/TypedArray;.getChangingConfigurations ()I [INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType [WARN] : dalvikvm: VFY: unable to resolve virtual method 600: Landroid/content/res/TypedArray;.getType (I)I [ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [WARN] : TiVerify: (Timer-0) [3903,5037] Verifying module licenses... [INFO] : TiVerify: (Timer-0) [708,5745] Succesfully verified module licenses [INFO] : webclipboard: clipservice: android.sec.clipboard.ClipboardExManager@42e65f38 [ERROR] : SQLiteLog: (1) no such table: CacheGroups [ERROR] : SQLiteLog: (1) no such table: Caches [ERROR] : SQLiteLog: (1) no such table: Origins [ERROR] : SQLiteLog: (1) no such table: DeletedCacheResources [ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [ERROR] : SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length [INFO] : GATE:
Hello please run "appc run -l trace" on your project. Attach the full log as a file with this ticket.
Hello,here is the log of application.Main problem now is activity bar because it doesnt show content always.
Can you please tell me how to include @android:style/Theme.AppCompat.Light.DarkActionBar".It show me this error: - Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.AppCompat.Light.DarkActionBar'). Suppose I need to have some module appcompat but i cannot find to download.As I said before I am trouble with theme:@android:style/Theme.Holo.Light.DarkActionBar,application wont start and I deleted this line of code tiapp.xml. Can you help me please?
The Titanium SDK uses the [appcompat library](http://developer.android.com/tools/support-library/features.html#v7-appcompat) to provide support for themes. A benefit of using the appcompat library is that it provides ActionBar support on devices running Android 2.1.x and later. Prior to the usage of the appcompat library, the ActionBar was only available to devices running Android 3.x and later. Note that applications can only use the AppCompat themes. Now Create a directory in "platform/android/res/values/builtin_themes.xml" in your app. Put the below code in the "builtin_themes.xml"
Finally, to use a theme in your application, modify the Android section of your tiapp.xml file to reference the style name you want to use:
Remember to keep one application tag in the manifest section. For [reference](http://docs.appcelerator.com/platform/latest/#!/guide/Android_Themes). Thanks.