Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ios][2.5.0] More than ~100 console.log's freezes app resulting in crashed CLI #2480

Closed
roblav96 opened this issue Feb 2, 2017 · 8 comments
Labels

Comments

@roblav96
Copy link
Contributor

roblav96 commented Feb 2, 2017

Steps to reproduce

let i: number, len: number = 1000
for (i = 0; i < len; i++) {
	console.log('i hope u dont crash :X', i)
}

It gets up to ~100 then the app freezes completely thus resulting a crashed CLI.

logs

CONSOLE LOG file:///app/debug/console.js:60:23: 
[LOG] 12:19:20:502 anonymous@app/main.js:15:16
 i hope u dont crash :X 92 
 

CONSOLE LOG file:///app/debug/console.js:60:23: 
[LOG] 12:19:20:502 anonymous@app/main.js:15:16
 i hope u dont crash :X 93 
 

CONSOLE LOG file:///app/debug/console.js:60:23: 
[LOG] 12:19:20:503 anonymous@app/main.js:15:16
 i hope u dont crash :X 94 
 

CONSOLE LOG file:///app/debug/console.js:60:23: 
12:20:57 PM - File change detected. Starting incremental compilation...

12:20:58 PM - Compilation complete. Watching for file changes.

Executing before-prepare hook from /Users/roblav96/Projects/app-smile/ghmobile/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Project successfully prepared (ios)
Transferring project files...
Successfully transferred main.js.
Refreshing application...
Unable to sync files. Error is: Unable to kill the application.

This issue has been present since 2.4.0.
This also might be related to #2266

@NickIliev
Copy link
Contributor

Hey @roblav96

I've tried to reproduce this issue but to no avail. Here is the test app I have created and tested on both iOS and Android. Please post more information about the environment on which you are testing (CLI , runtimes, modules versions, Nodejs, etc,)

@roblav96
Copy link
Contributor Author

roblav96 commented Feb 3, 2017

@NickIliev hey, it's only on a device and a bit sporadic. I notice it more after an hour of developing.

┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 2.5.0           │ 2.5.0          │ Up to date  │
│ tns-core-modules │ 2.5.0           │ 2.5.0          │ Up to date  │
│ tns-android      │ 2.5.0           │ 2.5.0          │ Up to date  │
│ tns-ios          │ 2.5.0           │ 2.5.0          │ Up to date  │
└──────────────────┴─────────────────┴────────────────┴─────────────┘
OSX 10.11.6
node v6.9.1
iPhone 5s - v10.2.0

@pkoleva pkoleva added the bug label Feb 27, 2017
@NathanaelA

This comment was marked as abuse.

@roblav96
Copy link
Contributor Author

roblav96 commented Mar 27, 2017

@NathanaelA @NickIliev I can 100% confirm this is a bug on 2.5.3. It is an issue for both iOS and Android while developing on real devices; NOT simulators. I'll try and whip up a demo today.

@NathanaelA

This comment was marked as abuse.

@pkoleva
Copy link
Contributor

pkoleva commented May 4, 2017

Hey @roblav96,
I am still unable to reproduce this. I am using 3.0.0 of our CLI and a real iOS device to try to reproduce it. Can you give us sample app that reproduces it every time?

@roblav96
Copy link
Contributor Author

roblav96 commented May 4, 2017

@pkoleva I have not tried this on the latest v3 RC. I will and let you know. Thank you =]

@pkoleva
Copy link
Contributor

pkoleva commented Jun 5, 2017

Closing the issue due to lack of activity.
@roblav96 If you face it again either reopen it or comment below with detailed steps to reproduce.

@pkoleva pkoleva closed this as completed Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants