-
-
Notifications
You must be signed in to change notification settings - Fork 198
Closed
Description
Please, provide the details below:
Doing a standard tns run ios will eat exceptions that occur.
Did you verify this is a real problem by searching
yes
Tell us about the problem
For some reason the newer versions of TNS seems to eat exceptions. It logged my CONSOLE logs fine then the app appeared to freeze. No output, it would allow updates to restart the app; but no exception/crash was logged to the screen. Finally after a lot of wasted time, running it in xcode; I got to see the actual exception report so I could fix the issue.
Which platform(s) does your issue occur on?
IOS
Please provide the following version numbers that your issue occurs with:
- CLI: 3.1.3
Please tell us how to recreate the issue in as much detail as possible.
I'm not 100% sure if it eliminates all exceptions, but NONE of this printed in TNS:
2017-09-05 13:46:10.998030 demo[2304:1299789] *** JavaScript call stack:
(
0 UIApplicationMain@[native code]
1 start@file:///app/tns_modules/tns-core-modules/application/application.js:211:26
2 anonymous@file:///app/app.js:10:18
3 evaluate@[native code]
4 moduleEvaluation@:1:11
5 @:7:50
6 promiseReactionJob@:1:11
)
2017-09-05 13:46:10.998102 demo[2304:1299789] *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [GVRRendererViewController shouldAutorotate] is returning YES'
*** First throw call stack:
(0x18a3561c0 0x188d9055c 0x18a356108 0x190225e18 0x19022f0dc 0x19022f054 0x19022dafc 0x1901ad830 0x1901ad5b8 0x1901ad5b8 0x1901ad5b8 0x1901ad5b8 0x1901d13e8 0x1901ad5b8 0x1901ad5b8 0x1901aca64 0x1901ac8bc 0x1901b87a4 0x1901b8090 0x1902745ac 0x19026a840 0x19026990c 0x1902694c0 0x190269424 0x1901ae220 0x18d66e188 0x18d662e64 0x18d662d24 0x18d5df7ec 0x18d606c58 0x18d607678 0x18a3037dc 0x18a30140c 0x18a230068 0x19021c2b0 0x190217034 0x1018e8044 0x1018e711c 0x1018e6c34 0x10101d4fc 0x101651b94 0x10165a218 0x10165a228 0x101653b08 0x1015f35a0 0x1015d053c 0x101730174 0x10102dfe4 0x1017bc3d0 0x10165abf4 0x10165a228 0x10165a228 0x10165a228 0x101653b08 0x1015f35a0 0x1015d053c 0x101730240 0x1017b8060 0x101025afc 0x10106605c 0x1000a6f9c 0x1892145b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Should be something simple like do something that causes a NSException and see if TNS reports it.