Skip to content

Instantly share code, notes, and snippets.

@zzeroo
Created September 10, 2016 11:52
Show Gist options
  • Save zzeroo/6c54c0a58f2ad37075cb17f568d8654a to your computer and use it in GitHub Desktop.
Save zzeroo/6c54c0a58f2ad37075cb17f568d8654a to your computer and use it in GitHub Desktop.

gdb output start

(gdb) run
Starting program: /root/gtk-rs-fehler-tests/target/window 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb571e230 (LWP 11967)]

(window:11964): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(window:11964): GLib-GIO-CRITICAL **: g_dbus_proxy_get_name_owner: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(window:11964): Gtk-WARNING **: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned

(window:11964): Gdk-WARNING **: Lost connection to Wayland compositor.
[Thread 0xb5b1c000 (LWP 11964) exited]
[Inferior 1 (process 11964) exited with code 01]

Meta

weston --version # weston 1.11.93
pkg-config --modversion wayland-server # 1.11.93
pkg-config --modversion gtk+-3.0 # 3.21.5

Testprogram

// gcc `pkg-config --cflags gtk+-3.0` -o target/window example/windows.c `pkg-config --libs gtk+-3.0`
#include <gtk/gtk.h>

static void
activate (GtkApplication* app,
          gpointer        user_data)
{
  GtkWidget *window;

  window = gtk_application_window_new (app);
        gtk_window_fullscreen (GTK_WINDOW (window));
  gtk_window_set_title (GTK_WINDOW (window), "Window");
  gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
  gtk_widget_show_all (window);
}

int
main (int    argc,
      char **argv)
{
  GtkApplication *app;
  int status;

  app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
  g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
  status = g_application_run (G_APPLICATION (app), argc, argv);
  g_object_unref (app);

  return status;
}
@zzeroo
Copy link
Author

zzeroo commented Sep 10, 2016

backtrace weston

(gdb) run
Starting program: /usr/bin/weston --tty=1 --log=/var/log/weston.log
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
set_fullscreen (shsurf=0x0, fullscreen=true, output=0x0) at desktop-shell/shell.c:2547
2547            struct weston_desktop_surface *desktop_surface = shsurf->desktop_surface;
(gdb) bt
#0  set_fullscreen (shsurf=0x0, fullscreen=true, output=0x0) at desktop-shell/shell.c:2547
#1  0xb6d07d74 in ffi_call_VFP () from /usr/lib/arm-linux-gnueabihf/libffi.so.6
#2  0xb6d08436 in ffi_call () from /usr/lib/arm-linux-gnueabihf/libffi.so.6
#3  0xb6f99926 in wl_closure_invoke (closure=closure@entry=0x3d750, flags=flags@entry=2, target=<optimized out>, target@entry=0x62050, 
    opcode=opcode@entry=11, data=<optimized out>, data@entry=0x56518) at src/connection.c:935
#4  0xb6f9753a in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x56518) at src/wayland-server.c:371
#5  0xb6f988a0 in wl_event_loop_dispatch (loop=0x2f9e0, timeout=timeout@entry=-1) at src/event-loop.c:423
#6  0xb6f9785c in wl_display_run (display=display@entry=0x2f988) at src/wayland-server.c:1110
#7  0x00013a92 in main (argc=<optimized out>, argv=0xbefffb64) at compositor/main.c:1758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment