I have created a plugin that will load a file from disk containing a list of results I would like to iterate through. I have noticed that when I run the following code, and double click on a result within the file, Sublime Text will crash. However, if I run the command, close sublime as to not trigger anything with the new file, and then open sublime again, everything works as intended.
I am running the lastest Dev build (3084).
class TestResultRegexCommand(sublime_plugin.WindowCommand):
def run(self):
file_path ={file_path}
view = self.window.open_file(file_path)
self.check_loading(view)
def check_loading(self, view):
if (not view.is_loading()):
view.settings().set("result_file_regex", "^([A-Za-z\\\\/<].*):$")
view.settings().set("result_line_regex", "^ +([0-9]+):")
view.set_read_only(True)
else:
sublime.set_timeout(lambda: self.check_loading(view), 20)
Below is the code from the dmp file when viewed through WinDbg:
-
* -
Exception Analysis * -
*
*** ERROR: Module load completed but symbols could not be loaded for sublime_text.exe
FAULTING_IP:
KERNELBASE!RaiseException+39
000007fe`fcb2aaad 4881c4c8000000 add rsp,0C8h
EXCEPTION_RECORD: ffffffffffffffff – (.exr 0xffffffffffffffff)
ExceptionAddress: 000007fefcb2aaad (KERNELBASE!RaiseException+0x0000000000000039)
ExceptionCode: e06d7363 (C++ EH exception)
ExceptionFlags: 00000001
NumberParameters: 4
Parameter[0]: 0000000019930520
Parameter[1]: 00000000002eb080
Parameter[2]: 000000013f691fc0
Parameter[3]: 000000013f170000
unable to find C-Runtime symbols, even with unqualified search
CONTEXT: 0000000000000000 – (.cxr 0x0;r)
rax=00000000002eaf40 rbx=0000000000000000 rcx=00000000002e9e20
rdx=00000000a641cee5 rsi=00000000ffffffff rdi=00000000000000b0
rip=0000000076d3dc1a rsp=00000000002e9bc8 rbp=0000000000000000
r8=00000000002e9d78 r9=00000000002ef810 r10=0000000000000000
r11=0000000000000286 r12=0000000000000000 r13=0000000000000000
r14=00000000002e9e20 r15=0000000076bdb328
iopl=0 nv up ei pl zr na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000246
ntdll!ZwWaitForSingleObject+0xa:
00000000`76d3dc1a c3 ret
DEFAULT_BUCKET_ID: APPLICATION_FAULT
PROCESS_NAME: sublime_text.exe
ERROR_CODE: (NTSTATUS) 0xe06d7363 -
EXCEPTION_CODE: (NTSTATUS) 0xe06d7363 -
EXCEPTION_PARAMETER1: 0000000019930520
EXCEPTION_PARAMETER2: 00000000002eb080
EXCEPTION_PARAMETER3: 000000013f691fc0
EXCEPTION_PARAMETER4: 13f170000
APP: sublime_text.exe
ANALYSIS_VERSION: 6.3.9600.17237 (debuggers(dbg).140716-0327) amd64fre
FAULTING_THREAD: 0000000000000e30
PRIMARY_PROBLEM_CLASS: APPLICATION_FAULT
BUGCHECK_STR: APPLICATION_FAULT_APPLICATION_FAULT
LAST_CONTROL_TRANSFER: from 000000013f2f2784 to 000007fefcb2aaad
STACK_TEXT:
00000000002eaf20 000000013f2f2784 : 000000013f691fc0 00000000002eb060 0000000000000001 000000013f170100 : KERNELBASE!RaiseException+0x39
00000000002eaff0 000000013f2e97b3 : 000000013f170000 0000000000000000 0000000000000000 000000013f2f1b28 : sublime_text+0x182784
00000000002eb060 000000013f49f07d : 0000000000000000 00000000002ebf50 0000000000000007 0000000000000110 : sublime_text+0x1797b3
00000000002eb0b0 000000013f49b72e : 0000000002f78080 00000000002ec0a8 00000000032979d0 0000000000000000 : sublime_text+0x32f07d
00000000002ebe50 000000013f4bb8fc : 000000000315a250 0000000002f78080 0000000000000001 00000000002ec300 : sublime_text+0x32b72e
00000000002ec0a0 000000013f4a6078 : 00000000002ec3d0 00000000002ec290 00000000002ec360 00000000032979d0 : sublime_text+0x34b8fc
00000000002ec190 000000013f470c6c : fffffffffffffffe 000000013f555174 000000013f555176 409e000000000000 : sublime_text+0x336078
00000000002ec440 000000013f44d8ff : 0000000007dd2240 00000000002ec560 0000000000000000 000000013f5d4588 : sublime_text+0x300c6c
00000000002ec490 000000013f48f3c3 : 0000000000000000 00000000002ecde0 000000013f5d4588 0000000000565e80 : sublime_text+0x2dd8ff
00000000002ec520 000000013f45fcaf : 0000000000000001 00000000024fa778 00000000024fa790 0000000002d5ba00 : sublime_text+0x31f3c3
00000000002eca30 000000013f18fff5 : 00000000239fa66b 00000000002ecb60 0000000002d5ba70 ffffffffff880000 : sublime_text+0x2efcaf
00000000002eca60 0000000076c09bd1 : 00000000002eefc8 0000000000000000 0000000000000000 0000000000000004 : sublime_text+0x1fff5
00000000002eef10 0000000076c098da : 00000000002ef0a0 000000013f18fa28 0000000000000000 00000000008627b0 : user32!UserCallWinProcCheckWow+0x1ad
00000000002eefd0 000000013f18f6db : 000000013f6e7270 000000013f6e7270 000000013f18fa28 0000000000000000 : user32!DispatchMessageWorker+0x3b5
00000000002ef050 000000013f18d2bc : 00000000005c9940 0000000000000003 00000000005cdc10 000000013f53f190 : sublime_text+0x1f6db
00000000002ef130 000000013f176c7e : 00000000005c9940 00000000005cdc10 0000000000000003 00000000005cdc10 : sublime_text+0x1d2bc
00000000002ef1f0 000000013f2f1798 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : sublime_text+0x6c7e
00000000002ef7a0 0000000076ae59cd : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : sublime_text+0x181798
00000000002ef7e0 0000000076d1b891 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0xd
00000000002ef810 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x1d
STACK_COMMAND: ~0s; .ecxr ; kb
FOLLOWUP_IP:
sublime_text+182784
00000001`3f2f2784 488b5c2478 mov rbx,qword ptr [rsp+78h]
SYMBOL_STACK_INDEX: 1
SYMBOL_NAME: sublime_text+182784
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: sublime_text
IMAGE_NAME: sublime_text.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 5524ea13
FAILURE_BUCKET_ID: APPLICATION_FAULT_e06d7363_sublime_text.exe!Unknown
BUCKET_ID: X64_APPLICATION_FAULT_APPLICATION_FAULT_sublime_text+182784
ANALYSIS_SOURCE: UM
FAILURE_ID_HASH_STRING: um:application_fault_e06d7363_sublime_text.exe!unknown
FAILURE_ID_HASH: {4e655b35-4294-69fd-6f37-bbeb0aa4e652}
Followup: MachineOwner