[AC-408] Can run app twice after terminate
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-08T15:20:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Agustin Quiroga |
Assignee | Motiur Rahman |
Created | 2015-06-01T13:15:02.000+0000 |
Updated | 2015-11-08T15:20:47.000+0000 |
Description
Steps to Reproduce
1. Run a mobile project (adroid emulator o device)
2. terminate and relaunch
Actual Result
On android emulator: new android emulator is started and app is never installed on new emulator instance.
On device app is never relaunched
Expected Result
On emulator, app is relaunched on same emulator instance.
On device, app is relaunched.
Comments
JSON Source
[~agusquiroga] can you please add more info to this ticket? Logs, test case, steps to reproduce. And is this happening just for one project? or it's for any project
It happens in all projects i use. Don't really have more info than that, where can i found log for this? I installed genymotion, but the result is the same. I start working on a project. Enable liveview, Then select emulator o device (with a device plugged in), the app compiles, then launches on the selected target. I keep working and testing. Then if a change a asset and need to recompile the app is never deployed to the target... it get stuck on writing manifest action on the console. Tried to restart the target (close emulator, reconnect device) and relaunch, terminate and remove, and then launch... nothing. The only real solution is to restart the Appcelerator studio and start over. Very annoying. Work becomes tedious.
Also tried reinstalling the studio... is the same thing... The only thing not done by the book (documentation) was that i had to add manually by console the liveview hook since was not working out of the box. FOund the answer in your forums.
Found two problems. First: i was using a bad targetSdkVersion on the tiapp.xml. Fixed. Second: if i start the emulator with liveview enabled, i can't rerun the app, first i have to terminate the started thread on the debug view, then clean the project, then launch again. And sometimes it's not enough and I have to open the windows task manager and terminate manually some node executions that are open to be able to launch again the app.
[~agusquiroga] We can not replicate the issue, please attach a test case and steps to reproduce the issue, also please attach log file
@Radamantis Torres-Lechuga where can i find the logs you refer to?
Hello, [~agusquiroga] To access the log file In the Studio-specific submenu, navigate to Help > Studio > View Log File to open the log file in an editor window, where you can then save to a separate file in order to attach it to a support ticket. Also what error does in show in the Studio console when you run? Please, attach the console log. Thanks.
Prior to relaunch i cleare the log and then relaunched. Process was interrupted (copied below is the app command line), but the log was empty. Appcelerator Command-Line Interface, version 4.0.1 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "C:\\Users\\AgusQuiroga\\.appcelerator\\install\\4.0.1\\package", "C:\\Users\\AgusQuiroga\\.appcelerator\\install\\4.0.1\\package\\node_modules", "C:\\Windows\\System32\\node_modules", "C:\\Windows\\node_modules", "C:\\node_modules", "C:\\Users\\AgusQuiroga\\.appcelerator\\.npm\\lib\\node_modules" ] DEBUG | [PLUGIN-LOAD] 0ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\appc.js DEBUG | [PLUGIN-LOAD] 774ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\node_modules\appc-cli-titanium\appc.js DEBUG | [PLUGIN-LOAD] 1ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\node_modules\arrow\appc.js log level set to "trace" executing command "run" set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com"} checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1433683814070 false ACS config file: C:\Users\AgusQuiroga\.acs found ACS login { mid: '80-19-34-A3-34-C9', username: 'agusquiroga@webq.com.ar', cookie: [ 'connect.sid=s%3AFG8h%2F%2FuNRmjiKqd82DMbN2Am.AzoODTplf6QwRCipsyCJMAhw60aP9ktoL%2FzTkhO9nwA; Path=/; Expires=Sun, 07 Jun 2015 13:30:11 GMT; HttpOnly' ], publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443, defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com ACS cookie expiry [ 1433683811000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "192.168.1.6", "username": "agusquiroga@webq.com.ar", "password": "
And then, when triyng to relaunch again. {quote}Appcelerator Command-Line Interface, version 4.0.1 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "C:\\Users\\AgusQuiroga\\.appcelerator\\install\\4.0.1\\package", "C:\\Users\\AgusQuiroga\\.appcelerator\\install\\4.0.1\\package\\node_modules", "C:\\Windows\\System32\\node_modules", "C:\\Windows\\node_modules", "C:\\node_modules", "C:\\Users\\AgusQuiroga\\.appcelerator\\.npm\\lib\\node_modules" ] DEBUG | [PLUGIN-LOAD] 0ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\appc.js DEBUG | [PLUGIN-LOAD] 798ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\node_modules\appc-cli-titanium\appc.js DEBUG | [PLUGIN-LOAD] 1ms C:\Users\AgusQuiroga\.appcelerator\install\4.0.1\package\node_modules\arrow\appc.js log level set to "trace" executing command "run" set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com"} checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1433683814070 false ACS config file: C:\Users\AgusQuiroga\.acs found ACS login { mid: '80-19-34-A3-34-C9', username: 'agusquiroga@webq.com.ar', cookie: [ 'connect.sid=s%3AFG8h%2F%2FuNRmjiKqd82DMbN2Am.AzoODTplf6QwRCipsyCJMAhw60aP9ktoL%2FzTkhO9nwA; Path=/; Expires=Sun, 07 Jun 2015 13:30:11 GMT; HttpOnly' ], publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443, defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com ACS cookie expiry [ 1433683811000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "192.168.1.6", "username": "agusquiroga@webq.com.ar", "password": "