tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.75k stars 1.21k forks source link

Android: Unexcepted RuntimeError onResume #14118

Open Informate opened 3 days ago

Informate commented 3 days ago

I have searched and made sure there are no existing issues for the issue I am filing

Description

I found this unexpected error on resume. (Maybe it could be my Samsung phone experiencing an elsewhere not existent problem).

On app resume this error sometimes appeares and inhibits app resume:

runtime-error

I have also another similar issue with the interval service. The service object is memorized at service startup (for each cycle) into a variable, later on inside a setInterval (when a bounded service already called the paused event) I call toForergroundNotify, but sometimes the call fails with the error: can not read property 'forergroundNotify' of null !!! (In theory as long as I know the object should be null from startup, but I haven't checked this now).

Expected Behavior

No Error on Resume

Actual behavior

From time to time this error could happen

Reproducible sample

X

Steps to reproduce

X

Platform

Android

SDK version you are using

12.4.0 GA

Alloy version you are using

No response

m1ga commented 3 days ago

is this with Liveview enabled? If so: this happens from time to time. I never have this without liveview or in production

The forergroundNotify part sounds more like something you have to fix in your app.

Informate commented 2 days ago

I am not sure what LiveView is. I would say not using but not sure. It is not in production, is an APK uploaded via USB.