Panda crashes when we start with a dot . either in Header or Table

Testing version: 2595

What were you doing: start with a dot (.) in either in header or table it will crash.
What feature did you use: Headings, Tables

What happened: Crashed Multiple times

What did you expect to happen: Should work normally

Here is sample crash report

Translated Report (Full Report Below)

Process: Panda [26244]
Path: /Applications/Panda.app/Contents/MacOS/Panda
Identifier: net.shinyfrog.panda
Version: 1.0 (2595)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-01-07 01:33:22.1077 -0500
OS Version: macOS 12.1 (21C52)
Report Version: 12
Anonymous UUID: 09E0204E-547D-60AF-A18F-5F6115C79119

Sleep/Wake UUID: 06043928-AE4C-4CF0-B6F3-C81379154ECA

Time Awake Since Boot: 760000 seconds
Time Since Wake: 20698 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
Assertion failed: (pos_ > minPos_), function unsafePeekPreviousCharacter, file /Users/whamoo/git/Panda/Externals/MDTextEditor/PolarMark/IceMark/src/Go.h, line 53.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x19ccf59b8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x19cd28eb0 pthread_kill + 288
2 libsystem_c.dylib 0x19cc66314 abort + 164
3 libsystem_c.dylib 0x19cc6572c __assert_rtn + 300
4 PolarMark 0x105137d3c Ice::Go::unsafePeekPreviousCharacter() (.cold.1) + 40
5 PolarMark 0x1050b146c Ice::Go::unsafePeekPreviousCharacter() + 44
6 PolarMark 0x1050b1214 Ice::Inline::Rules::Url::matchPreviousUnicodeDomain(Ice::GoLines&) + 72
7 PolarMark 0x1050afca8 Ice::Inline::Rules::Url::matchWithValidTopLevelDomain(Ice::Inline::InlineParser&, Ice::Node*, Ice::GoLines&) + 380
8 PolarMark 0x10512707c Ice::Inline::InlineParser::parseNode(Ice::Node*, Ice::Inline::InlineRuleMap&) + 404
9 PolarMark 0x105126ec8 Ice::Inline::InlineParser::parseBlock(Ice::Node*) + 80
10 PolarMark 0x1050e1314 Ice::Parser::parse(std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>, std::__1::allocator<char16_t> > const&, Ice::RuleConfig&) + 176
11 PolarMark 0x1050bbe74 Ice::Tree::parse(std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>, std::__1::allocator<char16_t> >, Ice::Node*) + 40
12 PolarMark 0x1050bc0b0 Ice::Tree::replace(Ice::Range, std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>, std::__1::allocator<char16_t> > const&) + 364
13 PolarMark 0x1050ee8ec -[PMKAST replaceRange:withMarkdown:] + 276
14 MDTextKit 0x104fc6c38 -[MDTextStorage parseChangesUsingBlock:] + 468
15 MDTextKit 0x104fb6440 -[MDEditorController performStylingInTextView:withAutomaticTextChanges:] + 260
16 MDTextKitUI 0x104ab41ac 0x104a80000 + 213420
17 MDTextKitUI 0x104ab4b44 0x104a80000 + 215876
18 CoreFoundation 0x19cde9200 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 28
19 CoreFoundation 0x19ce8cb84 ___CFXRegistrationPost_block_invoke + 52
20 CoreFoundation 0x19ce8caf0 _CFXRegistrationPost + 456
21 CoreFoundation 0x19cdb7eb0 _CFXNotificationPost + 720
22 Foundation 0x19dc6de3c -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
23 AppKit 0x19fb5aef0 -[NSTextView(NSSharing) didChangeText] + 452
24 AppKit 0x19fb583a0 -[NSTextView _insertText:replacementRange:] + 2832
25 AppKit 0x19fb5733c -[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 188
26 AppKit 0x1a03216b0 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2.396 + 120
27 AppKit 0x19fb57274 -[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 164
28 AppKit 0x19fb570d0 -[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 380
29 AppKit 0x1a032106c __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke.341 + 2928
30 AppKit 0x19fb56c70 __55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 108
31 AppKit 0x19fb56bb4 -[NSTextInputContext tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 148
32 AppKit 0x19fb56060 -[NSTextInputContext handleTSMEvent:completionHandler:] + 2004
33 AppKit 0x19fb55810 _NSTSMEventHandler + 340
34 HIToolbox 0x1a595d418 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1116
35 HIToolbox 0x1a595c884 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
36 HIToolbox 0x1a595c714 SendEventToEventTargetWithOptions + 44
37 HIToolbox 0x1a59bad54 SendTSMEvent_WithCompletionHandler + 432
38 HIToolbox 0x1a59bb298 __SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 440
39 HIToolbox 0x1a59bb0b4 __SendFilterTextEvent_WithCompletionHandler_block_invoke + 224
40 HIToolbox 0x1a59badac SendTSMEvent_WithCompletionHandler + 520
41 HIToolbox 0x1a59bab5c SendFilterTextEvent_WithCompletionHandler + 256
42 HIToolbox 0x1a59ba788 SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 292
43 HIToolbox 0x1a59ba524 __utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 320
44 HIToolbox 0x1a59ba2a8 __utDeliverTSMEvent_WithCompletionHandler_block_invoke + 284
45 HIToolbox 0x1a59ba10c TSMKeyEvent_WithCompletionHandler + 600
46 HIToolbox 0x1a59b9e94 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 320
47 HIToolbox 0x1a59b9ca4 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 352
48 HIToolbox 0x1a59b99a0 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 352
49 HIToolbox 0x1a59b969c __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 344
50 HIToolbox 0x1a59a7b84 TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 3372
51 AppKit 0x1a0325a0c __84-[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:]_block_invoke_3.1020 + 148
52 AppKit 0x1a03256bc __204-[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:]_block_invoke.971 + 192
53 AppKit 0x19fb542e0 -[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:] + 344
54 AppKit 0x19fb53be0 -[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:] + 1528
55 AppKit 0x19fb535a8 -[NSTextInputContext _handleEvent:allowingSyntheticEvent:] + 136
56 AppKit 0x19fb533c8 -[NSView interpretKeyEvents:] + 196
57 AppKit 0x19fb531d8 -[NSTextView keyDown:] + 712
58 MDTextKitUI 0x104aa71c8 0x104a80000 + 160200
59 MDTextKitUI 0x104aa7244 0x104a80000 + 160324
60 AppKit 0x19fabaa78 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 5920
61 AppKit 0x19fab90ec -[NSWindow(NSEventRouting) sendEvent:] + 348
62 AppKit 0x19fab8558 -[NSApplication(NSEvent) sendEvent:] + 4064
63 AppKit 0x19fd7059c -[NSApplication _handleEvent:] + 76
64 AppKit 0x19f9395cc -[NSApplication run] + 636
65 AppKit 0x19f90ac78 NSApplicationMain + 1064
66 Panda 0x10480fedc 0x104808000 + 32476
67 dyld 0x104c650f4 start + 520

Hi there,

May I just ask, where do you have Panda located?

We’ve received previous reports that when users had unzipped Panda in the downloads folder is caused crashes.

If you move it to Applications it should be working again, headers and other things shouldn’t crash the app.

Let me know if this helps!

Hi, just saw your response. My downloads folder is empty i never had it in there. Here is the recording.
Panda Crashes

Hi there,

I consulted the development team regarding the above.

This issue might have already been resolved in the current internal beta.

The next public update may solve it. So when it is out, could you please give it a go and let us know? :slight_smile:

Sure, will do. Thanks for the update