Closed
Bug 1416946
Opened 7 years ago
Closed 6 years ago
StrictMode violation: SearchEngineManager not closing an input to a local file
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1428128
People
(Reporter: Grisha, Unassigned)
References
Details
(Keywords: good-first-bug)
Seeing quite a few of these errors in my emulator's logcat: 11-13 19:30:48.494 4739 4751 E StrictMode: java.lang.Throwable: Explicit termination method 'end' not called 11-13 19:30:48.494 4739 4751 E StrictMode: at dalvik.system.CloseGuard.open(CloseGuard.java:223) 11-13 19:30:48.494 4739 4751 E StrictMode: at java.util.zip.Inflater.<init>(Inflater.java:106) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.mozglue.NativeZip.createInputStream(NativeZip.java:78) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.mozglue.NativeZip._getInputStream(Native Method) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.mozglue.NativeZip.getInputStream(NativeZip.java:62) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.util.GeckoJarReader.getStream(GeckoJarReader.java:205) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.util.GeckoJarReader.getStream(GeckoJarReader.java:177) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager.getInputStreamFromSearchPluginsJar(SearchEngineManager.java:718) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager.createEngineFromLocale(SearchEngineManager.java:578) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager.createEngineFromName(SearchEngineManager.java:491) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager.access$400(SearchEngineManager.java:55) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager$GetDefaultEngineDistributionCallbacks.defaultBehavior(SearchEngineManager.java:290) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.search.SearchEngineManager$GetDefaultEngineDistributionCallbacks.distributionNotFound(SearchEngineManager.java:220) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.distribution.Distribution$4.run(Distribution.java:1098) 11-13 19:30:48.494 4739 4751 E StrictMode: at android.os.Handler.handleCallback(Handler.java:789) 11-13 19:30:48.494 4739 4751 E StrictMode: at android.os.Handler.dispatchMessage(Handler.java:98) 11-13 19:30:48.494 4739 4751 E StrictMode: at android.os.Looper.loop(Looper.java:164) 11-13 19:30:48.494 4739 4751 E StrictMode: at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:43)
Reporter | ||
Updated•7 years ago
|
Blocks: strictmode
Updated•7 years ago
|
Assignee: nobody → cnevinchen
Priority: -- → P3
Updated•7 years ago
|
Keywords: good-first-bug
Updated•7 years ago
|
Assignee: cnevinchen → nobody
Comment 1•6 years ago
|
||
I think this time these strictmode warnings were caused by bug 1428128 - when building via Gradle the omnijar was erroneously stored compressed, so we'd try opening a compressed omni.ja, which doesn't work (see [1] and [2]), and then abort without closing the InflaterInputStream we had opened without really wanting to. If somebody feels strongly about immediately closing the input stream after such errors, feel free to reopen this. [1] https://dxr.mozilla.org/mozilla-central/rev/351c75ab74c9a83db5c0662ba271b49479adb1f1/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/GeckoJarReader.java#187-213 [2] https://dxr.mozilla.org/mozilla-central/rev/351c75ab74c9a83db5c0662ba271b49479adb1f1/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/NativeZip.java#29-32
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•