thezbyg / gpick

Advanced color picker written in C++ using GTK+ toolkit
BSD 3-Clause "New" or "Revised" License
376 stars 33 forks source link

Gpick crashes when exporting #199

Open Ytrog opened 2 years ago

Ytrog commented 2 years ago

Whenever I export the palette Gpick crashes.

I caught the following when I launched it from the commandline:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
zsh: IOT instruction (core dumped)  gpick 

I tried with both css and txt formats.

Version: 0.2.6 OS/Distro: Manjaro

Ytrog commented 2 years ago

Not very useful, however you may see something I don't:

(No debugging symbols found in gpick)
(gdb) run
Starting program: /usr/bin/gpick 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff62e8640 (LWP 76078)]
[New Thread 0x7ffff5ae7640 (LWP 76079)]
[New Thread 0x7ffff52e6640 (LWP 76080)]
[New Thread 0x7fffe605d640 (LWP 76081)]
[Thread 0x7fffe605d640 (LWP 76081) exited]
[New Thread 0x7fffe605d640 (LWP 76082)]
[New Thread 0x7fffe575f640 (LWP 76083)]
[Thread 0x7fffe605d640 (LWP 76082) exited]
[Thread 0x7fffe575f640 (LWP 76083) exited]
[New Thread 0x7fffe575f640 (LWP 76084)]
[New Thread 0x7fffe605d640 (LWP 76085)]
[Thread 0x7fffe575f640 (LWP 76084) exited]
[Thread 0x7fffe605d640 (LWP 76085) exited]
[New Thread 0x7fffe605d640 (LWP 76086)]
[New Thread 0x7fffe575f640 (LWP 76087)]
[Thread 0x7fffe605d640 (LWP 76086) exited]
[Thread 0x7fffe575f640 (LWP 76087) exited]
[New Thread 0x7fffe575f640 (LWP 76091)]
[New Thread 0x7fffe605d640 (LWP 76093)]
[New Thread 0x7fffdfd5a640 (LWP 76094)]
[New Thread 0x7fffdf559640 (LWP 76095)]
[Thread 0x7fffdfd5a640 (LWP 76094) exited]
[Thread 0x7fffdf559640 (LWP 76095) exited]
[New Thread 0x7fffdf559640 (LWP 76096)]
[New Thread 0x7fffdfd5a640 (LWP 76097)]
[Thread 0x7fffdf559640 (LWP 76096) exited]
[Thread 0x7fffdfd5a640 (LWP 76097) exited]
[New Thread 0x7fffdfd5a640 (LWP 76098)]
[Thread 0x7fffdfd5a640 (LWP 76098) exited]
[Thread 0x7ffff5ae7640 (LWP 76079) exited]
[New Thread 0x7ffff5ae7640 (LWP 76099)]
[New Thread 0x7fffdfd5a640 (LWP 76100)]
[New Thread 0x7fffdf559640 (LWP 76101)]
[New Thread 0x7fffdec54640 (LWP 76102)]
[Thread 0x7fffdf559640 (LWP 76101) exited]
[Thread 0x7fffdec54640 (LWP 76102) exited]
[New Thread 0x7fffdec54640 (LWP 76103)]
[New Thread 0x7fffdf559640 (LWP 76104)]
[Thread 0x7fffdec54640 (LWP 76103) exited]
[Thread 0x7fffdf559640 (LWP 76104) exited]
[Thread 0x7fffe605d640 (LWP 76093) exited]
[Thread 0x7ffff5ae7640 (LWP 76099) exited]
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid

Thread 1 "gpick" received signal SIGABRT, Aborted.
0x00007ffff6feb34c in __pthread_kill_implementation () from /usr/lib/libc.so.6
(gdb) step
Single stepping until exit from function __pthread_kill_implementation,
which has no line number information.
Couldn't get registers: No such process.
Couldn't get registers: No such process.
(gdb) [Thread 0x7fffdfd5a640 (LWP 76100) exited]
[Thread 0x7fffe575f640 (LWP 76091) exited]
[Thread 0x7ffff52e6640 (LWP 76080) exited]
[Thread 0x7ffff62e8640 (LWP 76078) exited]

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.