Open Sheyne opened 12 years ago
Sorry, I don't follow. Do you mean the application freezes completely if you type #header
or \n\n
?
Basically, it does not freeze, but all keystrokes (except arrow keys) are now ignored. Just ran another test: has nothing to do with #header
and everything to do with the double enter (\n\n
).
I am trying to get OgreKit working on 10.6 so I can compile the latest version and test that.
Bizarre, I've never seen that. Do you have a saved document that reliably reproduces the issue?
Is this on the binary available for download? or have you built it for yourself?
I am running the downloaded binary, I have still not figured out how to make OgreKit Compile on my system. I have Tested a little more and discovered that in any new file pressing enter on a blank line will cause MarkEdit to disallow all keyboard input until a new document is opened.
Interesting note, saving the file will store the changes to file. Opening the file in a separate editor (TextWrangler) show the changes to the file backwards. For example if I blindly type "Hello World" when keyboard input does not work, it saves as "dlroW olleH".
Also trying to open any file ending with a pair of "0x0A"s (\n\n
) crashes MarkEdit. Not a freeze, a full crash with a "MarkEdit quit unexpectedly." window.
I can give you such a document but it is easy to recreate.
Can you paste the crash log here? I think it should be in ~/Library/Logs/DiagnosticReports
.
Process: MarkEdit [27793] Path: /Users/USER/Downloads/MarkEdit.app/Contents/MacOS/MarkEdit Identifier: net.keshiki.MarkEdit Version: 0.1 (0.1) Code Type: X86-64 (Native) Parent Process: launchd [152]
Date/Time: 2011-10-09 01:15:00.351 -0600 OS Version: Mac OS X 10.7.1 (11B26) Report Version: 9
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information: objc[27793]: garbage collection is OFF * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OGRegularExpression type]: unrecognized selector sent to instance 0x10019b4b0' * First throw call stack: ( 0 CoreFoundation 0x00007fff854c6986 exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff86b01d5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff855525ae -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff854b3803 __forwarding + 371 4 CoreFoundation 0x00007fff854b3618 _CF_forwarding_prep_0 + 232 5 MarkEdit 0x000000010000402e -[MarkdownDelegate popParagraphBlocks:] + 109 6 MarkEdit 0x0000000100006535 -[MarkdownDelegate textStorageDidProcessEditing:] + 1540 7 Foundation 0x00007fff8b812716 -[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47 8 CoreFoundation 0x00007fff8546f51a _CFXNotificationPost + 2634 9 Foundation 0x00007fff8b7fe9cb -[NSNotificationCenter postNotificationName:object:userInfo:] + 65 10 AppKit 0x00007fff8ac3d7e9 -[NSTextStorage processEditing] + 135 11 AppKit 0x00007fff8ab64431 -[NSTextStorage edited:range:changeInLength:] + 385 12 Foundation 0x00007fff8b871f57 -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 328 13 AppKit 0x00007fff8ac82a39 -[NSConcreteTextStorage replaceCharactersInRange:withAttributedString:] + 81 14 MarkEdit 0x0000000100001132 -[MarkdownDocument windowControllerDidLoadNib:] + 160 15 AppKit 0x00007fff8acc3a88 -[NSWindowController _windowDidLoad] + 667 16 AppKit 0x00007fff8acbb105 -[NSWindowController window] + 109 17 AppKit 0x00007fff8acbaf51 -[NSWindowController showWindow:] + 40 18 AppKit 0x00007fff8acbaf12 -[NSDocument showWindows] + 107 19 AppKit 0x00007fff8ae87320 __-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_11 + 186 20 AppKit 0x00007fff8ae92c69 -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_8 + 155 21 AppKit 0x00007fff8ae8716e -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_4 + 874 22 AppKit 0x00007fff8ad1b1e5 -[NSDocumentController _openDocumentWithContentsOfURL:usingProcedure:] + 530 23 AppKit 0x00007fff8ae86df5 -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_3 + 252 24 libdispatch.dylib 0x00007fff8ee3d90a _dispatch_call_block_and_release + 18 25 libdispatch.dylib 0x00007fff8ee3f77a _dispatch_main_queue_callback_4CF + 308 26 CoreFoundation 0x00007fff8545bc0c __CFRunLoopRun + 1724 27 CoreFoundation 0x00007fff8545b216 CFRunLoopRunSpecific + 230 28 AppKit 0x00007fff8af52e9c -[NSMenu _internalPerformActionForItemAtIndex:] + 38 29 AppKit 0x00007fff8ade53f1 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 138 30 AppKit 0x00007fff8ac310bf NSSLMMenuEventHandler + 339 31 HIToolbox 0x00007fff860078ec _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1263 32 HIToolbox 0x00007fff86006ef8 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 446 33 HIToolbox 0x00007fff8601dd03 SendEventToEventTarget + 76 34 HIToolbox 0x00007fff86064249 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 398 35 HIToolbox 0x00007fff8614b0f1 SendMenuCommandWithContextAndModifiers + 56 36 HIToolbox 0x00007fff861915e1 SendMenuItemSelectedEvent + 253 37 HIToolbox 0x00007fff8605d32d ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 101 38 HIToolbox 0x00007fff86054a75 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 600 39 HIToolbox 0x00007fff86054034 _HandleMenuSelection2 + 585 40 AppKit 0x00007fff8ab30ce1 _NSHandleCarbonMenuEvent + 250 41 AppKit 0x00007fff8aac66c7 _DPSNextEvent + 1993 42 AppKit 0x00007fff8aac5a95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 43 AppKit 0x00007fff8aac23d6 -[NSApplication run] + 463 44 AppKit 0x00007fff8ad4052a NSApplicationMain + 867 45 MarkEdit 0x000000010000146f main + 33 46 MarkEdit 0x000000010000102c start + 52 )
terminate called throwing an exception abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff89ed1ce2 pthread_kill + 10 1 libsystem_c.dylib 0x00007fff8a8457d2 pthread_kill + 95 2 libsystem_c.dylib 0x00007fff8a836a7a abort + 143 3 libc++abi.dylib 0x00007fff87eb77bc abort_message + 214 4 libc++abi.dylib 0x00007fff87eb4fcf default_terminate() + 28 5 libobjc.A.dylib 0x00007fff86b021b9 _objc_terminate + 94 6 libc++abi.dylib 0x00007fff87eb5001 safe_handler_caller(void (*)()) + 11 7 libc++abi.dylib 0x00007fff87eb505c std::terminate() + 16 8 libc++abi.dylib 0x00007fff87eb6152 cxa_throw + 114 9 libobjc.A.dylib 0x00007fff86b01e7a objc_exception_throw + 327 10 com.apple.CoreFoundation 0x00007fff855505a9 -[NSException raise] + 9 11 com.apple.AppKit 0x00007fff8ac82a6e -[NSConcreteTextStorage replaceCharactersInRange:withAttributedString:] + 134 12 net.keshiki.MarkEdit 0x0000000100001132 -[MarkdownDocument windowControllerDidLoadNib:] + 160 13 com.apple.AppKit 0x00007fff8acc3a88 -[NSWindowController _windowDidLoad] + 667 14 com.apple.AppKit 0x00007fff8acbb105 -[NSWindowController window] + 109 15 com.apple.AppKit 0x00007fff8acbaf51 -[NSWindowController showWindow:] + 40 16 com.apple.AppKit 0x00007fff8acbaf12 -[NSDocument showWindows] + 107 17 com.apple.AppKit 0x00007fff8ae87320 -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_11 + 186 18 com.apple.AppKit 0x00007fff8ae92c69 __-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_8 + 155 19 com.apple.AppKit 0x00007fff8ae8716e -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_4 + 874 20 com.apple.AppKit 0x00007fff8ad1b1e5 -[NSDocumentController _openDocumentWithContentsOfURL:usingProcedure:] + 530 21 com.apple.AppKit 0x00007fff8ae86df5 __-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke_3 + 252 22 libdispatch.dylib 0x00007fff8ee3d90a _dispatch_call_block_and_release + 18 23 libdispatch.dylib 0x00007fff8ee3f77a _dispatch_main_queue_callback_4CF + 308 24 com.apple.CoreFoundation 0x00007fff8545bc0c __CFRunLoopRun + 1724 25 com.apple.CoreFoundation 0x00007fff8545b216 CFRunLoopRunSpecific + 230 26 com.apple.AppKit 0x00007fff8af52e9c -[NSMenu _internalPerformActionForItemAtIndex:] + 38 27 com.apple.AppKit 0x00007fff8ade53f1 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 138 28 com.apple.AppKit 0x00007fff8ac310bf NSSLMMenuEventHandler + 339 29 com.apple.HIToolbox 0x00007fff860078ec _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1263 30 com.apple.HIToolbox 0x00007fff86006ef8 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 446 31 com.apple.HIToolbox 0x00007fff8601dd03 SendEventToEventTarget + 76 32 com.apple.HIToolbox 0x00007fff86064249 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 398 33 com.apple.HIToolbox 0x00007fff8614b0f1 SendMenuCommandWithContextAndModifiers + 56 34 com.apple.HIToolbox 0x00007fff861915e1 SendMenuItemSelectedEvent + 253 35 com.apple.HIToolbox 0x00007fff8605d32d ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 101 36 com.apple.HIToolbox 0x00007fff86054a75 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 600 37 com.apple.HIToolbox 0x00007fff86054034 _HandleMenuSelection2 + 585 38 com.apple.AppKit 0x00007fff8ab30ce1 _NSHandleCarbonMenuEvent + 250 39 com.apple.AppKit 0x00007fff8aac66c7 _DPSNextEvent + 1993 40 com.apple.AppKit 0x00007fff8aac5a95 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 41 com.apple.AppKit 0x00007fff8aac23d6 -[NSApplication run] + 463 42 com.apple.AppKit 0x00007fff8ad4052a NSApplicationMain + 867 43 net.keshiki.MarkEdit 0x000000010000146f main + 33 44 net.keshiki.MarkEdit 0x000000010000102c start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff89ed27e6 kevent + 10 1 libdispatch.dylib 0x00007fff8ee3f60e _dispatch_mgr_invoke + 923 2 libdispatch.dylib 0x00007fff8ee3e19e _dispatch_mgr_thread + 54
Thread 2: 0 libsystem_kernel.dylib 0x00007fff89ed2192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x00007fff8a845594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x00007fff8a846b85 start_wqthread + 13
Thread 3: 0 libsystem_kernel.dylib 0x00007fff89ed2192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x00007fff8a845594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x00007fff8a846b85 start_wqthread + 13
Thread 4: 0 libsystem_kernel.dylib 0x00007fff89ed2192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x00007fff8a845594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x00007fff8a846b85 start_wqthread + 13
Thread 5: 0 libsystem_kernel.dylib 0x00007fff89ed2192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x00007fff8a845594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x00007fff8a846b85 start_wqthread + 13
Thread 6: 0 libsystem_kernel.dylib 0x00007fff89ed2192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x00007fff8a845594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x00007fff8a846b85 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5fbfc4c8 rdx: 0x0000000000000000 rdi: 0x0000000000000907 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfc4f0 rsp: 0x00007fff5fbfc4c8 r8: 0x00007fff74ebdfb8 r9: 0x0000000000000a30 r10: 0x00007fff89ed1d0a r11: 0xffffff80002d8240 r12: 0x00000001001913f0 r13: 0x00007fff86af6101 r14: 0x00007fff74ec0960 r15: 0x00007fff5fbfc640 rip: 0x00007fff89ed1ce2 rfl: 0x0000000000000246 cr2: 0x00000001007ee000 Logical CPU: 0
Binary Images:
0x100000000 - 0x100008fff +net.keshiki.MarkEdit (0.1 - 0.1)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 7 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 160467 thread_create: 1 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=171.4M resident=88.6M(52%) swapped_out_or_unallocated=82.8M(48%) Writable regions: Total=72.6M written=3320K(4%) resident=8480K(11%) swapped_out=412K(1%) unallocated=64.4M(89%)
REGION TYPE VIRTUAL =========== ======= CG backing stores 2572K CG image 16K CG raster data 212K CG shared images 3448K CoreGraphics 16K CoreServices 2108K MALLOC 41.3M MALLOC guard page 32K Memory tag=240 4K Memory tag=242 12K Memory tag=251 68K STACK GUARD 56.0M Stack 11.0M VM_ALLOCATE 16.1M __CI_BITMAP 80K DATA 16.2M IMAGE 1256K LINKEDIT 47.3M TEXT 124.1M __UNICODE 544K mapped file 33.5M shared memory 11.4M =========== ======= TOTAL 367.1M
Great, thanks. Hopefully I can find some time to dig into it in the next few days.
Nothing can be edited if the hash that starts a header is not suffixed by a space before the header name this is only tested in lion.
The same nothing can be edited state can be achieved if two newlines are added in a row. Also tested only lion.