Hi,
I've been working on updating this plugin 
https://github.com/Bouni/kicad-jlcpcb-tools to work with v7 and also to get the 
JLC parts from a different place (see 
https://github.com/DanielO/kicad-jlcpcb-tools/tree/csv-creation) however I have 
noticed it has a tendency to crash while downloading the file.

Unfortunately I am not really sure what triggers it. It happens while the 
download process is running (which is a streaming http request -> LZMA decode 
-> CSV parse -> sqlite DB write) but not at the start or the end...

I haven't tried building KiCAD locally but probably could if patches need 
testing.

Thanks.

Below is the crash reporter output:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00007cb4771e38f8
Exception Codes:       0x0000000000000001, 0x00007cb4771e38f8

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [56439]

VM Region Info: 0x7cb4771e38f8 is not in any region.  Bytes after previous 
region: 13969199565049  Bytes before following region: 3065915754248
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX 
SHRMOD  REGION DETAIL
      Stack                    700000f09000-700001f0b000 [ 16.0M] rw-/rwx 
SM=PRV  thread 19
--->  GAP OF 0xf7e4bff5000 BYTES
      MALLOC_LARGE_REUSABLE    7f7e4df00000-7f7e4ebae000 [ 12.7M] rw-/rwx 
SM=PRV  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                         0x7ff819667e1d objc_msgSend + 29
1   AppKit                                  0x7ff81cd87484 
-[NSTextView(NSTextCheckingClient) 
annotatedSubstringForProposedRange:actualRange:] + 2499
2   AppKit                                  0x7ff81cd868b6 
-[NSTextCheckingController 
annotatedSubstringForProposedRange:wrap:completionHandler:failureHandler:] + 434
3   AppKit                                  0x7ff81cd866fe 
-[NSTextCheckingController 
annotatedSubstringForProposedRange:completionHandler:] + 84
4   AppKit                                  0x7ff81ce05ad3 
-[NSTextCheckingController _markForTextCheckingAfterChange] + 343
5   AppKit                                  0x7ff81d5bcef0 
___NSMainRunLoopPerformBlockInModes_block_invoke + 25
6   CoreFoundation                          0x7ff819ab17cc 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
7   CoreFoundation                          0x7ff819ab1702 __CFRunLoopDoBlocks 
+ 406
8   CoreFoundation                          0x7ff819ab0a62 __CFRunLoopRun + 2184
9   CoreFoundation                          0x7ff819aafb60 CFRunLoopRunSpecific 
+ 560
10  HIToolbox                               0x7ff8233fd766 
RunCurrentEventLoopInMode + 292
11  HIToolbox                               0x7ff8233fd576 
ReceiveNextEventCommon + 679
12  HIToolbox                               0x7ff8233fd2b3 
_BlockUntilNextEventMatchingListInModeWithFilter + 70
13  AppKit                                  0x7ff81cc002f3 _DPSNextEvent + 909
14  AppKit                                  0x7ff81cbff174 
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 
+ 1219
15  AppKit                                  0x7ff81cbf17b7 -[NSApplication run] 
+ 586
16  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108c80e8a 
wxGUIEventLoop::OSXDoRun() + 186
17  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108b63fbd 
wxCFEventLoop::DoRun() + 29
18  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108aafc2e 
wxEventLoopBase::Run() + 158
19  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108a7de53 
wxAppConsoleBase::MainLoop() + 99
20  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108c1606a wxApp::OnRun() + 26
21  kicad                                      0x106041ea9 APP_KICAD::OnRun() + 
25
22  libwx_osx_cocoau-3.2.0.1.0.dylib           0x108ae8159 wxEntry(int&, 
wchar_t**) + 73
23  kicad                                      0x10603fe60 main + 48
24  dyld                                    0x7ff8196a3310 start + 2432

I have also seen this crash:
Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called


Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff819b2a3eb 
__exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff819676e25 objc_exception_throw 
+ 48
2   Foundation                          0x00007ff81a92ac9b -[NSMutableRLEArray 
replaceObjectsInRange:withObject:length:] + 925
3   UIFoundation                        0x00007ff81dc16782 -[NSLayoutManager 
addTemporaryAttributes:forCharacterRange:] + 444
4   AppKit                              0x00007ff81d0eb6bf 
-[NSTextView(NSTextCheckingClient) 
_addAnnotations:range:textStorage:removeExistingAnnotations:] + 1372
5   AppKit                              0x00007ff81ce04779 
-[NSTextView(NSTextCheckingClient) setAnnotations:range:] + 196
6   Foundation                          0x00007ff81a91895a -[NSAttributedString 
enumerateAttributesInRange:options:usingBlock:] + 288
7   AppKit                              0x00007ff81ce04628 
-[NSTextCheckingController 
_setAnnotatedSubstring:forRange:offset:replacementRanges:resultingRanges:] + 565
8   AppKit                              0x00007ff81ce041af 
__48-[NSTextCheckingController insertedTextInRange:]_block_invoke + 2198
9   AppKit                              0x00007ff81cd86a6a 
-[NSTextCheckingController 
annotatedSubstringForProposedRange:wrap:completionHandler:failureHandler:] + 870
10  AppKit                              0x00007ff81cd866fe 
-[NSTextCheckingController 
annotatedSubstringForProposedRange:completionHandler:] + 84
11  AppKit                              0x00007ff81ce0390e 
-[NSTextCheckingController insertedTextInRange:] + 120
12  AppKit                              0x00007ff81ce001ee -[NSTextView 
_insertText:replacementRange:] + 3381
13  libwx_osx_cocoau-3.2.0.1.0.dylib    0x00000001112f0c94 
_ZN19wxNSTextViewControl9WriteTextERK8wxString + 196
14  libwx_osx_cocoau-3.2.0.1.0.dylib    0x000000011126740e 
_ZN11wxTextEntry9WriteTextERK8wxString + 78
15  _core.cpython-39-darwin.so          0x000000012862fc1b 
_ZL26meth_wxTextEntry_WriteTextP7_objectS0_S0_ + 155
16  Python                              0x0000000110029855 cfunction_call + 69
17  Python                              0x000000010ffe5af8 _PyObject_MakeTpCall 
+ 376
18  Python                              0x00000001100d3642 call_function + 626
19  Python                              0x00000001100d085e 
_PyEval_EvalFrameDefault + 28734
20  Python                              0x000000010ffe6283 
function_code_fastcall + 163
21  Python                              0x00000001100d356d call_function + 413
22  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
23  Python                              0x000000010ffe6283 
function_code_fastcall + 163
24  Python                              0x00000001100d356d call_function + 413
25  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
26  Python                              0x000000010ffe6283 
function_code_fastcall + 163
27  Python                              0x00000001100d356d call_function + 413
28  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
29  Python                              0x000000010ffe6283 
function_code_fastcall + 163
30  Python                              0x00000001100d356d call_function + 413
31  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
32  Python                              0x00000001100d44a6 _PyEval_EvalCode + 
2950
33  Python                              0x000000010ffe61cd 
_PyFunction_Vectorcall + 253
34  Python                              0x000000010ffe86f2 method_vectorcall + 
514
35  Python                              0x00000001100d0d45 
_PyEval_EvalFrameDefault + 29989
36  Python                              0x00000001100d44a6 _PyEval_EvalCode + 
2950
37  Python                              0x000000010ffe61cd 
_PyFunction_Vectorcall + 253
38  Python                              0x00000001100d356d call_function + 413
39  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
40  Python                              0x000000010ffe6283 
function_code_fastcall + 163
41  Python                              0x000000010ffe8663 method_vectorcall + 
371
42  Python                              0x00000001100d0d45 
_PyEval_EvalFrameDefault + 29989
43  Python                              0x000000010ffe6283 
function_code_fastcall + 163
44  Python                              0x00000001100d356d call_function + 413
45  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
46  Python                              0x000000010ffe6283 
function_code_fastcall + 163
47  Python                              0x00000001100d356d call_function + 413
48  Python                              0x00000001100d0831 
_PyEval_EvalFrameDefault + 28689
49  Python                              0x000000010ffe6283 
function_code_fastcall + 163
50  Python                              0x000000010ffe8663 method_vectorcall + 
371
51  Python                              0x0000000110177227 t_bootstrap + 71
52  Python                              0x00000001101258f9 pythread_wrapper + 25
53  libsystem_pthread.dylib             0x00007ff8199d6259 _pthread_start + 125
54  libsystem_pthread.dylib             0x00007ff8199d1c7b thread_start + 15

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum

-- 
You received this message because you are subscribed to the Google Groups 
"KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to devlist+unsubscr...@kicad.org.
To view this discussion on the web visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/D328D662-3121-4C1F-852F-2669FE6401F2%40dons.net.au.

Reply via email to