矩阵聊天被冻结

时间:2018-09-11 06:43:22

标签: ios objective-c xcode9.4

我正在使用VECTOR 0.6.17,当我在XCode 9.4中运行我的应用程序时,该应用程序正在运行并且聊天已正确登录,并且正在显示我先前聊天的用户。当我单击特定用户时,应用程序冻结,此后我什么也不能做。我已经附上了日志。

2018-09-11 11:31:03.959131+0530 Vector[317:22327] [MXKRoomDataSource] paginateToFillRect: {{0, 0}, {414, 736}}

2018-09-11 11:31:03.959224+0530 Vector[317:22327] [MXKRoomDataSource] paginateToFillRect: Prefill with data from the store

2018-09-11 11:31:03.959321+0530 Vector[317:22327] [MXEventTimeline] paginate 30 messages in !eCuIjpMTkujUAaerDm:matrix.org (10 are retrieved from the store)

2018-09-11 11:31:03.960371+0530 Vector[317:22327] [MXEventTimeline] paginate : is done from the store

=================================================================

Main Thread Checker: UI API called on a background thread: -[UILabel setText:]

PID: 317, TID: 22759, Thread name: (none), Queue name: MXKRoomDataSource, QoS: 0

Backtrace:

4   Vector                              0x0000000101216a6c +[AvatarGenerator imageFromText:withBackgroundColor:] + 480

5   Vector                              0x0000000101217060 +[AvatarGenerator avatarForText:andColorIndex:] + 448

6   Vector                              0x0000000101217268 +[AvatarGenerator generateAvatarForMatrixItem:withDisplayName:] + 188

7   Vector                              0x000000010123c8d8 -[RoomBubbleCellData initWithEvent:andRoomState:andRoomDataSource:] + 348

8   Vector                              0x0000000101471548 __41-[MXKRoomDataSource processQueuedEvents:]_block_invoke + 2092

9   libdispatch.dylib                   0x00000001023591dc _dispatch_call_block_and_release + 24

10  libdispatch.dylib                   0x000000010235919c _dispatch_client_callout + 16

11  libdispatch.dylib                   0x0000000102367dfc _dispatch_queue_serial_drain + 768

12  libdispatch.dylib                   0x000000010235c6ac _dispatch_queue_invoke + 328

13  libdispatch.dylib                   0x0000000102368d54 _dispatch_root_queue_drain_deferred_wlh + 352

14  libdispatch.dylib                   0x000000010236fe38 _dispatch_workloop_worker_thread + 676

15  libsystem_pthread.dylib             0x000000018478be70 _pthread_wqthread + 860

16  libsystem_pthread.dylib             0x000000018478bb08 start_wqthread + 4

2018-09-11 11:31:03.981613+0530 Vector[317:22759] [reports] Main Thread Checker: UI API called on a background thread: -[UILabel setText:]

PID: 317, TID: 22759, Thread name: (none), Queue name: MXKRoomDataSource, QoS: 0

Backtrace:

4   Vector                              0x0000000101216a6c +[AvatarGenerator imageFromText:withBackgroundColor:] + 480

5   Vector                              0x0000000101217060 +[AvatarGenerator avatarForText:andColorIndex:] + 448

6   Vector                              0x0000000101217268 +[AvatarGenerator generateAvatarForMatrixItem:withDisplayName:] + 188

7   Vector                              0x000000010123c8d8 -[RoomBubbleCellData initWithEvent:andRoomState:andRoomDataSource:] + 348

8   Vector                              0x0000000101471548 __41-[MXKRoomDataSource processQueuedEvents:]_block_invoke + 2092

9   libdispatch.dylib                   0x00000001023591dc _dispatch_call_block_and_release + 24

10  libdispatch.dylib                   0x000000010235919c _dispatch_client_callout + 16

11  libdispatch.dylib                   0x0000000102367dfc _dispatch_queue_serial_drain + 768

12  libdispatch.dylib                   0x000000010235c6ac _dispatch_queue_invoke + 328

13  libdispatch.dylib                   0x0000000102368d54 _dispatch_root_queue_drain_deferred_wlh + 352

14  libdispatch.dylib                   0x000000010236fe38 _dispatch_workloop_worker_thread + 676

15  libsystem_pthread.dylib             0x000000018478be70 _pthread_wqthread + 860

16  libsystem_pthread.dylib             0x000000018478bb08 start_wqthread + 4

=================================================================

Main Thread Checker: UI API called on a background thread: -[UILabel setBackgroundColor:]

PID: 317, TID: 22759, Thread name: (none), Queue name: MXKRoomDataSource, QoS: 0

Backtrace:

4   Vector                              0x0000000101216a84 +[AvatarGenerator imageFromText:withBackgroundColor:] + 504

5   Vector                              0x0000000101217060 +[AvatarGenerator avatarForText:andColorIndex:] + 448

6   Vector                              0x0000000101217268 +[AvatarGenerator generateAvatarForMatrixItem:withDisplayName:] + 188

7   Vector                              0x000000010123c8d8 -[RoomBubbleCellData initWithEvent:andRoomState:andRoomDataSource:] + 348

8   Vector                              0x0000000101471548 __41-[MXKRoomDataSource processQueuedEvents:]_block_invoke + 2092

9   libdispatch.dylib                   0x00000001023591dc _dispatch_call_block_and_release + 24

10  libdispatch.dylib                   0x000000010235919c _dispatch_client_callout + 16

11  libdispatch.dylib                   0x0000000102367dfc _dispatch_queue_serial_drain + 768

12  libdispatch.dylib                   0x000000010235c6ac _dispatch_queue_invoke + 328

13  libdispatch.dylib                   0x0000000102368d54 _dispatch_root_queue_drain_deferred_wlh + 352

14  libdispatch.dylib                   0x000000010236fe38 _dispatch_workloop_worker_thread + 676

15  libsystem_pthread.dylib             0x000000018478be70 _pthread_wqthread + 860

16  libsystem_pthread.dylib             0x000000018478bb08 start_wqthread + 4

2018-09-11 11:31:04.088419+0530 Vector[317:22759] [reports] Main Thread Checker: UI API called on a background thread: -[UILabel setBackgroundColor:]

PID: 317, TID: 22759, Thread name: (none), Queue name: MXKRoomDataSource, QoS: 0

Backtrace:

4   Vector                              0x0000000101216a84 +[AvatarGenerator imageFromText:withBackgroundColor:] + 504

5   Vector                              0x0000000101217060 +[AvatarGenerator avatarForText:andColorIndex:] + 448

6   Vector                              0x0000000101217268 +[AvatarGenerator generateAvatarForMatrixItem:withDisplayName:] + 188

7   Vector                              0x000000010123c8d8 -[RoomBubbleCellData initWithEvent:andRoomState:andRoomDataSource:] + 348

8   Vector                              0x0000000101471548 __41-[MXKRoomDataSource processQueuedEvents:]_block_invoke + 2092

9   libdispatch.dylib                   0x00000001023591dc _dispatch_call_block_and_release + 24

10  libdispatch.dylib                   0x000000010235919c _dispatch_client_callout + 16

11  libdispatch.dylib                   0x0000000102367dfc _dispatch_queue_serial_drain + 768

12  libdispatch.dylib                   0x000000010235c6ac _dispatch_queue_invoke + 328

13  libdispatch.dylib                   0x0000000102368d54 _dispatch_root_queue_drain_deferred_wlh + 352

14  libdispatch.dylib                   0x000000010236fe38 _dispatch_workloop_worker_thread + 676

15  libsystem_pthread.dylib             0x000000018478be70 _pthread_wqthread + 860

16  libsystem_pthread.dylib             0x000000018478bb08 start_wqthread + 4

有人可以帮我解决这个问题吗?

这是我提到的问题的演示的链接, https://www.dropbox.com/s/za69zs5yzlpdvvb/Vector%20Chat.mov?dl=0

在编辑屏幕中启用了问题暂停功能。

enter image description here

我在这个地方遇到问题了,该怎么办?

enter image description here

按照@holex说我已添加调度队列

enter image description here

再次在该行中出现相同的错误,因此也为该行添加了调度队列,但我的应用程序崩溃了。我还附上了日志。

2018-09-11 13:15:35.113653+0530 Vector[412:50340] [MXLogger] handleUncaughtException:
4744231993351678525 - 2018-09-11 07:45:35 +0000
*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: R0)
Application: Vector (com.agriya.devtest)
Application version: 0.2.3 (r0.2.3)
Matrix SDK version: 0.6.17
Build: (no build info)
iPhone 11.4.1

Main thread: YES
(
    0   CoreFoundation                      0x0000000184b66da4 <redacted> + 252
    1   libobjc.A.dylib                     0x0000000183d205ec objc_exception_throw + 56
    2   CoreFoundation                      0x0000000184aff750 _CFArgv + 0
    3   CoreFoundation                      0x0000000184a34c6c <redacted> + 948
    4   Vector                              0x0000000100b030a0 +[AvatarGenerator avatarForText:andColorIndex:] + 528
    5   Vector                              0x0000000100b03258 +[AvatarGenerator generateAvatarForMatrixItem:withDisplayName:] + 188
    6   Vector                              0x0000000100b2b4c4 -[MXRoom(Vector) setRoomAvatarImageIn:] + 1224
    7   Vector                              0x0000000100b14554 -[RecentTableViewCell render:] + 3168
    8   Vector                              0x0000000100d0da4c -[MXKInterleavedRecentsDataSource tableView:cellForRowAtIndexPath:] + 440
    9   Vector                              0x0000000100b867f8 -[RecentsDataSource tableView:cellForRowAtIndexPath:] + 2876
    10  UIKit                               0x000000018e8430cc <redacted> + 668
    11  UIKit                               0x000000018e842d84 <redacted> + 80
    12  UIKit                               0x000000018e841aa0 <redacted> + 2280
    13  UIKit                               0x000000018e83d5ec <redacted> + 140
    14  UIKit                               0x000000018e77a6f4 <redacted> + 1420
    15  QuartzCore                          0x0000000188cefe54 <redacted> + 184
    16  QuartzCore                          0x0000000188cf3fe4 <redacted> + 324
    17  QuartzCore                          0x0000000188c606c8 <redacted> + 320
    18  QuartzCore                          0x0000000188c881b0 <redacted> + 580
    19  QuartzCore                          0x0000000188c89030 <redacted> + 92
    20  CoreFoundation                      0x0000000184b0e910 <redacted> + 32
    21  CoreFoundation                      0x0000000184b0c238 <redacted> + 412
    22  CoreFoundation                      0x0000000184b0c884 <redacted> + 1436
    23  CoreFoundation                      0x0000000184a2cda8 CFRunLoopRunSpecific + 552
    24  GraphicsServices                    0x0000000186a12020 GSEventRunModal + 100
    25  UIKit                               0x000000018ea4c758 UIApplicationMain + 236
    26  Vector                              0x0000000100b13508 main + 184
    27  libdyld.dylib                       0x00000001844bdfc0 <redacted> + 4
)
2018-09-11 13:15:35.144749+0530 Vector[412:50340] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: R0)'
*** First throw call stack:
(0x184b66d8c 0x183d205ec 0x184aff750 0x184a34c6c 0x100b030a0 0x100b03258 0x100b2b4c4 0x100b14554 0x100d0da4c 0x100b867f8 0x18e8430cc 0x18e842d84 0x18e841aa0 0x18e83d5ec 0x18e77a6f4 0x188cefe54 0x188cf3fe4 0x188c606c8 0x188c881b0 0x188c89030 0x184b0e910 0x184b0c238 0x184b0c884 0x184a2cda8 0x186a12020 0x18ea4c758 0x100b13508 0x1844bdfc0)
libc++abi.dylib: terminating with uncaught exception of type NSException

0 个答案:

没有答案