Repository navigation
fix: DeviceTracker segfaults with bogus null libgtkmm devices - #3498
fcartegnie wants to merge 1 commit into
Conversation
|
Thank you for attempting to improve your contribution description! 🐞 Bug Fixes
|
| @@ -100,6 +100,8 @@ DeviceTracker::DeviceTracker() | |||
| list_devices(devices); | |||
There was a problem hiding this comment.
Could you check why does list_devices() adds empty device pointers to the returned array?
There was a problem hiding this comment.
Since that's a laptop without any extra input device, that could be fingerprint reader as exposed through USB.
There was a problem hiding this comment.
Shouldn't list_devices() be fixed to no'tinclude those empty devices?
Or is it a GTK/gtkmm issue?
There was a problem hiding this comment.
I mean to erase the null devices before returning from list_devices():
synfig/synfig-studio/src/gui/devicetracker.cpp
Lines 67 to 95 in 3d9c023
This way, any outside code doesn't have to check the null-pointer (and dev no need to know/remember s/he must do it).
|
Thank you for attempting to improve your contribution description! 🐞 Bug Fixes
|
|
Thank you for attempting to improve your contribution description! 🐞 Bug Fixes
|
|
Already fixed Inkscape side Still the bug is in the lib |
Thanks to fcartengie for discovering the issue: synfig#3498
|
Thank you for pointing this issue and creating this PR (#3576). |
Fixes the startup crashes with gtkmm3.0 (3.24.9 for me) reporting NULL devices.