Skip to content

Main Thread Checker: UI API called on a background thread #353

@superbabyTxY

Description

@superbabyTxY

=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView initWithFrame:]
PID: 1513, TID: 55970, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 flutter_image_compress_common 0x00000001029a8660 -[UIImage(scale) imageRotatedByDegrees:deg:] + 256
5 flutter_image_compress_common 0x00000001029a8554 -[UIImage(scale) rotate:] + 44
6 flutter_image_compress_common 0x0000000102995314 +[CompressHandler compressWithUIImage:minWidth:minHeight:quality:rotate:format:] + 420
7 flutter_image_compress_common 0x0000000102995134 +[CompressHandler compressWithData:minWidth:minHeight:quality:rotate:format:] + 404
8 flutter_image_compress_common 0x0000000102995d9c -[CompressListHandler handleMethodCall:result:] + 588
9 flutter_image_compress_common 0x000000010299623c __47-[ImageCompressPlugin handleMethodCall:result:]_block_invoke + 152
10 libdispatch.dylib 0x000000010396c08c _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x000000010396d8c4 _dispatch_client_callout + 16
12 libdispatch.dylib 0x00000001039700ac _dispatch_queue_override_invoke + 924
13 libdispatch.dylib 0x000000010397faa4 _dispatch_root_queue_drain + 356
14 libdispatch.dylib 0x0000000103980414 _dispatch_worker_thread2 + 208
15 libsystem_pthread.dylib 0x00000001fa59eb14 _pthread_wqthread + 224
16 libsystem_pthread.dylib 0x00000001fa59e67c start_wqthread + 8
2026-02-12 12:11:14.311647+0800 Runner[1513:55970] [reports] Main Thread Checker: UI API called on a background thread: -[UIView initWithFrame:]
PID: 1513, TID: 55970, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 flutter_image_compress_common 0x00000001029a8660 -[UIImage(scale) imageRotatedByDegrees:deg:] + 256
5 flutter_image_compress_common 0x00000001029a8554 -[UIImage(scale) rotate:] + 44
6 flutter_image_compress_common 0x0000000102995314 +[CompressHandler compressWithUIImage:minWidth:minHeight:quality:rotate:format:] + 420
7 flutter_image_compress_common 0x0000000102995134 +[CompressHandler compressWithData:minWidth:minHeight:quality:rotate:format:] + 404
8 flutter_image_compress_common 0x0000000102995d9c -[CompressListHandler handleMethodCall:result:] + 588
9 flutter_image_compress_common 0x000000010299623c __47-[ImageCompressPlugin handleMethodCall:result:]_block_invoke + 152
10 libdispatch.dylib 0x000000010396c08c _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x000000010396d8c4 _dispatch_client_callout + 16
12 libdispatch.dylib 0x00000001039700ac _dispatch_queue_override_invoke + 924
13 libdispatch.dylib 0x000000010397faa4 _dispatch_root_queue_drain + 356
14 libdispatch.dylib 0x0000000103980414 _dispatch_worker_thread2 + 208
15 libsystem_pthread.dylib 0x00000001fa59eb14 _pthread_wqthread + 224
16 libsystem_pthread.dylib 0x00000001fa59e67c start_wqthread + 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions