You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sadly I don't know how to copy a full stack trace in this situation. @sitefinitysteve gave only screenshot of first lines of actual stacktrace part of this log.
Funny thing, that it is hard to reproduce if you simply suspending app, without running different ones. For example, If I'm locking/unlocking phone or simply navigating it, mostly - everything's great. But when it comes to launching different apps - it crashes with error above.
When I've tried to debug it using node-inspector and placing a callbacks for all App Events except already handled suspend/resume, node-inspector is simply detaching somewhere upon 'Chrome' step described above.
Any clues on how to copy a full stack trace or fixing this issue?
I'm using nativescript-cli on Ubuntu 14.04 with real device.
I am unable to replicate via those steps 100% of the time, however I did try to get a full stack trace by using the app analytics module of the telerik platform...app crashed twice on a demo, nothing logged.
application.on(application.uncaughtErrorEvent, function (args) {
var exception;
if (args.android)
exception = args.android;
else if (args.ios)
exception = args.ios;
monitor.trackException(exception, "Uncaught exception");
});
I think I have a way to replicate the situation ,in the developers option , set background process limit to 2 or 1, open ns app , go to another app or two then go to the ns app. If the ns app is restarted it will crash as the above picture ( using real device here )
Glad it can help a bit..the Google search and stackoverflow talked about manifest app name setting but i still cannot resolve it. Maybe other people csn help
I think the problem is in frame.android.ts (PageFragmentBody), android complains about the constructor is not public and have no empty constructor, I tried to change the constructor without parameters and calling new PageFragmentBody with :
var newFragment = new PageFragmentBody();
newFragment.frame = this;
newFragment.entry = backstackEntry;
(the constructor) :
class PageFragmentBody extends android.app.Fragment {
public frame: Frame;
public entry: definition.BackstackEntry;
public constructor() {
super();
return global.__native(this);
}
It still the same result, maybe because class generated is not public ? How can we make inherited class in nativescript public ?
@hshristov Yeah is this a typo? Did you mean 1.5? I see the version has been incrimented to 1.5, but this is a pretty critical bug to push back to December or later.
Activity
Kamilius commentedon Sep 12, 2015
I have exactly the same issue on Android.
Sadly I don't know how to copy a full stack trace in this situation.
@sitefinitysteve gave only screenshot of first lines of actual stacktrace part of this log.
Funny thing, that it is hard to reproduce if you simply suspending app, without running different ones. For example, If I'm locking/unlocking phone or simply navigating it, mostly - everything's great. But when it comes to launching different apps - it crashes with error above.
When I've tried to debug it using node-inspector and placing a callbacks for all App Events except already handled suspend/resume, node-inspector is simply detaching somewhere upon 'Chrome' step described above.
Any clues on how to copy a full stack trace or fixing this issue?
I'm using nativescript-cli on Ubuntu 14.04 with real device.
sitefinitysteve commentedon Sep 14, 2015
I am unable to replicate via those steps 100% of the time, however I did try to get a full stack trace by using the app analytics module of the telerik platform...app crashed twice on a demo, nothing logged.
x4080 commentedon Sep 30, 2015
I think I have a way to replicate the situation ,in the developers option , set background process limit to 2 or 1, open ns app , go to another app or two then go to the ns app. If the ns app is restarted it will crash as the above picture ( using real device here )
Kamilius commentedon Oct 1, 2015
@x4080 👍 awesome. It really was crashing upon app restart. Didn't knew that on android dev options is such option, like limiting processes.
And that actually works 100% of time
Also, I think that this situation should've been able to be handled by at least - "lowMemory" or "uncaughtError" application events, but it's not.
x4080 commentedon Oct 1, 2015
Glad it can help a bit..the Google search and stackoverflow talked about manifest app name setting but i still cannot resolve it. Maybe other people csn help
AntonioCuevaUrraco commentedon Oct 9, 2015
+1 I would love to figure out a way to solve this issue as it is happening quite often.
x4080 commentedon Oct 9, 2015
I think it needs high priority also
blagoev commentedon Oct 9, 2015
raised the priority. We will investigate this further as part of 1.5 work.
x4080 commentedon Oct 9, 2015
Thanks man
x4080 commentedon Oct 11, 2015
I think the problem is in frame.android.ts (PageFragmentBody), android complains about the constructor is not public and have no empty constructor, I tried to change the constructor without parameters and calling new PageFragmentBody with :
(the constructor) :
It still the same result, maybe because class generated is not public ? How can we make inherited class in nativescript public ?
5 remaining items
lscown commentedon Nov 5, 2015
Any update on this?
hshristov commentedon Nov 6, 2015
Hi guys,
We have fixed this issue and it will be included in 1.6 release.
x4080 commentedon Nov 6, 2015
Thumbs up..1.5 already finished?
sitefinitysteve commentedon Nov 6, 2015
@hshristov Yeah is this a typo? Did you mean 1.5? I see the version has been incrimented to 1.5, but this is a pretty critical bug to push back to December or later.
hshristov commentedon Nov 9, 2015
@sitefinitysteve Yeah typo on my side. Sorry. I meant 1.5
lock commentedon Aug 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.