GNOME Bugzilla – Bug 747903
gdk_screen_get_width_mm always returns 0 on Wayland
Last modified: 2016-04-18 16:12:41 UTC
The physical size of the monitor is exposed by the physical_width/physical_height of the geometry event of each wl_output, already in millimeters. This breaks Gajim’s gtk3 port, making it divide by zero.
Should be fixed in 3.16.2, I think
On 3.16.3 I can still reproduce that bug. Possibly related is this warning when I import Gdk from gi.repository: (.:26349): Gdk-CRITICAL **: gdk_screen_get_monitor_scale_factor: assertion 'monitor_num < gdk_screen_get_n_monitors (screen)' failed
i confirm that that this bug still exists. i get below when i launched web(epiphany) on WESTON.it sometimes works but sometimes segfaults. (WebKitWebProcess:653): Gdk-CRITICAL **: gdk_screen_get_monitor_scale_factor: assertion 'monitor_num < gdk_screen_get_n_monitors (screen)' failed my weston.ini file(snipped): [core] backend=drm-backend.so [output] name=LVDS1 mode=1366x768 1366x768 native res for my laptop. ENV: gtk-3.16.4 mesa-10.6.0 wayland-1.8.1 weston-1.8.0 GPU: intel ivybridge onboard Thanks for fix.
Above log happens even it works.
Works correctly in 3.17
(In reply to Matthias Clasen from comment #5) > Works correctly in 3.17 i confirmed too.thanks for fix.
Some more info The warning: Gdk-CRITICAL **: gdk_screen_get_monitor_scale_factor: assertion 'monitor_num < gdk_screen_get_n_monitors (screen)' failed has been fixed in 3.17.2, specifically with commit 62b858c 3.16.x remains affected.