Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error aplication Thread in ios 11 with version 3.0.4 #2812

Closed
Spiderbezno opened this issue Sep 21, 2017 · 1 comment
Closed

Error aplication Thread in ios 11 with version 3.0.4 #2812

Spiderbezno opened this issue Sep 21, 2017 · 1 comment

Comments

@Spiderbezno
Copy link

Spiderbezno commented Sep 21, 2017

Only happen in iOS 11
When I run the app with chrtrs we have un erro in run mode with this error in the class PieChartRenderer.swift

 for j in 0 ..< entryCount
        {
          #   let sliceAngle = drawAngles[j]
            var innerRadius = userInnerRadius
            
            guard let e = dataSet.entryForIndex(j) else { continue }
            
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

and in console this:

Main Thread Checker: UI API called on a background thread: -[UIView setNeedsDisplay]
PID: 56335, TID: 6441245, Thread name: (none), Queue name: NSOperationQueue 0x600000220480 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4   Charts                              0x0000000108afa605 _T06Charts21PieRadarChartViewBaseC13rotationAngle12CoreGraphics7CGFloatVfs + 101
5   myAndorraTelecom                    0x0000000107b65c5d _T016myAndorraTelecom19ChartTempControllerC03setD0ySd12currentValue_Sd03maxI0So7UIImageC11imageCentertF + 3869
6   myAndorraTelecom                    0x0000000107b6c0f7 _T016myAndorraTelecom19ChartTempControllerC21getDeatilConsumsAsyncyyFy10Foundation4DataVSg_So11URLResponseCSgs5Error_pSgtcfU_ + 17047
7   myAndorraTelecom                    0x0000000107b6e440 _T016myAndorraTelecom19ChartTempControllerC21getDeatilConsumsAsyncyyFy10Foundation4DataVSg_So11URLResponseCSgs5Error_pSgtcfU_TA + 176
8   myAndorraTelecom                    0x000000010785cef7 _T010Foundation4DataVSgSo11URLResponseCSgs5Error_pSgIxxxx_So6NSDataCSgAGSo7NSErrorCSgIyByyy_TR + 263
9   CFNetwork                           0x000000010fcc0208 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
10  CFNetwork                           0x000000010fcbfa6d __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 147
11  Foundation                          0x000000010935a9b7 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
12  Foundation                          0x000000010935a81a -[NSBlockOperation main] + 68
13  Foundation                          0x0000000109358cd6 -[__NSOperationInternal _start:] + 778
14  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
15  libdispatch.dylib                   0x000000010e5acaf4 _dispatch_block_invoke_direct + 592
16  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
17  libdispatch.dylib                   0x000000010e5acaf4 _dispatch_block_invoke_direct + 592
18  libdispatch.dylib                   0x000000010e5ac884 dispatch_block_perform + 109
19  Foundation                          0x0000000109354ce4 __NSOQSchedule_f + 342
20  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
21  libdispatch.dylib                   0x000000010e5ad856 _dispatch_continuation_pop + 967
22  libdispatch.dylib                   0x000000010e5abc86 _dispatch_async_redirect_invoke + 780
23  libdispatch.dylib                   0x000000010e5b31f9 _dispatch_root_queue_drain + 772
24  libdispatch.dylib                   0x000000010e5b2e97 _dispatch_worker_thread3 + 132
25  libsystem_pthread.dylib             0x000000010ea6a5a2 _pthread_wqthread + 1299
26  libsystem_pthread.dylib             0x000000010ea6a07d start_wqthread + 13
2017-09-21 16:21:41.197476+0200 myAndorraTelecom[56335:6441245] [reports] Main Thread Checker: UI API called on a background thread: -[UIView setNeedsDisplay]
PID: 56335, TID: 6441245, Thread name: (none), Queue name: NSOperationQueue 0x600000220480 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4   Charts                              0x0000000108afa605 _T06Charts21PieRadarChartViewBaseC13rotationAngle12CoreGraphics7CGFloatVfs + 101
5   myAndorraTelecom                    0x0000000107b65c5d _T016myAndorraTelecom19ChartTempControllerC03setD0ySd12currentValue_Sd03maxI0So7UIImageC11imageCentertF + 3869
6   myAndorraTelecom                    0x0000000107b6c0f7 _T016myAndorraTelecom19ChartTempControllerC21getDeatilConsumsAsyncyyFy10Foundation4DataVSg_So11URLResponseCSgs5Error_pSgtcfU_ + 17047
7   myAndorraTelecom                    0x0000000107b6e440 _T016myAndorraTelecom19ChartTempControllerC21getDeatilConsumsAsyncyyFy10Foundation4DataVSg_So11URLResponseCSgs5Error_pSgtcfU_TA + 176
8   myAndorraTelecom                    0x000000010785cef7 _T010Foundation4DataVSgSo11URLResponseCSgs5Error_pSgIxxxx_So6NSDataCSgAGSo7NSErrorCSgIyByyy_TR + 263
9   CFNetwork                           0x000000010fcc0208 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
10  CFNetwork                           0x000000010fcbfa6d __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 147
11  Foundation                          0x000000010935a9b7 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
12  Foundation                          0x000000010935a81a -[NSBlockOperation main] + 68
13  Foundation                          0x0000000109358cd6 -[__NSOperationInternal _start:] + 778
14  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
15  libdispatch.dylib                   0x000000010e5acaf4 _dispatch_block_invoke_direct + 592
16  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
17  libdispatch.dylib                   0x000000010e5acaf4 _dispatch_block_invoke_direct + 592
18  libdispatch.dylib                   0x000000010e5ac884 dispatch_block_perform + 109
19  Foundation                          0x0000000109354ce4 __NSOQSchedule_f + 342
20  libdispatch.dylib                   0x000000010e5a743c _dispatch_client_callout + 8
21  libdispatch.dylib                   0x000000010e5ad856 _dispatch_continuation_pop + 967
22  libdispatch.dylib                   0x000000010e5abc86 _dispatch_async_redirect_invoke + 780
23  libdispatch.dylib                   0x000000010e5b31f9 _dispatch_root_queue_drain + 772
24  libdispatch.dylib                   0x000000010e5b2e97 _dispatch_worker_thread3 + 132
25  libsystem_pthread.dylib             0x000000010ea6a5a2 _pthread_wqthread + 1299
26  libsystem_pthread.dylib             0x000000010ea6a07d start_wqthread + 13
fatal error: Index out of range
2017-09-21 16:21:41.244552+0200 myAndorraTelecom[56335:6440481] fatal error: Index out of range
@liuxuan30
Copy link
Member

liuxuan30 commented Sep 22, 2017

2017-09-21 16:21:41.244552+0200 myAndorraTelecom[56335:6440481] fatal error: Index out of range

it's saying you have OOB issue. Check your entry array if you delete any on the fly. Next time, you should debug on your side first and provide more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants