Hyperspeedcube icon indicating copy to clipboard operation
Hyperspeedcube copied to clipboard

Disabled vendored dbus

Open mniip opened this issue 1 year ago • 4 comments

This PR disables the dbus-vendored feature of the opener dependency.

On linux, opener depends on dbus which has a feature called vendored which causes a statically linked copy of libdbus to be included in the executable, as opposed to dynamically linking against a distro-provided libdbus.so. If another C library ends up depending on libdbus, it will link dynamically against libdbus.so, and the two copies of libdbus end up catastrophically interfering.

In practice this means HSC debug build always segfaults for me on startup.

mniip avatar Sep 11 '24 01:09 mniip

Should this be merged upstream to opener?

Also, does it segfault with opener = "0.7.2"? It looks like there was a change in v0.7.1 that may have fixed things.

HactarCE avatar Sep 22 '24 02:09 HactarCE

Actually simply updating Cargo.lock fixes the issue for me somehow. I'm not sure how yet.

mniip avatar Sep 25 '24 11:09 mniip

I wonder if that bumped opener to v0.7.2

HactarCE avatar Sep 25 '24 13:09 HactarCE

Ah so it did. It works with =0.7.1 but not =0.7.0

mniip avatar Sep 25 '24 18:09 mniip

Closing since I just updated opener to v0.7.2

HactarCE avatar Oct 18 '24 03:10 HactarCE