cv2.imshow() starts without poping up a window when called in threading - multithreading

cv2.imshow() do not pop up the window when called in the threading. An icon of python3 appears in the docker, but no window, no plot. Besides, I need the function of half-duplex communication, thus I cannot just remove threading. How can I correctly show the picture inside threading? Any response is appreciated.
Background: MacOS Catalina, python==3.5, opencv==3.4.2
import cv2
import threading
def run():
# start the camera
video_reader = cv2.VideoCapture(0)
while True:
# collect image
ret_val, image = video_reader.read()
cv2.imshow('image', image)
if cv2.waitKey(1) == 27:
break # esc to quit
t = threading.Thread(target=run, name="run")
t.start()
Some Warning messages that may help:
python3[86286:1964642] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
0 AppKit 0x00007fff2fc177f0 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 371
1 AppKit 0x00007fff2fc14ce1 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
2 AppKit 0x00007fff2fc14753 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
3 AppKit 0x00007fff2fea8368 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 52
4 libopencv_highgui.3.4.2.dylib 0x000000010327bee7 cvNamedWindow + 727
5 libopencv_highgui.3.4.2.dylib 0x000000010327b7a3 cvShowImage + 195
6 libopencv_highgui.3.4.2.dylib 0x000000010327860d _ZN2cv6imshowERKNS_6StringERKNS_11_InputArrayE + 477
7 cv2.cpython-35m-darwin.so 0x00000001014f8393 _ZL18pyopencv_cv_imshowP7_objectS0_S0_ + 387
8 python3 0x0000000100ca759f PyCFunction_Call + 127
9 python3 0x0000000100d6eec7 PyEval_EvalFrameEx + 18583
10 python3 0x0000000100d68faf _PyEval_EvalCodeWithName + 335
11 python3 0x0000000100c746aa function_call + 106
12 python3 0x0000000100c30b35 PyObject_Call + 69
13 python3 0x0000000100d6fc9b PyEval_EvalFrameEx + 22123
14 python3 0x0000000100d6efb8 PyEval_EvalFrameEx + 18824
15 python3 0x0000000100d6efb8 PyEval_EvalFrameEx + 18824
16 python3 0x0000000100d68faf _PyEval_EvalCodeWithName + 335
17 python3 0x0000000100c746aa function_call + 106
18 python3 0x0000000100c30b35 PyObject_Call + 69
19 python3 0x0000000100c53694 method_call + 148
20 python3 0x0000000100c30b35 PyObject_Call + 69
21 python3 0x0000000100d77bf4 PyEval_CallObjectWithKeywords + 68
22 python3 0x0000000100de472a t_bootstrap + 122
23 libsystem_pthread.dylib 0x00007fff69e8cd76 _pthread_start + 125
24 libsystem_pthread.dylib 0x00007fff69e895d7 thread_start + 15
)
2019-10-14 15:20:27.485 python3[86286:1964642] WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.

Apple only allows native UI functionality to be used on the main thread in macOS and iOS.

Related

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType pointSize]

when I want to generate a canvas on node this error is displayed and I don't know how to fix the problem.
2022-11-28 15:16:20.203 node[72232:1100211] -[__NSCFType pointSize]: unrecognized selector sent to instance 0x6000005e34e0
2022-11-28 15:16:20.210 node[72232:1100211] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType pointSize]: unrecognized selector sent to instance 0x6000005e34e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80ea337c3 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80e793bc3 objc_exception_throw + 48
2 CoreFoundation 0x00007ff80eab836b -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007ff80e99a515 ___forwarding___ + 1356
4 CoreFoundation 0x00007ff80e999f38 _CF_forwarding_prep_0 + 120
5 UIFoundation 0x00007ff81224426c +[NSFont initialize] + 381
6 libobjc.A.dylib 0x00007ff80e7864e5 CALLING_SOME_+initialize_METHOD + 17
7 libobjc.A.dylib 0x00007ff80e7861ee initializeNonMetaClass + 736
8 libobjc.A.dylib 0x00007ff80e785f6a initializeNonMetaClass + 92
9 libobjc.A.dylib 0x00007ff80e785f6a initializeNonMetaClass + 92
10 libobjc.A.dylib 0x00007ff80e785c18 _ZL24initializeAndMaybeRelockP10objc_classP11objc_objectR8mutex_ttILb0EEb + 232
11 libobjc.A.dylib 0x00007ff80e785995 lookUpImpOrForward + 1087
12 libobjc.A.dylib 0x00007ff80e78853d object_setClass + 88
13 CoreFoundation 0x00007ff80e93bd78 _CFRuntimeCreateInstance + 544
14 CoreText 0x00007ff810026f23 _Z11TCFBase_NEWI6CTFontJPK18__CTFontDescriptorRdRPK17CGAffineTransformRS3_EE6TCFRefIPT_EDpOT0_ + 43
15 CoreText 0x00007ff810026e1e CTFontCreateWithFontDescriptor + 108
16 libpangocairo-1.0.0.dylib 0x000000014572e9a2 _pango_cairo_core_text_font_new + 96
17 libpangocairo-1.0.0.dylib 0x000000014572d963 pango_core_text_font_map_new_font + 143
18 libpangocairo-1.0.0.dylib 0x000000014572d6a7 pango_core_text_fontset_new + 417
19 libpangocairo-1.0.0.dylib 0x000000014572d173 pango_core_text_font_map_load_fontset + 126
20 libpango-1.0.0.dylib 0x000000014585441d pango_itemize_with_font + 1249
21 libpango-1.0.0.dylib 0x000000014585f0d3 pango_layout_check_lines + 828
22 libpango-1.0.0.dylib 0x0000000145861993 pango_layout_get_line + 27
23 canvas.node 0x00000001456d16ca _ZN9Context2d11setTextPathEdd + 154
24 canvas.node 0x00000001456d14e0 _Z9paintTextRKN3Nan20FunctionCallbackInfoIN2v85ValueEEEb + 928
25 canvas.node 0x00000001456adfad _ZN3Nan3impL23FunctionCallbackWrapperERKN2v820FunctionCallbackInfoINS1_5ValueEEE + 189
26 node 0x00000001034d7589 _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE + 265
27 node 0x00000001034d7056 _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE + 550
28 node 0x00000001034d67cf _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE + 255
29 node 0x0000000103d4b439 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57
30 node 0x0000000103cdde2a Builtins_InterpreterEntryTrampoline + 202
)
libc++abi: terminating with uncaught exception of type NSException
node version: 16;17.1
I tried to change the version of node, to reinstall the canvas package, it did not change anything.

ios15,WKWebView,UITextField crash

iOS15 system:
1.click UITextField crash
2.Click the second layer WebView to crash
log:
Incident Identifier: 4F61CB1C-53DB-4EFD-B38F-93B973BE5CCC
CrashReporter Key: 6fa29e4a6b7c708a032c474dff75ab04a89a6a5e Hardware
Model: iPhone12,5 Process: AppName [2986] Path:
/private/var/containers/Bundle/Application/***/AppName.app/AppName
Identifier: com.***** Version: 8.0.0 (1) Code Type: ARM-64 (Native)
Role: Foreground Parent Process: launchd [1] Coalition: com.*****
[1262] Date/Time: 2022-01-28 16:14:58.8262 +0800 Launch Time:
2022-01-28 16:14:41.9927 +0800 OS Version: iPhone OS 15.2.1 (19C63)
Release Type: User Baseband Version: 3.01.02 Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes:
0x0000000000000001, 0x00000001812e01ec Exception Note:
EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: 888 handler [2986] Triggered by Thread: 0 Thread
0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0
CoreFoundation 0x1812e01ec __NSI0 + 748 1 CoreFoundation 0x181333ad4
-[NSInvocation getArgument:atIndex:] + 148 2 Foundation 0x182b4f0dc _NSGetValueWithMethod + 220 3 Foundation 0x182b0ab2c -[NSObject(NSKeyValueCoding) valueForKey:] + 320 4 AccessibilityUtilities 0x196f8787c
__57-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]_block_invoke + 40 5 AccessibilityUtilities
0x196f87640 -[NSObject(UIAccessibilitySafeCategory)
_accessibilityPerformSafeValueKeyBlock:withKey:onClass:] + 96 6 AccessibilityUtilities 0x196f879a4
-[NSObject(UIAccessibilitySafeCategory) safeValueForKey:] + 240 7 UIKit 0x1f2042e38 -[UIViewControllerAccessibility
_accessibilityLoadAccessibilityInformation] + 144 8 UIAccessibility 0x198c430e0 -[UIAccessibilityInformationLoader
_loadAccessibilityInformationOnMainThread:] + 828 9 Foundation 0x182b15780 __NSFireTimer + 104 10 CoreFoundation 0x18136e318
[CFRUN IS_CALLING_OUT_TO A_TIMER_CALLBACK_FUNCTION] + 32 11
CoreFoundation 0x1812f2cf0 __CFRunLoopDoTimer + 1076 12
CoreFoundation 0x1812ed4ec __CFRunLoopDoTimers + 328 13
CoreFoundation 0x1812cbd08 __CFRunLoopRun + 1944 14 CoreFoundation
0x1812df468 CFRunLoopRunSpecific + 600 15 GraphicsServices
0x19ce6a38c GSEventRunModal + 164 16 UIKitCore 0x183c81088
-[UIApplication _run] + 1100 17 UIKitCore 0x1839ff958 UIApplicationMain + 2092 18 AppName 0x10060fed0 main + 352 19 dyld
0x105151aa4 start + 520 .......
问题在avoidCrash中,
[AvoidCrash makeAllEffective];改成[AvoidCrash becomeEffective];不再全局捕获
发现崩溃在avoidCrashMethodSignatureForSelector:
这个方法里转发底层方法_navigationControllerContentInsetAdjustment时候崩溃

Python get segmentation fault after update macos to 10.15.5

I use python3.8.3 for work and after update MAC OS X to 10.15.5 python3 crushed with a segfault
I tried to update OpenSSL macOS Catalina: Python Quit unexpectedly error but it didn't help
See error below
Process: Python [27175]
Path: /Library/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.8.3 (3.8.3)
Code Type: X86-64 (Native)
Parent Process: zsh [24697]
Responsible: pycharm [8636]
User ID: 501
Date/Time: 2020-06-01 13:42:23.958 +0300
OS Version: Mac OS X 10.15.5 (19F96)
Report Version: 12
Bridge OS Version: 4.5 (17P5290)
Anonymous UUID: 5797C183-EB8E-7120-EC7D-EC0F2C1BF8E7
Sleep/Wake UUID: 986C6236-FC1E-46A9-BFBC-76EA8B17CB65
Time Awake Since Boot: 110000 seconds
Time Since Wake: 32000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [27175]
VM Regions Near 0:
-->
__TEXT 000000010b324000-000000010b325000 [ 4K] r-x/rwx SM=COW /Library/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff6cde3e52 _platform_strlen + 18
1 etree.cpython-38-darwin.so 0x000000010c2d3e9f __pyx_f_4lxml_5etree_funicode + 15
2 etree.cpython-38-darwin.so 0x000000010c392c03 __pyx_f_4lxml_5etree_8iterwalk__start_node + 195
3 etree.cpython-38-darwin.so 0x000000010c390f00 __pyx_pw_4lxml_5etree_8iterwalk_5__next__ + 1856
4 etree.cpython-38-darwin.so 0x000000010c2fdcc1 __pyx_f_4lxml_5etree__tree_to_target + 3537
5 etree.cpython-38-darwin.so 0x000000010c3d5445 __pyx_pw_4lxml_5etree_33tostring + 4229
6 org.python.python 0x000000010b351565 _PyObject_MakeTpCall + 373
7 org.python.python 0x000000010b41fca5 call_function + 533
8 org.python.python 0x000000010b41cbd8 _PyEval_EvalFrameDefault + 25976
9 org.python.python 0x000000010b420a94 _PyEval_EvalCodeWithName + 2804
10 org.python.python 0x000000010b35204e _PyFunction_Vectorcall + 270
11 org.python.python 0x000000010b41fc4c call_function + 444
12 org.python.python 0x000000010b41cb45 _PyEval_EvalFrameDefault + 25829
13 org.python.python 0x000000010b420a94 _PyEval_EvalCodeWithName + 2804
14 org.python.python 0x000000010b35204e _PyFunction_Vectorcall + 270
15 org.python.python 0x000000010b41fc4c call_function + 444
16 org.python.python 0x000000010b41cbd8 _PyEval_EvalFrameDefault + 25976
17 org.python.python 0x000000010b36222e gen_send_ex + 206
18 _asyncio.cpython-38-darwin.so 0x000000010baa7ed1 task_step + 865
19 _asyncio.cpython-38-darwin.so 0x000000010baa7aee TaskWakeupMethWrapper_call + 430
20 org.python.python 0x000000010b351565 _PyObject_MakeTpCall + 373
21 org.python.python 0x000000010b43c7cd context_run + 253
22 org.python.python 0x000000010b38df64 cfunction_vectorcall_FASTCALL_KEYWORDS + 132
.......

Core Data, NSPredicate causes NSInvalidArgumentException

I am calling this code on a background thread.
backgroundContext.performAndWait {
let fetchRequest:NSFetchRequest<BlogPost> = BlogPost.fetchRequest()
fetchRequest.predicate = NSPredicate.init(format: "postid=%#", argumentArray: [someInt64Value]) // this line creates an exception
_ = try? fetchRequest.execute()
....
}
If I remove the predicate, it works fine. The same predicate works just fine if used inside a fetchResultController. postid is Int64 but if I changed the predicate to any other key it would give the same NSInvalidArgumentException
This is very similar to Core Data Error - NSDate localizedCaseInsensitiveCompare: unrecognised selector sent to instance
2016-10-11 21:58:13.918 BlogClient[44494:13192129] -[_SwiftValue longLongValue]: unrecognized selector sent to instance 0x618000243cc0
2016-10-11 21:58:13.922 BlogClient[44494:13192129] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_SwiftValue longLongValue]: unrecognized selector sent to instance 0x618000243cc0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f59534b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010ebd921e objc_exception_throw + 48
2 CoreFoundation 0x000000010f604f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010f51ac15 ___forwarding___ + 1013
4 CoreFoundation 0x000000010f51a798 _CF_forwarding_prep_0 + 120
5 CoreData 0x000000010f09762e -[NSSQLiteConnection execute] + 2270
6 CoreData 0x000000010f0aeaba newFetchedRowsForFetchPlan_MT + 1658
7 CoreData 0x000000010f274467 _executeFetchRequest + 55
8 CoreData 0x000000010f1f3be5 -[NSSQLFetchRequestContext executeRequestUsingConnection:] + 53
9 CoreData 0x000000010f220eb7 __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke + 215
10 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8
11 libdispatch.dylib 0x0000000112b6830a _dispatch_barrier_sync_f_invoke + 340
12 CoreData 0x000000010f220d8c -[NSSQLDefaultConnectionManager handleStoreRequest:] + 236
13 CoreData 0x000000010f22861f -[NSSQLCoreDispatchManager routeStoreRequest:] + 351
14 CoreData 0x000000010f1ab7d9 -[NSSQLCore dispatchRequest:withRetries:] + 233
15 CoreData 0x000000010f1a711d -[NSSQLCore processFetchRequest:inContext:] + 93
16 CoreData 0x000000010f09dcf8 -[NSSQLCore executeRequest:withContext:error:] + 568
17 CoreData 0x000000010f191b79 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke + 5609
18 CoreData 0x000000010f189966 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 390
19 CoreData 0x000000010f09d87e -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 654
20 CoreData 0x000000010f09be24 -[NSManagedObjectContext executeFetchRequest:error:] + 548
21 CoreData 0x000000010f0e154f -[NSManagedObjectContext(_NestedContextSupport) _parentObjectsForFetchRequest:inContext:error:] + 431
22 CoreData 0x000000010f1626b3 __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 611
23 CoreData 0x000000010f0e133d internalBlockToNSManagedObjectContextPerform + 93
24 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8
25 libdispatch.dylib 0x0000000112b6d5e5 _dispatch_barrier_sync_f_slow_invoke + 617
26 libdispatch.dylib 0x0000000112b8b0cd _dispatch_client_callout + 8
27 libdispatch.dylib 0x0000000112b6b8d6 _dispatch_main_queue_callback_4CF + 406
28 CoreFoundation 0x000000010f5594f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
29 CoreFoundation 0x000000010f51ef8d __CFRunLoopRun + 2205
30 CoreFoundation 0x000000010f51e494 CFRunLoopRunSpecific + 420
31 GraphicsServices 0x0000000113b72a6f GSEventRunModal + 161
32 UIKit 0x000000010f9b8f34 UIApplicationMain + 159
33 BlogClient 0x000000010e5a8bdf main + 111
34 libdyld.dylib 0x0000000112bd768d start + 1
35 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I found the issue. Passing an Int64 confuses the argumentArray, casting it to Int fixes the issue.
This seems to be a bug in NSPredicate() filed as radar 28749194
let id:Int64 = 5785905063264256 // Making this Int works
#objc class Test:NSObject {
let postid = id
}
let predicate = NSPredicate(format: "postid == %#"
, argumentArray: [id])
let mytest = Test()
predicate.evaluate(with: mytest) //false but should be true

UIAlertViewStyleSecureTextInput not working with ios 7

i have a issues to use a uialertView with a TextFiled in ios 7.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"title" message:nil delegate:self cancelButtonTitle:#"ok" otherButtonTitles:#"cancel", nil];
alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
[[alert textFieldAtIndex:0] setKeyboardType:UIKeyboardTypeNumberPad];
[alert show];
but in new SDK of ios 7 Creasing and Cresh Can-sol like
AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512
2013-09-09 10:39:51.659 Food.de[912:a0b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]'
*** First throw call stack:
(
0 CoreFoundation 0x037a16f4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x02cc08b6 objc_exception_throw + 44
2 CoreFoundation 0x03742616 -[__NSArrayM objectAtIndex:] + 246
3 Food.de 0x0006583f -[HomeViewController addButtonToKeyboard] + 735
4 Food.de 0x00065e8e -[HomeViewController keyboardDidShow:] + 238
5 Foundation 0x02787089 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
6 CoreFoundation 0x037fd634 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
7 CoreFoundation 0x0375513b _CFXNotificationPost + 2859
8 Foundation 0x026c0de1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
9 UIKit 0x01cb8e97 -[UIInputViewTransition postNotificationsForTransitionEnd] + 1054
10 UIKit 0x01caf4b8 __53-[UIPeripheralHost(UIKitInternal) executeTransition:]_block_invoke1329 + 455
11 UIKit 0x0188dc15 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 306
12 UIKit 0x018778bc -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 267
13 UIKit 0x01877ba4 -[UIViewAnimationState animationDidStop:finished:] + 80
14 QuartzCore 0x00cb2e84 _ZN2CA5Layer23run_animation_callbacksEPv + 304
15 libdispatch.dylib 0x0316b4b0 _dispatch_client_callout + 14
16 libdispatch.dylib 0x03159766 _dispatch_main_queue_callback_4CF + 340
17 CoreFoundation 0x03806b6e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
18 CoreFoundation 0x037477eb __CFRunLoopRun + 1963
19 CoreFoundation 0x03746bf3 CFRunLoopRunSpecific + 467
20 CoreFoundation 0x03746a0b CFRunLoopRunInMode + 123
21 GraphicsServices 0x03e8fa27 GSEventRunModal + 192
22 GraphicsServices 0x03e8f84e GSEventRun + 104
23 UIKit 0x0182bf0b UIApplicationMain + 1225
24 Food.de 0x00006c1d main + 141
25 Food.de 0x00006b85 start + 53
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
if any one develop with ios 7 and know how to solve this problem then help .
.....
if alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
my xcode Version 5.0 (5A11386k)
is not working with ios 7 then we use old strategy like we do for ios 5 ?
thanks .
The problem is on your HomeViewController. You have a
[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]
This means you are trying to access an index that doesn't exists, I think on line 246

Resources