Closed
Bug 1507475
Opened 7 years ago
Closed 7 years ago
[Wayland] Crash when display is changed
Categories
(Core :: Widget: Gtk, defect)
Core
Widget: Gtk
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: stransky, Assigned: stransky)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Description of problem:
Firefox-wayland crashes on display switch. I have two displays one for standing, second for sitting. Switching display through gnome-control-center causes firefox-wayland crash.
Version-Release number of selected component (if applicable):
firefox-63.0.1-5.fc29.x86_64
firefox-wayland-63.0.1-5.fc29.x86_64
How reproducible:
* Attach 2 displays A and B
* Disable display B
* Start firefox-wayland
* run gnome-control-center Display settings
* disable display A and enable display B, apply
* -> Firefox-wayland crash
Steps to Reproduce:
* Attach 2 displays A and B
* Disable display B
* Start firefox-wayland
* run gnome-control-center Display settings
* disable display A and enable display B, apply
* -> Firefox-wayland crash
Actual results:
Firefox-wayland crash
Expected results:
Application should not crash. Windows should be placed on newly activated display
Additional info:
Default Firefox using Xwayland works normally.
Downstream bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1647776
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → stransky
Assignee | ||
Comment 1•7 years ago
|
||
It's because moz_container_init() is called and puts container to data field at registry. Then wl_output is called (monitor change) and when the container is already deleted we're accessing freed data.
A solution may be to create one global registry wayland object and don't query registry in particular modules.
Assignee | ||
Comment 2•7 years ago
|
||
We need to call wl_display_get_registry() only once and use the object globally.
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by rmaries@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bafd708f5788
[Wayland] Implement global wayland registry, r=jhorak
Keywords: checkin-needed
Comment 6•7 years ago
|
||
Backed out changeset bafd708f5788 (Bug 1507475) for bustages in builds/worker/workspace/build/src/widget/gtk/mozcontainer.cpp CLOSED TREE
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&selectedJob=213397381&revision=bafd708f5788ec19c3eda5a4068f2a56fb9f4e7a
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=213397381&repo=autoland&lineNumber=27789
Backout: https://hg.mozilla.org/integration/autoland/rev/499f784117935508bfc6b8c848b4cad347f255fe
Flags: needinfo?(stransky)
Assignee | ||
Comment 7•7 years ago
|
||
Assignee | ||
Comment 8•7 years ago
|
||
Thanks, there's an updated one.
Flags: needinfo?(stransky)
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ca9f1be1f8e8
[Wayland] Implement global wayland registry, r=jhorak
Keywords: checkin-needed
Comment 10•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•