Strange random exception


#1

I have random exception only on iOS device

EXCEPTION: TypeError: Attempted to assign to readonly property.

ORIGINAL STACKTRACE:
2016-04-27 21:35:37.974 BizPulse[13333:3128673] ERROR: _reset@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:16229:23
check@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:16153:20
diff@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:16142:23
ngDoCheck@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:3128:44
detectChangesInRecordsInternal
detectChangesInRecords@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14532:48
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14509:36
_detectChangesContentChildren@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14602:34
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14510:43
_detectChangesInViewChildren@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14609:34
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14513:42
_detectChangesContentChildren@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14602:34
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14510:43
_detectChangesInViewChildren@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14609:34
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14513:42
_detectChangesInViewChildren@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14609:34
runDetectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14513:42
detectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14498:89
detectChanges@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:15399:86
file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14326:97
forEach@[native code]
tick@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14326:45
file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14243:133
invoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:390:34
onInvoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28748:47
invoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:389:43
runGuarded@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:297:54
runInner@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28779:81
run@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28686:74
file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:14243:108
file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28909:56
__tryOrUnsub@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73894:20
next@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73843:34
_next@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73802:30
next@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73779:23
_finalNext@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73654:34
_next@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73646:28
next@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:73603:19
emit@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28898:80
_checkStable@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28606:48
onLeave@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28578:35
onInvoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28751:38
invoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:389:43
runGuarded@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:297:54
runInner@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28779:81
run@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:28686:74
outsideHandler@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:32902:64
invokeTask@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:423:43
runTask@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:320:58
invoke@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/angular2-polyfills.js:490:41
dispatchEvent@[native code]
touchEnd@file:///Users/pivalig/Library/Developer/CoreSimulator/Devices/0E3DBE71-7546-40E2-87C4-63900FCBDF86/data/Containers/Bundle/Application/9C04ED0C-CE81-47C0-8AD7-418D1EBFFEC2/BizPulse.app/www/build/js/app.bundle.js:59802:44
[native code]
2016-04-27 21:35:37.977 BizPulse[13333:3128673] ERROR: ERROR CONTEXT:
2016-04-27 21:35:37.977 BizPulse[13333:3128673] ERROR: error JSON.stringify()ing argument: TypeError: JSON.stringify cannot serialize cyclic structures.

Data-binding error: Attempted to assign readonly property error
#2

So an error isn’t really helpful here :smile:

we need more information, like what were you trying to do that caused this?


#3

Yes. agree. I just spent 2 days to found the reason.
Something with segment and ngSwitchWhen. on fist page.

Here my page markup (Don’t know how to post markup. sorry)


When i replace ngSwitchWhen to ngIf and add a buttons with clicks there is no errors.

So for now, I just removed segment from first page and move functionality to side menu and all work great now.

When i will find exact reason i will post here.

Thank’s.

P.S. Congratulations, guys with new round investments! Only forward!