{ "id": "105191", "key": "TIMOB-11885", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-10-17T21:01:49.000+0000", "created": "2012-11-19T09:38:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "triage" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "32497", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "98677", "key": "TIMOB-10313", "fields": { "summary": "Android: A NetworkOnMainThreadException lead app to crash when FastDev is enabled", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "32604", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "97452", "key": "TIMOB-9989", "fields": { "summary": "CLI: \"fastdev\" builtin for Android", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T18:18:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nSetting the target to Android SDK 11 will result in the application not starting properly. The Android emulator will display an alert with text: \"Unfortunately, yourappnamehere has stopped\".\r\n\r\nh2. Test case\r\nIn Titanium SDK.\r\n\r\nFile -> New -> Titanium project -> Default project -> Next.\r\nComplete the form and select sdk version: 3.0.0.v20121109144656 and click \"Finish\".\r\n\r\nEdit tiapp.xml and replace the android tag with the following:\r\n\r\n{code:lang=xml|title=tiapp.xml}\r\n\r\n 11\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nRun in Android emulator. The Android emulator will display an alert with text: \"Unfortunately, yourappnamehere has stopped\".\r\n\r\nh2. Logs\r\n{code:lang=none|title=console}\r\n[ERROR][TiApplication( 1015)] (main) [192,841] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.derp.herp/com.derp.herp.HerpderpActivity}: android.os.NetworkOnMainThreadException; Titanium 3.0.0,2012/11/09 14:47,c9cc724\r\n[ERROR][TiApplication( 1015)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.derp.herp/com.derp.herp.HerpderpActivity}: android.os.NetworkOnMainThreadException\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread.access$600(ActivityThread.java:130)\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)\r\n[ERROR][TiApplication( 1015)] at android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR][TiApplication( 1015)] at android.os.Looper.loop(Looper.java:137)\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread.main(ActivityThread.java:4745)\r\n[ERROR][TiApplication( 1015)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][TiApplication( 1015)] at java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR][TiApplication( 1015)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\n[ERROR][TiApplication( 1015)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n[ERROR][TiApplication( 1015)] at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR][TiApplication( 1015)] Caused by: android.os.NetworkOnMainThreadException\r\n[ERROR][TiApplication( 1015)] at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)\r\n[ERROR][TiApplication( 1015)] at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)\r\n[ERROR][TiApplication( 1015)] at libcore.io.IoBridge.recvfrom(IoBridge.java:513)\r\n[ERROR][TiApplication( 1015)] at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)\r\n[ERROR][TiApplication( 1015)] at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)\r\n[ERROR][TiApplication( 1015)] at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.blockRead(TiFastDev.java:310)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.readInt(TiFastDev.java:349)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.readTokenCount(TiFastDev.java:412)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.kroll.common.TiFastDev.openInputStream(TiFastDev.java:214)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:53)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:104)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:152)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:109)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:502)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145)\r\n[ERROR][TiApplication( 1015)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)\r\n[ERROR][TiApplication( 1015)] at android.app.Activity.performCreate(Activity.java:5008)\r\n[ERROR][TiApplication( 1015)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)\r\n[ERROR][TiApplication( 1015)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)\r\n[ERROR][TiApplication( 1015)] ... 11 more\r\n[ERROR][AndroidRuntime( 1015)] FATAL EXCEPTION: main\r\n[ERROR][AndroidRuntime( 1015)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.derp.herp/com.derp.herp.HerpderpActivity}: android.os.NetworkOnMainThreadException\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread.access$600(ActivityThread.java:130)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)\r\n[ERROR][AndroidRuntime( 1015)] at android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR][AndroidRuntime( 1015)] at android.os.Looper.loop(Looper.java:137)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread.main(ActivityThread.java:4745)\r\n[ERROR][AndroidRuntime( 1015)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][AndroidRuntime( 1015)] at java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR][AndroidRuntime( 1015)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\n[ERROR][AndroidRuntime( 1015)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\n[ERROR][AndroidRuntime( 1015)] at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR][AndroidRuntime( 1015)] Caused by: android.os.NetworkOnMainThreadException\r\n[ERROR][AndroidRuntime( 1015)] at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)\r\n[ERROR][AndroidRuntime( 1015)] at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)\r\n[ERROR][AndroidRuntime( 1015)] at libcore.io.IoBridge.recvfrom(IoBridge.java:513)\r\n[ERROR][AndroidRuntime( 1015)] at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)\r\n[ERROR][AndroidRuntime( 1015)] at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)\r\n[ERROR][AndroidRuntime( 1015)] at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.blockRead(TiFastDev.java:310)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.readInt(TiFastDev.java:349)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.kroll.common.TiFastDev$Session.readTokenCount(TiFastDev.java:412)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.kroll.common.TiFastDev.openInputStream(TiFastDev.java:214)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:53)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:104)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:152)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:109)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:502)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145)\r\n[ERROR][AndroidRuntime( 1015)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.Activity.performCreate(Activity.java:5008)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)\r\n[ERROR][AndroidRuntime( 1015)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)\r\n[ERROR][AndroidRuntime( 1015)] ... 11 more\r\n{code}\r\n\r\nh2. Discussions\r\nhttp://developer.appcelerator.com/question/144780/android-targetsdkversion11-causes-crash-on-30-beta", "attachment": [], "flagged": false, "summary": "Android: Targeting SDK Version 11 with FastDev enabled causes application to not start", "creator": { "name": "stefanaxelsson", "key": "stefanaxelsson", "displayName": "Stefan Axelsson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "stefanaxelsson", "key": "stefanaxelsson", "displayName": "Stefan Axelsson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK: 3.0.0.v20121109144656\r\nPlatform & version: Google APIs Android 4.1.2 [armeabi-v7a] / HVGA\r\nDevice: Android emulator\r\nJavascript Engine: V8 \r\nHost Operating System: OS X 10.8.2\r\nTitanium Studio: build: 3.0.1.201211131826", "comment": { "comments": [ { "id": "228895", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs with 2.1.4.GA, I can only get it to work when setting it to 8, get the same behavior setting it to 10+", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-28T21:08:46.000+0000", "updated": "2012-11-28T21:08:46.000+0000" }, { "id": "240926", "author": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same behavior with 3.0.2 GA minSDK=8 and target=11", "updateAuthor": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-06T13:27:52.000+0000", "updated": "2013-03-06T13:27:52.000+0000" }, { "id": "267066", "author": { "name": "pepotegg", "key": "pepotegg", "displayName": "Pepote Garcia", "active": true, "timeZone": "Europe/Berlin" }, "body": "This problem persists in 3.1.* with any API level greater than 9. If you disable fastdev works ok.", "updateAuthor": { "name": "pepotegg", "key": "pepotegg", "displayName": "Pepote Garcia", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-18T07:36:29.000+0000", "updated": "2013-08-18T07:36:29.000+0000" }, { "id": "275506", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We are deprecating FastDev in version 3.2.0, so marking this as \"Won't Fix\"", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T21:01:49.000+0000", "updated": "2013-10-17T21:01:49.000+0000" }, { "id": "414857", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:18:48.000+0000", "updated": "2017-03-22T18:18:48.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }