{ "id": "144742", "key": "TIMOB-18576", "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": null, "resolutiondate": null, "created": "2015-02-14T16:50:48.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "console", "liveview", "logs", "simulator" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:04.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "If a LiveView-enabled app crashes in iOS Simulator or when you manually force quit and restart the app, the console shows the client reconnecting but fails to show the app logs.\r\n\r\nThis is different from device, where the logs are displayed after an app restart. This is the preferred behaviour because it doesn't require you to re-deploy the app to the device after it crashes.\r\n\r\nThe location of the Simulator remains the same between app restarts so LiveView should be able to just pick it up again when the client reconnects.\r\n\r\nh1. To reproduce\r\n\r\n1. Run an app with LiveView in iOS Simulator\r\n2. Force-close the app\r\n3. Re-open the app\r\n4. Watch the logs to see the client reconnects but doesn't show logs.\r\n\r\nh1. Example log\r\n\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[DEBUG] Reading stylesheet from: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/E5304ECC-344A-49D8-B2A1-DE7D562FBE46/data/Containers/Bundle/Application/30AC099C-7BC7-4EB4-8386-623B160D0232/asset.app/stylesheet.plist\r\n[DEBUG] 2015-02-14 17:45:50.349 asset[7608:84315] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[DEBUG] 2015-02-14 17:45:50.350 asset[7608:84315] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n [LiveView] Client connected\r\n[INFO] asset/1.0 (3.5.0.0014f83)\r\n[DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/E5304ECC-344A-49D8-B2A1-DE7D562FBE46/data/Containers/Bundle/Application/30AC099C-7BC7-4EB4-8386-623B160D0232/asset.app/app.js, Resource: app_js\r\n[DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/E5304ECC-344A-49D8-B2A1-DE7D562FBE46/data/Containers/Bundle/Application/30AC099C-7BC7-4EB4-8386-623B160D0232/asset.app/_app_props_.json, Resource: _app_props__json\r\n[DEBUG] Application booted in 380.999982 ms\r\n [LiveView] Client disconnected\r\n[DEBUG] [ioslib] [ios-sim] [DEBUG] Session did end with error (null)\r\n[DEBUG] [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/9f/sl63bfh578x0v3ktkwjk0_ym0000gn/T//ios-sim-stderr-pipe-1423932344'\r\n[DEBUG] [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/9f/sl63bfh578x0v3ktkwjk0_ym0000gn/T//ios-sim-stdout-pipe-1423932344'\r\n[DEBUG] [ioslib] [ios-sim] Exited with code: 0\r\n-- End simulator log ---------------------------------------------------------\r\n\r\n [LiveView] Client connected\r\n [LiveView] Client disconnected\r\n{code}", "attachment": [], "flagged": false, "summary": "LiveView: Console doesn't show pick up logs after restarting app in iOS Simulator", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "LiveView 1.0.6\r\nSDK 3.5.0.GA\r\nCLI 3.4.1.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }