I was able to reproduce the issue. It is not caused by the mkv itself but the size of the file and maybe the fact that such files are displayed as Hexadecimal
Don't have a 150MB text file right now.
Steps:
1. Open windbg.exe
2. Select Main Menu / File / Open Executable ... 3. Select the sublime_text.exe of Sublime Text 3126 (vanilla install)
4. Press F5 once, to start debugging
5. Open a media file of about 150MB of size
6. Ctrl+A, Del, Ctrl+Z as said
This will cause ST to consume about 2.5GB of RAM all over the time. While undo is in progress RAM usage suddenly jumps to 4GB and CPU drops to 0% with the following lines printed out by windbg.
(1e8c.1e54): C++ EH exception - code e06d7363 (first chance)
(1e8c.1e54): C++ EH exception - code e06d7363 (!!! second chance !!!)
*** ERROR: Module load completed but symbols could not be loaded for sublime_text.exe
KERNELBASE!RaiseException+0x68:
00007ff9`598c9e08 488b8c24c0000000 mov rcx,qword ptr [rsp+0C0h] ss:00000068`8a2fabb0=0000374d45257b98
When pressing F5 again in windbg to continue execution the following lines are printed
0:000> g
WARNING: Continuing a non-continuable exception
(1e8c.1e54): Break instruction exception - code 80000003 (first chance)
sublime_text+0x359390:
00007ff6`d48f9390 cc int 3
0:000> g
(1e8c.1e54): Break instruction exception - code 80000003 (first chance)
sublime_text+0x359391:
00007ff6`d48f9391 cc int 3
0:000> g
(1e8c.1e54): Break instruction exception - code 80000003 (first chance)
sublime_text+0x359392:
00007ff6`d48f9392 cc int 3
0:000> g
(1e8c.1e54): Break instruction exception - code 80000003 (first chance)
sublime_text+0x359393:
00007ff6`d48f9393 cc int 3
0:000> g
(1e8c.1e54): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
sublime_text+0x3594ce:
00007ff6`d48f94ce 4883610800 and qword ptr [rcx+8],0 ds:3725cf0a`d1680008=????????????????
0:000> g
(1e8c.1e54): Access violation - code c0000005 (!!! second chance !!!)
sublime_text+0x3594ce:
00007ff6`d48f94ce 4883610800 and qword ptr [rcx+8],0 ds:3725cf0a`d1680008=????????????????
0:000> g
(1e8c.1e54): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
sublime_text+0x3594ce:
00007ff6`d48f94ce 4883610800 and qword ptr [rcx+8],0 ds:3725cf0a`d1680008=????????????????
0:000> g
(1e8c.1e54): Access violation - code c0000005 (!!! second chance !!!)
sublime_text+0x3594ce:
00007ff6`d48f94ce 4883610800 and qword ptr [rcx+8],0 ds:3725cf0a`d1680008=????????????????
0:000> g
(1e8c.1e54): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
sublime_text+0x3594ce:
00007ff6`d48f94ce 4883610800 and qword ptr [rcx+8],0 ds:3725cf0a`d1680008=????????????????
ST 3126 x64 on Windows 10 x64 1703