System : Debian GNU/Linux linux-3.19.1
Hardware : AMD X2 240 with 4GB DDR3
Hi,
I experienced crashes while opening a drawing with the last git commit.
When I start librecad from a terminal, I get the following:
[jean-luc@tangerine] % librecad
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
QLayout: Attempting to add QLayout "" to QG_LayerWidget "Layer", which already has a layout
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
[1] 22114 abort librecad
I've done a bisect on the repository and got the following for the first "bad" commit:
[jean-luc@tangerine] % git bisect good /usr/local/src/git/librecad
e5717210913cf8fac1918ca3f3f10ea3e3b9e8fd is the first bad commit
commit e5717210913cf8fac1918ca3f3f10ea3e3b9e8fd
Author: Dongxu Li dli@tamaggo.com
Date: Mon Mar 16 16:34:18 2015 -0400
more compiler warning
:040000 040000 b99c3539019fc5836dac46955c4a28cd24dfaa35 58c0a33fc35d4a079b43d4a0108625c1c4436787 M librecad
Please find attached the drawing that triggers the crash.
This drawing is from a foreign system/software.
Best Regards
Jean-Luc
Thanks for your detailed report, and it saves lots of time in fixing.
Fixed by commit: https://github.com/LibreCAD/LibreCAD/commit/77e0dbeac95fbeb5d92b3b845256beff0564407b