Bug 90579 - gtk3-demo crashes run with wayland backend, wl_display invalid argument
Summary: gtk3-demo crashes run with wayland backend, wl_display invalid argument
Status: RESOLVED INVALID
Alias: None
Product: Wayland
Classification: Unclassified
Component: wayland (show other bugs)
Version: unspecified
Hardware: ARM Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 07:33 UTC by Mark Yao
Modified: 2015-05-25 01:55 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
run gtk3-demo with WAYLAND_DEBUG=1 (3.04 KB, text/plain)
2015-05-22 07:33 UTC, Mark Yao
Details

Description Mark Yao 2015-05-22 07:33:08 UTC
Created attachment 115966 [details]
run gtk3-demo with WAYLAND_DEBUG=1

weston version: 1.7.0
wayland version: 1.7.92
gtk+ version: 3.17.1

according to http://wayland.freedesktop.org/gtk.html, run gtk3-demo. 

weston --backend=x11-backend.so

then in weston-desktop-shell:
export GDK_BACKEND=wayland
gtk3-demo

(gtk3-demo:999): Gdk-CRITICAL **: gdk_screen_get_monitor_scale_factor: assertion 'monitor_num < gdk_screen_get_n_monitors (screen)' failed
[16:25:18.644] libwayland: not a valid new object id (5), message get_xdg_surface(no)

(gtk3-demo:999): Gdk-ERROR **: wl_display@1: error 1: invalid arguments for xdg_shell@16.get_xdg_surface

attachment is run command with WAYLAND_DEBUG=1

Is that those weston/wayland/gtk+ version not stable? Can someone tell me a series of packages to run the test?
Comment 1 Jonas Ådahl 2015-05-22 07:50:46 UTC
You are reporting a crash in gtk3-demo, but this it the freedesktop.org bug tracker. Crashes in gtk3-demo should be reported it to bugs.gnome.org.

Anyhow, the crash you are seeing is a version mismatch between the unstable xdg_shell of version 4 in weston 1.7, and the unstable xdg_shell of version 5 in gtk+ 3.17. If you upgrade to the latest RC (released a few days ago) of wayland/weston they will have the same version, or downgrade gtk to some earlier version that shipped with xdg_shell unstable version 4.
Comment 2 Mark Yao 2015-05-22 08:14:21 UTC
(In reply to Jonas Ådahl from comment #1)
> You are reporting a crash in gtk3-demo, but this it the freedesktop.org bug
> tracker. Crashes in gtk3-demo should be reported it to bugs.gnome.org.
> 
> Anyhow, the crash you are seeing is a version mismatch between the unstable
> xdg_shell of version 4 in weston 1.7, and the unstable xdg_shell of version
> 5 in gtk+ 3.17. If you upgrade to the latest RC (released a few days ago) of
> wayland/weston they will have the same version, or downgrade gtk to some
> earlier version that shipped with xdg_shell unstable version 4.

Sorry for bad place to report the bug.

I'm new to the wayland, is there a tag or branch to point which version is stable? I compile the gtk/weston/wayland on arm board, very slow for compiling, Hope get less compile to success show a wayland display.
Comment 3 Jonas Ådahl 2015-05-22 08:20:10 UTC
(In reply to Mark Yao from comment #2)
> (In reply to Jonas Ådahl from comment #1)
> > You are reporting a crash in gtk3-demo, but this it the freedesktop.org bug
> > tracker. Crashes in gtk3-demo should be reported it to bugs.gnome.org.
> > 
> > Anyhow, the crash you are seeing is a version mismatch between the unstable
> > xdg_shell of version 4 in weston 1.7, and the unstable xdg_shell of version
> > 5 in gtk+ 3.17. If you upgrade to the latest RC (released a few days ago) of
> > wayland/weston they will have the same version, or downgrade gtk to some
> > earlier version that shipped with xdg_shell unstable version 4.
> 
> Sorry for bad place to report the bug.

Thats alright. Thanks for the report, even though it being in the wrong place :)

> 
> I'm new to the wayland, is there a tag or branch to point which version is
> stable? I compile the gtk/weston/wayland on arm board, very slow for
> compiling, Hope get less compile to success show a wayland display.

Just in a some days there will be a new stable release of wayland and weston. This will be compatible with both gtk+ 3.17 and the current master branch and gtk+ 3.16.*. If you don't want to wait, just grab the latest release candidate. You can find theme here: http://wayland.freedesktop.org/releases/ where the most recent ones are 1.7.92.
Comment 4 Mark Yao 2015-05-25 01:29:30 UTC
I've downgrade the gtk+ to 3.16.3, but same error again.

I found that there is a error at libwayland:
  "libwayland: not a valid new object id (5), message get_xdg_surface(no)."
Comment 5 Jonas Ådahl 2015-05-25 01:37:47 UTC
(In reply to Mark Yao from comment #4)
> I've downgrade the gtk+ to 3.16.3, but same error again.

That is not old enough. Looking at the git log, you need at least 3.15.6 or older. The easiest thing you can do is probably upgrading wayland/weston to the latest RC.
Comment 6 Mark Yao 2015-05-25 01:55:46 UTC
(In reply to Jonas Ådahl from comment #5)
> (In reply to Mark Yao from comment #4)
> > I've downgrade the gtk+ to 3.16.3, but same error again.
> 
> That is not old enough. Looking at the git log, you need at least 3.15.6 or
> older. The easiest thing you can do is probably upgrading wayland/weston to
> the latest RC.

Thanks very much, gtk+-demo works.
current version is that: gtk+(3.16.3) wayland(1.7.92) weston(1.7.92)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.