mupen64plus / mupen64plus-ui-python

A frontend for Mupen64Plus
http://m64py.sourceforge.net/
GNU General Public License v3.0
241 stars 66 forks source link

(Arch Linux) arguments to dbus_connection_unref() were incorrect #95

Open cookiengineer opened 7 years ago

cookiengineer commented 7 years ago

I seem to have the same SDL2 / D-Bus related error when using m64py. I wanted to open a separate issue, because everything is not dependent on upstream libraries and was built from source (AUR).

Relevant AUR packages are python-pysdl2, m64py with modifications (see this PKGBUILD file)

$ m64py;

(mupen64plus acii logo)

M64Py - A frontend for Mupen64Plus version 0.2.4

process 19738: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2822.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

I also cannot find anything related to dbus_current_generation in the /usr/include/dbus-1.0/dbus/*.h files; if that helps.

The signature of dbus_connection_unref() is expected to be this one:

cd /usr/include/dbus-1.0/dbus;
grep -R "dbus_connection_unref" ./;

./dbus-connection.h:void               dbus_connection_unref                        (DBusConnection             *connection);

Relevant library versions: Built from stable versions today, a couple minutes ago.

Relevant source code file of D-Bus:

https://cgit.freedesktop.org/dbus/dbus/tree/dbus/dbus-connection.c?id=449d6b313d2023360cf0af063cf23232901dd00b#n2822

What are the necessary steps to confirm that this bug is related to #91 ?

cookiengineer commented 7 years ago

I also tried searching everything in /usr/lib/python3.6/site-packages/ regarding dbus, connection and unref; but I've found not a single statement that seems to be anyhow related to the issue :-/

How can I do a stack trace with python in that scenario (I have no idea of python)?

jwhendy commented 7 years ago

I'm getting the same. Just to reproduce what I'm seeing:

$ m64py
M64Py - A frontend for Mupen64Plus version 0.2.4

Frontend: INFO: ScreenSaver not available: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
process 1676: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2822.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

I happen to be migrating my arch install from one drive to another (same computer) and must be on an old install on the other drive as this was new to me. I checked and package version 0.2.3-5 works (also, only sdl2 installed there, not python-pysdl2). I'm happy to dig/test if you need another assistant.

dbermond commented 7 years ago

Also having this issue are on Arch Linux x86_64. It looks like it's the same as #91.

akien-mga commented 7 years ago

What are the necessary steps to confirm that this bug is related to #91 ?

Well looking at the error log this bug is exactly the same as #91. Why do you think it would have a different cause? But at least we know it can be reproduced on many distros with different stacks.

vinipsmaker commented 7 years ago

It happens the same to me:

vinipsmaker ~ $ m64py 
 __  __                         __   _  _   ____  _            
|  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___  
| |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __| 
| |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \ 
|_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/ 
             |_|                                               

M64Py - A frontend for Mupen64Plus version 0.2.4

Frontend: INFO: ScreenSaver not available: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
process 1347: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2822.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
zsh: abort (core dumped)  m64py
ibrokemypie commented 7 years ago
$ m64py

(python:2884): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(python:2884): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
 __  __                         __   _  _   ____  _            
|  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___  
| |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __| 
| |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \ 
|_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/ 
             |_|                                               

M64Py - A frontend for Mupen64Plus version 0.2.4

Frontend: INFO: ScreenSaver not available: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
process 2884: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2822.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
zsh: abort      m64py
Videonauth commented 6 years ago

Happens to me too on Ubuntu 17.10 with vanilla-gnome-desktop on X and is tied to Steam process.

joemaro commented 6 years ago

same error here:

19:03 ~ $  m64py 
qt5ct: using qt5ct plugin
 __  __                         __   _  _   ____  _            
|  \/  |_   _ _ __   ___ _ __  / /_ | || | |  _ \| |_   _ ___  
| |\/| | | | | '_ \ / _ \ '_ \| '_ \| || |_| |_) | | | | / __| 
| |  | | |_| | |_) |  __/ | | | (_) |__   _|  __/| | |_| \__ \ 
|_|  |_|\__,_| .__/ \___|_| |_|\___/   |_| |_|   |_|\__,_|___/ 
             |_|                                               

M64Py - A frontend for Mupen64Plus version 0.2.4

Invalid Context= "Apps" line for icon theme:  "/usr/share/icons/Arc/apps/symbolic/"
Invalid Context= "Mimetypes" line for icon theme:  "/usr/share/icons/Arc/mimetypes/symbolic/"
Invalid Context= "Mimetypes" line for icon theme:  "/usr/share/icons/Faba/symbolic/mimetypes/"
Icon theme "elementary" not found.
Icon theme "elementary" not found.
Frontend: INFO: ScreenSaver not available: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service files
Frontend: INFO: No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
dbus[21725]: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2822.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
fish: “m64py” terminated by signal SIGABRT (Abort)
gen2brain commented 4 years ago

Addressed in https://github.com/mupen64plus/mupen64plus-ui-python/commit/948c4d5a7b7440404370a36017674f09af642d6d

TopHarp commented 3 years ago

i find a RE said : restart the messagebus service;

/etc/init.d/messagebus start

Starting system message bus: [ OK ]