Closed Bug 1449567 Opened 6 years ago Closed 6 years ago

Crash in java.lang.NullPointerException: NativeException NullHandle() [T = nsWindow::LayerViewSupport] at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)

Categories

(Firefox for Android Graveyard :: General, defect, P1)

Firefox 58
ARM
Android
defect

Tracking

(geckoview62 wontfix, firefox-esr60 wontfix, firefox59 wontfix, firefox60 wontfix, firefox61 wontfix, firefox62 wontfix, firefox63 verified, firefox64 verified)

VERIFIED FIXED
Firefox 64
Tracking Status
geckoview62 --- wontfix
firefox-esr60 --- wontfix
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- verified
firefox64 --- verified

People

(Reporter: philipp, Assigned: jchen)

References

Details

(Keywords: crash, regression, Whiteboard: --do_not_change--[priority:high])

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is
report bp-a2ca0a59-aba6-4a5b-b126-4cda60180322.
=============================================================

Java Stack Trace 	

java.lang.NullPointerException: NativeException NullHandle() [T = nsWindow::LayerViewSupport]
	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:407)


Top 10 frames of crashing thread:

0 libxul.so mozilla::jni::detail::ProxyNativeCall<nsWindow::LayerViewSupport, mozilla::java::LayerSession::Compositor, false, false, const mozilla::jni::Ref<mozilla::jni::Object, _jobject*>&>::Call<false, false, 0> widget/android/jni/Natives.h:437
1 libxul.so mozilla::jni::detail::ProxyNativeCall<nsWindow::LayerViewSupport, mozilla::java::LayerSession::Compositor, false, false, const mozilla::jni::Ref<mozilla::jni::Object, _jobject*>&>::operator widget/android/jni/Natives.h:499
2 libxul.so mozilla::ThreadEventQueue<mozilla::PrioritizedEventQueue<mozilla::EventQueue> >::PutEventInternal xpcom/threads/ThreadEventQueue.cpp
3 libxul.so mozilla::detail::RunnableFunction<mozilla::jni::detail::ProxyNativeCall<nsWindow::LayerViewSupport, mozilla::java::LayerSession::Compositor, false, false, const mozilla::jni::Ref<mozilla::jni::Object, _jobject*>&> >::Run xpcom/threads/nsThreadUtils.h:529
4 libxul.so nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1040
5 libxul.so mozilla::detail::VariantImplementation<unsigned char, 0, const int, const char*, void > > mfbt/Variant.h:219
6 libxul.so NS_IdleDispatchToCurrentThread xpcom/threads/nsThreadUtils.cpp:324
7 libxul.so wcsrtombs 
8 libxul.so wcsrtombs 
9 libxul.so NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:517

=============================================================

these crashes on fennec are regressing since firefox 58. they mainly affect users on samsung devices and comments generally refer to using split-screen/multi-windows mode...
Over 260 crashes on release in the last week. Is this something maybe the SV folks could take a look at?
Vlad, please have the crew look at this sooner rather than later.
Flags: needinfo?(sdaswani) → needinfo?(vlad.baicu)
Priority: -- → P1
Whiteboard: --do_not_change--[priority:high]
Hello, we've looked at the details and investigated a bit but this seems to be more of a core issue rather than frontend
Flags: needinfo?(vlad.baicu)
This crash is still present in 61, with moderate (800 crashes/week) volume on release but not common on beta or nightly. 

User comment with STR:

Crash when resizing Firefox for use in overlay in other application  

Observed: Whenever resizing firefox into a small overlay window for use in other applications on a Samsung Galaxy Tab S3 Firefox has a high probability to crash. When it does crash, it does so immediately after resizing and will get frizen for a short while before crashing. After the crash has happened the window sometimes doesn 't close but isn 't interactive. It stays until I reopen Firefox and repeat the process of resizing or until I restart the Tablet.It also seems to relate to what software is in the background. When it 's a game probability for a crash is higher.

What I expected: Firefox shouldn 't just crash no matter what I do. Though the other sofware might be at fault here. Aso when it crashed it should close completely.

Steps to Reproduce: 
1 Start Firefox on a Samsung Galaxy Tab S3
2 Open another application
3 Drag any corner to resize the window. The page opened doesn 't seem to have any influence since the crash happenes with any page, even just the default starupp page.
4 If the crash hasn 't happened yet tab out of firefox and open the other application to view both.

Reproduceable: Yes random Occurence Likelyhood when following steps to reproduce ~75
Haven 't tested on other devices
Susheel, might that help?
Flags: needinfo?(sdaswani)
It helps :lizzard, but I would need to get that device to see if we can STR.

Sorina, do you have a Samsung Galaxy Tab S3 available to try and repro?
Flags: needinfo?(sdaswani) → needinfo?(sorina.florean)
(In reply to :sdaswani only needinfo from comment #6)
> It helps :lizzard, but I would need to get that device to see if we can STR.
> 
> Sorina, do you have a Samsung Galaxy Tab S3 available to try and repro?

Yes, we have a Samsung Galaxy Tab S3(Android 8.0) and we will investigate following the information from comment 4 to see if we can get STR. Keeping the needinfo flag and get back with the results ASAP.
Tested with the affected device but we weren't able to reproduce the crash. We performed steps from comment 4 and exploratory testing and everything worked fine. We only manage to reproduce bug 1439513 on an S8 device.
Flags: needinfo?(sorina.florean)
David, we think this is a Gecko bug - can you have someone on your team take a look.

Petru - can you detail why you think it's a gecko bug?
Flags: needinfo?(petru.lingurar)
Flags: needinfo?(dbolter)
It looks like this signature has been around a while. Jim do you know what's going on here?
Flags: needinfo?(dbolter) → needinfo?(nchen)
Flags: needinfo?(petru.lingurar) → needinfo?(vlad.baicu)
Well, the stacktrace points to a gecko/native issue and in absence of STRs I don't think there is much we can do here
Flags: needinfo?(vlad.baicu)
Not sure of the exact cause of this but I have a speculative fix.
Flags: needinfo?(nchen)
If we're trying to detach and reattach the same compositor object for
whatever reason, we should skip it so we don't inadvertently end up not
attaching the object at all.
Assignee: nobody → nchen
Status: NEW → ASSIGNED
Comment on attachment 9008230 [details]
Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp

James Willcox (:snorp) (jwillcox@mozilla.com) has approved the revision.
Attachment #9008230 - Flags: review+
Pushed by nchen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/52573727971b
Don't reattach compositor for the same compositor object; r=snorp
Attachment #9008230 - Attachment description: Bug 1449567 - Don't reattach compositor for the same compositor object; r?snorp → Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp
Pushed by nchen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28888ba362a1
Don't reattach compositor for the same compositor object; r=snorp
Flags: needinfo?(nchen)
https://hg.mozilla.org/mozilla-central/rev/28888ba362a1
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Please request Beta approval on this when you get a chance. Doesn't look like we'll be able to verify this bug until then.
Flags: needinfo?(nchen)
Comment on attachment 9008230 [details]
Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp

Approval Request Comment
[Feature/Bug causing the regression]: N/A
[User impact if declined]: Low volume crash on some Samsung devices
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: Not really
[Why is the change risky/not risky?]: Speculative fix that doesn't add any new behavior
[String changes made/needed]: None
Flags: needinfo?(nchen)
Attachment #9008230 - Flags: approval-mozilla-beta?
Comment on attachment 9008230 [details]
Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp

Uplift approved for 63 beta 8, thanks.
Attachment #9008230 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Device:
 - Samsung Galaxy Tab S3 (Android 8.0)

Tested following the steps in Comment 4, plus several other scenarios in the same context (large number of tabs opened, different addons/themes installed, with normal/private browsing, guest session). FF performed as expected in all of the scenarios, marking as verified.
Status: RESOLVED → VERIFIED
Hardware: Unspecified → ARM
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: