Open Bug 1719924 Opened 4 years ago Updated 2 years ago

Runtime shutdown causes Android APK app to exit

Categories

(GeckoView :: General, defect, P3)

Firefox 89
Unspecified
All
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: gabrielstrong, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Steps to reproduce:

Called GeckoRuntime.create()
Some time later called GeckoRuntime.shutdown()

Actual results:

GeckoRuntime.shutdown() caused the app process to exit with this message:
E/SystemStateListener: mInputManager should be valid!
D/GeckoThread: State changed to EXITING

Expected results:

The GeckoRuntime should have shut down and been ready for a future GeckoRuntime.create().

Tested on x86_64 Android Emulator running Android 7.1 and Android 10.
This happens on the latest nightly version as well (91.0.20210701211644).

Due to the process exit the GeckoRuntime.Delegate/onShutdown never gets called when set:
geckoRuntime.setDelegate(new GeckoRuntime.Delegate() {
@Override
public void onShutdown() {
//
}
});

Severity: -- → S3
Depends on: 1708580
Priority: -- → P3

This is an occurance of bug 1708580

You need to log in before you can comment on or make changes to this bug.