Closed Bug 1504904 Opened 5 years ago Closed 5 years ago

--enable-default-toolkit=cairo-gtk3-wayland requires a Gtk with wayland backend

Categories

(Core :: Widget: Gtk, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: glandium, Assigned: stransky)

References

Details

Attachments

(1 file, 1 obsolete file)

While bug 1503592 makes the default backend used by such builds the X11 backend for now, the resulting build can't be used on a system with a Gtk3 without the wayland backend, because it uses the gdk_wayland_display_get_type symbol.
Blocks: 1501218
Assignee: nobody → stransky
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/130c60233efa
Provide fallback symbol gdk_wayland_display_get_type(), r=jhorak
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/130c60233efa
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
This didn't fix anything. Now running on a Gtk without wayland support crashes in the wrapper that was added.

The stack trace looks like:

#0  0x0000555555564610 in mozalloc_abort ()
#1  0x0000555555564630 in abort ()
#2  0x00007ffff7dff2e9 in gdk_wayland_display_get_type () from /builds/worker/firefox/libmozwayland.so
#3  0x00007fffebe2585d in mozilla::widget::MakeScreen(_GdkScreen*, int) () from /builds/worker/firefox/libxul.so
#4  0x00007fffebe255b3 in mozilla::widget::ScreenHelperGTK::RefreshScreens() () from /builds/worker/firefox/libxul.so
#5  0x00007fffedc73bfc in nsAppShell::Init() () from /builds/worker/firefox/libxul.so
#6  0x00007fffebe4b3f6 in nsAppShellInit() () from /builds/worker/firefox/libxul.so

Presumably, that's because GDK_IS_WAYLAND_DISPLAY expands to G_TYPE_CHECK_INSTANCE_TYPE((obj), GDK_TYPE_WAYLAND_DISPLAY) where GDK_TYPE_WAYLAND_DISPLAY is gdk_wayland_display_get_type().
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #9023577 - Attachment is obsolete: true
Should be fine now, I checked libxul.so for the symbol and it not present there any more with this patch. Thanks.
Keywords: checkin-needed
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/05353b73a6ac
Don't use GDK_IS_WAYLAND_DISPLAY() as it's missing on Gtk+ X11 only builds, r=jhorak
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/05353b73a6ac
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.