Crash copying selection on Windows (just calling EmptyClipboard() ?)
sentry-io opened this issue · comments
sentry-io commented
Quite strange bug crashing calling EmptyClipboard() Win32 API function. Probably the heap was invalid from some previous operations (?).
Sentry Issue: ASEPRITE-1YX
STATUS_HEAP_CORRUPTION / 0x7ffbc198ef89: Fatal Error: STATUS_HEAP_CORRUPTION / 0x7ffbc198ef89
Thread 20136 Crashed:
0 ntdll.dll 0x7ffbc198ef89 RtlReportFatalFailure
1 ntdll.dll 0x7ffbc198ef52 RtlReportCriticalFailure
2 ntdll.dll 0x7ffbc1997cd1 RtlpHeapHandleError
3 ntdll.dll 0x7ffbc1997fb9 RtlpHpHeapHandleError
4 ntdll.dll 0x7ffbc199dc40 RtlpLogHeapFailure
5 ntdll.dll 0x7ffbc18b5bef RtlpFreeHeapInternal
6 ntdll.dll 0x7ffbc18b47b0 RtlFreeHeap
7 KERNELBASE.dll 0x7ffbbf2eede3 GlobalFree
8 USER32.dll 0x7ffbbfbfb963 DeleteClientClipboardHandle
9 USER32.dll 0x7ffbbfbfb901 ClientEmptyClipboard
10 USER32.dll 0x7ffbbfc02009 _fnINDESTROYCLIPBRD
11 ntdll.dll 0x7ffbc1930a43 KiUserCallbackDispatch
12 win32u.dll 0x7ffbbf562da3 NtUserEmptyClipboard
13 Aseprite.exe 0x7ff6bafddd79 clip::lock::impl::clear (clip_win.cpp:238)
14 Aseprite.exe 0x7ff6badb69cf app::Clipboard::setNativeBitmap (clipboard_native.cpp:102)
15 Aseprite.exe 0x7ff6bab76e8f app::Clipboard::setData (clipboard.cpp:246)
16 Aseprite.exe 0x7ff6bab744dd app::Clipboard::copyFromDocument (clipboard.cpp:297)
17 Aseprite.exe 0x7ff6bab7429f app::Clipboard::copy (clipboard.cpp:392)
18 Aseprite.exe 0x7ff6badaf8cf app::DocView::onCopy (doc_view.cpp:586)
19 Aseprite.exe 0x7ff6babc6fbe app::InputChain::copy (input_chain.cpp:85)
20 Aseprite.exe 0x7ff6baacd5cc app::Context::executeCommand (context.cpp:188)
21 Aseprite.exe 0x7ff6baacd6c2 app::Context::executeCommandFromMenuOrShortcut (context.cpp:157)
22 Aseprite.exe 0x7ff6babb8fb1 app::CustomizedGuiManager::processKey (gui.cpp:779)
23 Aseprite.exe 0x7ff6babb85ef app::CustomizedGuiManager::onProcessMessage (gui.cpp:586)
24 Aseprite.exe 0x7ff6baf8ae28 ui::Manager::sendMessageToWidget (manager.cpp:2023)
25 Aseprite.exe 0x7ff6baf8a5a5 ui::Manager::pumpQueue (manager.cpp:1897)
26 Aseprite.exe 0x7ff6baf873bd ui::Manager::dispatchMessages (manager.cpp:864)
27 Aseprite.exe 0x7ff6baf8acc9 ui::Manager::run (manager.cpp:292)
28 Aseprite.exe 0x7ff6baa4ce79 app::App::run (app.cpp:562)
29 Aseprite.exe 0x7ff6baa44b8c app_main (main.cpp:152)
30 Aseprite.exe 0x7ff6bb21a285 wWinMain (main.cpp:40)
31 Aseprite.exe 0x7ff6bb18e831 [inlined] invoke_main (exe_common.inl:118)
32 Aseprite.exe 0x7ff6bb18e831 __scrt_common_main_seh (exe_common.inl:288)
33 KERNEL32.DLL 0x7ffbbf9a7033 BaseThreadInitThunk
34 ntdll.dll 0x7ffbc18e2650 RtlUserThreadStart