Crash at Replace All (on click [All] button)
Bike 1.3.1 (64)
Download from App Store (Unlicensed)
MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)
1.4 GHz quad core Intel Core i5
8 GB
macOS Monterey 12.5.1
Crash at Replace All (on click [All] button)
Bike 1.3.1 (64)
Download from App Store (Unlicensed)
MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)
1.4 GHz quad core Intel Core i5
8 GB
macOS Monterey 12.5.1
I’m not able to reproduce this. Does it crash for you every time? For example what happens if you create a new document with the text “Hello World” and you replace all o
> e
. Does that crash? If not then can you find a short example document/replace that does crash? Thanks.
I’ve also tried here with various permutations of CJK, emoji and roman characters.
(As @dddo is using kanji and kana, I wondered if this was a problem of varying byte lengths, but it doesn’t seem to be)
Perhaps worth checking with a more recent build ?
[“Hello World” and replace all o > e] is OK, I’m sorry without crash example.
create a new document with the text “**9/9**” and replace all "**" > "".
=> crash
(without Regular Expression and other option, normal mode)
I found it on .opml output from Zavala with Bold text and try to remove all
"**"
= Bold mark.
Thanks.
(Sorry I post text with asterisks in code style, I can’t find a way to post plain text with markdown symbols as-is.)
I did notice that Zavala produces slightly non-standard OPML (unencoded raw linefeeds inside row text)
(The developer is aware and plans to fix, but I wonder if that might be a contributing factor)
Scratch that – not a Zavala OPML issue.
I can reproduce a crash on trying to replace all **
sequences with an empty string in a document which consists only of the short line:
**9/9**
Process: Bike [51089]
Path: /Applications/Bike.app/Contents/MacOS/Bike
Identifier: com.hogbaysoftware.Bike
Version: 1.4 (70)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Bike [51089]
User ID: 501
Date/Time: 2022-09-10 14:47:12.910 +0100
OS Version: macOS 11.6.8 (20G730)
Report Version: 12
Anonymous UUID: E45179DE-1B85-C265-98DA-011B593F8AD9
Sleep/Wake UUID: 9E32D734-1318-4D78-A305-09CAF15F8061
Time Awake Since Boot: 130000 seconds
Time Since Wake: 19000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [51089]
Application Specific Information:
Performing @selector(replaceReplaceAllDidChange:) from sender NSSegmentedControl 0x7fa618e431c0
Swift/StringCharacterView.swift:60: Fatal error: String index is out of bounds
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libswiftCore.dylib 0x00007fff2c9f5f52 closure #1 in closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 482
1 libswiftCore.dylib 0x00007fff2c9f5b69 closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 105
2 libswiftCore.dylib 0x00007fff2c9f5909 closure #1 in _assertionFailure(_:_:file:line:flags:) + 121
3 libswiftCore.dylib 0x00007fff2c9f55bc _assertionFailure(_:_:file:line:flags:) + 428
4 libswiftCore.dylib 0x00007fff2ca04cec String.index(after:) + 284
5 com.hogbaysoftware.Bike 0x00000001030dd6df 0x103030000 + 710367
6 com.hogbaysoftware.Bike 0x0000000103149cf4 0x103030000 + 1154292
7 com.hogbaysoftware.Bike 0x00000001031201ed 0x103030000 + 983533
8 com.hogbaysoftware.Bike 0x000000010313ee7a 0x103030000 + 1109626
9 com.hogbaysoftware.Bike 0x00000001031f33f5 0x103030000 + 1848309
10 com.hogbaysoftware.Bike 0x0000000103063e06 0x103030000 + 212486
11 com.hogbaysoftware.Bike 0x000000010303d983 0x103030000 + 55683
12 com.apple.AppKit 0x00007fff23133c0b -[NSApplication(NSResponder) sendAction:to:from:] + 288
13 com.apple.AppKit 0x00007fff23133aaf -[NSControl sendAction:to:] + 86
14 com.apple.AppKit 0x00007fff231339e1 __26-[NSCell _sendActionFrom:]_block_invoke + 131
15 com.apple.AppKit 0x00007fff231338e8 -[NSCell _sendActionFrom:] + 171
16 com.apple.AppKit 0x00007fff2323c9de -[NSSegmentedCell _sendActionFrom:] + 161
17 com.apple.AppKit 0x00007fff23130917 NSControlTrackMouse + 1820
18 com.apple.AppKit 0x00007fff231301d3 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
19 com.apple.AppKit 0x00007fff2323c0eb -[NSSegmentedCell trackMouse:inRect:ofView:untilMouseUp:] + 748
20 com.apple.AppKit 0x00007fff2312f3c2 -[NSControl mouseDown:] + 722
21 com.apple.AppKit 0x00007fff2312d7ae -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4961
22 com.apple.AppKit 0x00007fff2309cfc8 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
23 com.apple.AppKit 0x00007fff2309c386 -[NSWindow(NSEventRouting) sendEvent:] + 347
24 com.hogbaysoftware.Bike 0x0000000103051ce4 0x103030000 + 138468
25 com.hogbaysoftware.Bike 0x0000000103051d2f 0x103030000 + 138543
26 com.apple.AppKit 0x00007fff2309a794 -[NSApplication(NSEvent) sendEvent:] + 352
27 com.hogbaysoftware.Bike 0x00000001030621f1 0x103030000 + 205297
28 com.apple.AppKit 0x00007fff23373531 -[NSApplication _handleEvent:] + 65
29 com.apple.AppKit 0x00007fff22f0362e -[NSApplication run] + 623
30 com.apple.AppKit 0x00007fff22ed780c NSApplicationMain + 816
31 com.hogbaysoftware.Bike 0x00000001030326cc 0x103030000 + 9932
32 libdyld.dylib 0x00007fff2062ef3d start + 1
Thread 1:: JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x00007fff205e0cce __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff20613e49 _pthread_cond_wait + 1298
2 libc++.1.dylib 0x00007fff2057cd72 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
3 com.apple.JavaScriptCore 0x00007fff37705894 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 84
4 com.apple.JavaScriptCore 0x00007fff3770a35b bmalloc::Scavenger::threadRunLoop() + 331
5 com.apple.JavaScriptCore 0x00007fff37709ee9 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 9
6 com.apple.JavaScriptCore 0x00007fff3770ca77 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 39
7 libsystem_pthread.dylib 0x00007fff206138fc _pthread_start + 224
8 libsystem_pthread.dylib 0x00007fff2060f443 thread_start + 15
etc