Closed Bug 1419461 Opened 7 years ago Closed 5 years ago

Crash in nsWindow::NativePtr<T>::Detach

Categories

(Core Graveyard :: Widget: Android, defect, P2)

57 Branch
Unspecified
Android
defect

Tracking

(firefox57 wontfix)

RESOLVED WORKSFORME
Tracking Status
firefox57 --- wontfix

People

(Reporter: marcia, Unassigned)

References

Details

(Keywords: crash, csectype-nullptr, regression)

Crash Data

This bug was filed from the Socorro interface and is
report bp-957e6b03-f785-481e-8d88-ed01e0171121.
=============================================================

Seen while reviewing Android crash stats: http://bit.ly/2Bb3Xtp. Crashes occur on API 24 only, using Samsung hardware. This crash was present in 56 as well, but more visible in 57. Currently #32 top browser crash.

Comments:

*Was adding Firefox to splitscreen and it crashed immediately, will retest now 
*crashed in pop up mode 

Top 10 frames of crashing thread:

0 libxul.so nsWindow::NativePtr&lt;nsWindow::LayerViewSupport&gt;::Detach widget/android/jni/Refs.h:77
1 libxul.so nsWindow::GeckoViewSupport::Reattach widget/android/nsWindow.cpp:1368
2 libxul.so mozilla::jni::detail::ProxyNativeCall&lt;nsWindow::GeckoViewSupport, mozilla::java::GeckoView::Window, false, true, const mozilla::jni::Ref&lt;mozilla::java::GeckoView, _jobject*&gt;&amp;, const mozilla::jni::Ref&lt;mozilla::jni::Object, _jobject*&gt;&amp;, const mozilla::jni::Ref&lt;mozilla::jni::Object, _jobject*&gt;&amp;&gt;::operator widget/android/jni/Natives.h:428
3 libxul.so nsWindow::WindowEvent&lt;mozilla::jni::detail::ProxyNativeCall&lt;nsWindow::GeckoViewSupport, mozilla::java::GeckoView::Window, false, true, const mozilla::jni::Ref&lt;mozilla::java::GeckoView, _jobject*&gt;&amp;, const mozilla::jni::Ref&lt;mozilla::jni::Object, _jobject*&gt;&amp;, const mozilla::jni::Ref&lt;mozilla::jni::Object, _jobject*&gt;&amp;&gt;, false, const mozilla::jni::Ref&lt;mozilla::java::GeckoView::Window, _jobject*&gt;&amp;, nsWindow::GeckoViewSupport&gt;::Run widget/android/nsWindow.cpp:161
4 libxul.so nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1039
5 libxul.so NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:521
6 libxul.so mozilla::ipc::MessagePump::Run ipc/glue/MessagePump.cpp:97
7 libxul.so MessageLoop::Run ipc/chromium/src/base/message_loop.cc:319
8 libxul.so nsBaseAppShell::Run widget/nsBaseAppShell.cpp:158
9 libxul.so nsAppStartup::Run toolkit/components/startup/nsAppStartup.cpp:288

=============================================================
Ioana - Do think someone on you end can try to reproduce this issue on a Samsung device?
Flags: needinfo?(ioana.chiorean)
Priority: -- → P2
ni on No-Jun - can we get someone to try to reproduce this on a Samsung device?
Flags: needinfo?(npark)
Hey Marcia, 
Sorry to have missed this. At this point we are out of office and I only have a Pixel with me. I cna try to find someone with a phone but i am not sure of the success. 

If No Jun won't find anyone, this will be on our table Monday, first hour. ( We are OOO Nov 30, Dec 1st as they are National holidays). 
Will leave the NI on me.
I looked around but I don't have access to Samsung with API 24 - it looks like we have to wait until Monday for this.
Flags: needinfo?(npark)
Tested with S6, S6 Edge, S7 and Samsung Galaxy tab with API 24/Android 7.0. 
- Tried to browser in split screen, play video and other action - all ok.
- Tested with pop ups - loaded multi pop us, new tabs (popuptests) - all ok 

i was not able to reproduce the crash at all.
Flags: needinfo?(ioana.chiorean)
Some of the comments mention "tried to use Pop Up view on Galaxy S8 " - so I assume that is a pref that has to be enabled in Settings? Do you have a Galaxy S8? Thanks.
Flags: needinfo?(ioana.chiorean)
Too soon to tell if 58/59 are affected, but it's also too late to fix this for 57.
(In reply to Marcia Knous [:marcia - use ni] from comment #6)
> Some of the comments mention "tried to use Pop Up view on Galaxy S8 " - so I
> assume that is a pref that has to be enabled in Settings? Do you have a
> Galaxy S8? Thanks.

Indeed that seems to be a new feature and we do have a S8 (but not with me). Bogdan can you pls have a look at this ( as the phone is in your custody/or anyone from BM) 
Feature details: https://www.androidcentral.com/how-use-multi-window-samsung-galaxy-s8
Flags: needinfo?(ioana.chiorean) → needinfo?(bogdan.surd)
Devices:
 - Samsung Galaxy S8 (Android 7.0);
 - Samsung Galaxy Tab S3 (Android 7.0).

Hello,

 I was not able to reproduce any crash when using split screen with FF in any of the scenarios listed in Comment 5, tested with multiple tabs diverse video content and pages and everything worked fine.

 I was able however to constantly reproduce a crash when using the pop-up view option(window in window).  Crash report here: https://crash-stats.mozilla.com/report/index/482593bf-c215-40e0-8b77-2f8220180108

STR:
 1. Open FF;
 2. Tap on the recent apps button;
 3. Long tap and drag the FF window in the pop-up view area;
 4. Open several window or browse to some pages.

Expected results:
 Firefox works normally without any crashes.

Actual results:
 Firefox crashes instantly when using it in pop-up view or after navigating to some pages.

Notes:
 Only FF Beta and Release crashed in both of the devices. Nightly worked without crashing.
 Video: https://goo.gl/E9csiF
Flags: needinfo?(bogdan.surd)
See Also: → 1431017
No longer blocks: 1553515

No recent crashes. Resolving as WFM.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.