SLADE icon indicating copy to clipboard operation
SLADE copied to clipboard

Trying to do stuff with Things in SRB2 maps causes SLADE to crash

Open vitalkanev opened this issue 5 months ago • 0 comments

SLADE Version

3.2.6

OS

Windows

Editor

Map editor

Steps to Reproduce

  1. Open SLADE, have srb2.pk3 (tested with SRB2 v2.2.13) on the base resource list
  2. Select srb2.pk3 from the base resource list
  3. From the home page, select "Create New Map"
  4. Select "Sonic Robo Blast 2" from the game list - there are no ports available
  5. Create a new map and leave all settings in the next dialogue by default
  6. Draw some lines to create a square where you can place things
  7. Enable Things Mode (T key), then right click everywhere and choose "Create Thing here" - this will create Player 1 Start
  8. Double click the created Thing, and try to modify its properties, like angle in the attached videoclip
  9. Click "OK"
  10. ???
  11. SLADE Crashes

Adding additional archives from SRB2 folder (zones.pk3, patch.pk3 and player.dta) in the New Map dialogue yields the same result

This bug doesn't happen with other games

Crash Information

Version: 3.2.6 (x64)
No current action

Operating System: Windows 10 (build 19045), 64-bit edition
Graphics Vendor: NVIDIA Corporation
Graphics Hardware: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2
OpenGL Version: 4.6.0 NVIDIA 561.09

Stack Trace:
0: (H:\Dev\SLADE\Build\src\MapEditor\UI\PropsPanel\ThingPropsPanel.cpp:824) slade::ThingPropsPanel::applyChanges
1: (H:\Dev\SLADE\Build\src\MapEditor\MapEditor.cpp:477) slade::mapeditor::editObjectProperties
2: (H:\Dev\SLADE\Build\src\MapEditor\Edit\Edit2D.cpp:186) slade::Edit2D::editObjectProperties
3: (H:\Dev\SLADE\Build\src\MapEditor\Edit\Input.cpp:306) slade::mapeditor::Input::mouseDown
4: (H:\Dev\SLADE\Build\src\MapEditor\UI\MapCanvas.cpp:393) slade::MapCanvas::onMouseDown
5: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\appbase.cpp:673) wxAppConsoleBase::CallEventHandler
6: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\event.cpp:1490) wxEvtHandler::ProcessEventIfMatchesId
7: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\event.cpp:1952) wxEvtHandler::SearchDynamicEventTable
8: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\include\wx\event.h:4007) wxEvtHandler::TryBeforeAndHere
9: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\event.cpp:1585) wxEvtHandler::ProcessEvent
10: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\event.cpp:1701) wxEvtHandler::SafelyProcessEvent
11: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\window.cpp:5991) wxWindow::HandleMouseEvent
12: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\window.cpp:3193) wxWindow::MSWHandleMessage
13: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\window.cpp:3906) wxWindow::MSWWindowProc
14: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\window.cpp:2948) wxWndProc
15: [unknown location] CallWindowProcW
16: [unknown location] CallWindowProcW
17: [unknown location] glPushClientAttrib
18: [unknown location] CallWindowProcW
19: [unknown location] DispatchMessageW
20: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\evtloop.cpp:227) wxGUIEventLoop::Dispatch
21: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\evtloopcmn.cpp:288) wxEventLoopManual::DoRun
22: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\evtloopcmn.cpp:87) wxEventLoopBase::Run
23: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\appbase.cpp:381) wxAppConsoleBase::MainLoop
24: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\common\init.cpp:497) wxEntryReal
25: (H:\Dev\vcpkg\buildtrees\wxwidgets\src\v3.2.5-737796f0e2.clean\src\msw\main.cpp:175) wxEntry
26: (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288) __scrt_common_main_seh
27: [unknown location] BaseThreadInitThunk
28: [unknown location] RtlUserThreadStart

Last Log Messages:
Setting up the OpenGL context
Initialising OpenGL...
OpenGL Version: 4.6
Max Texture Size: 32768x32768
Checking extensions...
Vertex Buffer Objects supported
Point Sprites supported
Framebuffer Objects supported
Opening map map01
Removed 0 detached vertices, 0 detached sides, 0 invalid sides and 0 detached sectors

Screenshots

https://github.com/user-attachments/assets/aca690e3-1f0c-4e8f-83cf-3470b04ad1f0

Updated 14:16 UTC+3 with config file: https://gist.github.com/vitalkanev/ab3295cee25d5886fde0f2694e8809ef

vitalkanev avatar Oct 01 '24 11:10 vitalkanev