Closed Bug 1020926 Opened 12 years ago Closed 12 years ago

java.lang.IllegalStateException: Already registered Webapps:Postinstall under a different type

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mhaigh, Assigned: mhaigh)

References

Details

(Whiteboard: [WebRuntime])

Attachments

(1 file)

APK installation not finishing because of following bug: 20933 GeckoConsole E [model] Found app with lookup key slice-fruits 20933 GeckoConsole E [buttons] Install requested for Slice Fruits 20933 GeckoConsole E [JavaScript Warning: "[buttons] User data not available for Slice Fruits"] 20933 GeckoConsole E [buttons] Starting app installation for Slice Fruits 20933 GeckoConsole E [tracking][helpers] No associated search term to track. 20933 GeckoConsole E [apps] Using `navigator.mozApps.installPackage` installer. 20933 GeckoWebappManager D _downloadApk for https://marketplace.firefox.com/app/d62743a8-2ff8-44b0-8b4b-f19a5f9c03c3/manifest.webapp?feature_ profile=7558a9ff6e68.47.4 20933 GeckoWebappManager D downloading APK from https://controller.apk.firefox.com/application.apk?manifestUrl=https%3A%2F%2Fmarketplace.fire fox.com%2Fapp%2Fd62743a8-2ff8-44b0-8b4b-f19a5f9c03c3%2Fmanifest.webapp%3Ffeature_profile%3D7558a9ff6e68.47.4 20933 GeckoWebappManager D downloading APK to /storage/emulated/0/Download/httpsmarketplacefirefoxcomappd62743a82ff844b08b4bf19a5f9c03c3manif estwebappfeatureprofile7558a9ff6e68474.apk 20933 GeckoWebappManager.. D onreadystatechange: 2 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 32615 bytes 20933 GeckoWebappManager.. D onprogress: wrote 32615 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 13018 bytes 20933 GeckoWebappManager.. D onprogress: wrote 13018 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 16363 bytes 20933 GeckoWebappManager.. D onprogress: wrote 16363 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 16384 bytes 20933 GeckoWebappManager.. D onprogress: wrote 16384 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49112 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49112 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 32744 bytes 20933 GeckoWebappManager.. D onprogress: wrote 32744 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 32752 bytes 20933 GeckoWebappManager.. D onprogress: wrote 32752 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65488 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65488 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 16376 bytes 20933 GeckoWebappManager.. D onprogress: wrote 16376 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49128 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49128 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49128 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49128 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 32760 bytes 20933 GeckoWebappManager.. D onprogress: wrote 32760 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65512 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65512 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49128 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49128 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49136 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49136 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65505 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65505 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 32760 bytes 20933 GeckoWebappManager.. D onprogress: wrote 32760 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65520 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65520 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65520 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65520 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49144 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49144 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65520 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65520 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49144 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49144 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49136 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49136 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49143 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49143 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49144 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49144 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 81896 bytes 20933 GeckoWebappManager.. D onprogress: wrote 81896 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 49144 bytes 20933 GeckoWebappManager.. D onprogress: wrote 49144 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 65512 bytes 20933 GeckoWebappManager.. D onprogress: wrote 65512 bytes 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onreadystatechange: 3 20933 GeckoWebappManager.. D onprogress: received 31935 bytes 20933 GeckoWebappManager.. D onprogress: wrote 31935 bytes 20933 GeckoWebappManager.. D onreadystatechange: 4 20933 GeckoHealthRec D Recording session end: P 20933 GeckoHealthRec V Recorded session entry for env 4, current is 4 20933 GeckoSessInfo D Recording session done: 1401968156915 20933 GeckoBrowserProvider D Expiring history. 20933 GeckoBrowserProvider D Expiring thumbnails. 20933 GeckoHealth I fennec_martyn :: HealthReportBroadcastService :: Registering HealthReportPruneService. 20933 GeckoHealth I fennec_martyn :: BackgroundService :: Setting inexact repeating alarm for interval 86400000 20933 GeckoMemoryMonitor D onTrimMemory() notification received with level 20 20933 GeckoWebappInstall.. I Downloaded APK file deleted 20933 GeckoProfile D Created new profile dir. 20933 dalvikvm W threadid=11: thread exiting with uncaught exception (group=0x41a51ce0) 20933 GeckoAppShell E >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 18694 ("GeckoBackgroundThread") 20933 GeckoAppShell E java.lang.IllegalStateException: Already registered Webapps:Postinstall under a different type 20933 GeckoAppShell E at org.mozilla.gecko.EventDispatcher.checkNotRegistered(EventDispatcher.java:86) 20933 GeckoAppShell E at org.mozilla.gecko.EventDispatcher.registerGeckoThreadListener(EventDispatcher.java:125) 20933 GeckoAppShell E at org.mozilla.gecko.webapp.InstallHelper.registerGeckoListener(InstallHelper.java:153) 20933 GeckoAppShell E at org.mozilla.gecko.webapp.InstallHelper.access$000(InstallHelper.java:30) 20933 GeckoAppShell E at org.mozilla.gecko.webapp.InstallHelper$1.run(InstallHelper.java:60) 20933 GeckoAppShell E at android.os.Handler.handleCallback(Handler.java:733) 20933 GeckoAppShell E at android.os.Handler.dispatchMessage(Handler.java:95) 20933 GeckoAppShell E at android.os.Looper.loop(Looper.java:136) 20933 GeckoAppShell E at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:32) 20933 GeckoAppShell E Main thread stack: 20933 GeckoAppShell E android.os.MessageQueue.nativePollOnce(Native Method) 20933 GeckoAppShell E android.os.MessageQueue.next(MessageQueue.java:138) 20933 GeckoAppShell E android.os.Looper.loop(Looper.java:123) 20933 GeckoAppShell E android.app.ActivityThread.main(ActivityThread.java:5149) 20933 GeckoAppShell E java.lang.reflect.Method.invokeNative(Native Method) 20933 GeckoAppShell E java.lang.reflect.Method.invoke(Method.java:515) 20933 GeckoAppShell E com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) 20933 GeckoAppShell E com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) 20933 GeckoAppShell E de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132) 20933 GeckoAppShell E dalvik.system.NativeStart.main(Native Method)
Assignee: nobody → mhaigh
Rename event that InstallHelper is trying to listen to and launch event with that name from the webapp event listener
Attachment #8434926 - Flags: feedback?(myk)
Attachment #8434926 - Flags: feedback?(jhugman)
Whiteboard: [WebRuntime]
I'm not sure this is the correct fix -- see Bug 1021443. The introduction of NativeEvent stuff broke this.
Comment on attachment 8434926 [details] [diff] [review] Stop InstallHelper from trying to re-register listener Hmm, to my inexpert eye, bug 1021443 looks like a sufficient fix for the issue, so I don't think we need this.
Attachment #8434926 - Flags: feedback?(myk)
Comment on attachment 8434926 [details] [diff] [review] Stop InstallHelper from trying to re-register listener Review of attachment 8434926 [details] [diff] [review]: ----------------------------------------------------------------- I think this bug will be fixed by the same fix for Bug 995803.
Attachment #8434926 - Flags: feedback?(jhugman) → feedback-
Agreed - lets scrap this bug and fix
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: