ioan-chera / eureka-editor

Eureka is a cross-platform map editor for the DOOM engine games.
http://eureka-editor.sourceforge.net/
64 stars 12 forks source link

Crash when deleting newly created lines #156

Closed sudo459 closed 1 month ago

sudo459 commented 8 months ago

I encountered a crash when deleting lines that were recently created. Starting from a new map, I created a sector using the line drawing mode, created a sector, switched to line mode, then deleted the lines. If you create two different sectors, the editor will only crash after deleting the lines of the most recently created sector. In addition, this crash only happens if you delete all the lines at once. Deleting one line then the rest won't cause a crash (from what I can tell at least). This crash can also happen when deleting the lines of an entire level. If you create a new map and delete the starting lines, the editor will crash. This crash only happens in line mode, not in sector or vertex mode. Console output of the crash is at the bottom of this post.

I'm using version 1.27b from the Arch repository.

-EDIT: Building from source apparently is verison 2.0.0. I am now using that version except the issue is still there. One difference however is that the crash is a seg fault in LineDef::TwoSided() const ().

/usr/include/c++/13.2.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = LineDef; _Alloc = std::allocator<LineDef>; reference = LineDef*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. Aborted (core dumped)

ioan-chera commented 1 month ago

Solved