-
Notifications
You must be signed in to change notification settings - Fork 28.6k
NSInternalInconsistencyException(Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.) #157091
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
Comments
Hi @cj3479, what device(s) do you see this on? What version of iOS are they running? Can you upgrade to stable 3.24.3 to see if you still experience this issue? |
The device info: I upgraded to stable 3.24.3 and I still experience this issue |
Hi @cj3479, are you able to reproduce this locally? And if so, can you share a minimal reproducible code sample (preferably without any third-party packages/plugins) so that we can properly investigate this issue? |
No,I can't reproduce it. The crash reporting platform reports the crash |
Labeling for further investigation as this is a production crash without any steps to reproduce. Attempting to symbolize the stack trace didn't provide any more information than we already have dart pub global run symbolizerdart pub global run symbolizer:symbolize https://github.com/flutter/flutter/issues/157091\#issue-2594678468 "flutter#3.22.2 arm64 ios release force"
Building package executable... (1.2s)
Built symbolizer:symbolize.
INFO: 2024-10-25 06:27:45.001244: checking for llvm-{symbolizer,readobj,objdump} in $PATH
INFO: 2024-10-25 06:27:45.016294: checking for llvm-{symbolizer,readobj,objdump} in tools/android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/
INFO: 2024-10-25 06:27:45.033455: checking for llvm-{symbolizer,readobj,objdump} in /Users/deanli/Library/Android/sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/darwin-x86_64/bin/
INFO: 2024-10-25 06:27:46.686899: downloading /var/folders/59/gngn78896tbgdl1pjnkbk7dh0000gn/T/symbols-cache/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4-ios-release for EngineBuild(engineHash: edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4, variant: EngineVariant(os: ios, arch: arm64, mode: release))
INFO: 2024-10-25 06:27:46.688139: gsutil cp gs://flutter_infra_release/flutter/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4/ios-release/Flutter.dSYM.zip /var/folders/59/gngn78896tbgdl1pjnkbk7dh0000gn/T/C22AOR/Flutter.dSYM.zip
INFO: 2024-10-25 06:28:19.789425: looking for load base of EngineBuild(engineHash: edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4, variant: EngineVariant(os: ios, arch: arm64, mode: release)) based on [4602748836, 4602746392]
INFO: 2024-10-25 06:28:19.790319: downloading /var/folders/59/gngn78896tbgdl1pjnkbk7dh0000gn/T/symbols-cache/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4-ios-release-libflutter for EngineBuild(engineHash: edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4, variant: EngineVariant(os: ios, arch: arm64, mode: release))
INFO: 2024-10-25 06:28:19.790847: gsutil cp gs://flutter_infra_release/flutter/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4/ios-release/artifacts.zip /var/folders/59/gngn78896tbgdl1pjnkbk7dh0000gn/T/8ww3fI/artifacts.zip
INFO: 2024-10-25 06:28:45.157765: Symbolizing using /var/folders/59/gngn78896tbgdl1pjnkbk7dh0000gn/T/symbols-cache/edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4-ios-release/Flutter.dSYM/Contents/Resources/DWARF/Flutter
--------------------------------------------------------------------------------
symbolized using symbols for edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4 ios-arm64-release
#00 00000001a0e5cf20 CoreFoundation 0x00000001a0dd9000 + 540448
#01 0000000198d072b8 libobjc.A.dylib objc_exception_throw + 60
#02 00000001c2108224 CoreAutoLayout 0x00000001c20f6000 + 74276
#03 00000001c20fb89c CoreAutoLayout 0x00000001c20f6000 + 22684
#04 00000001c20f8208 CoreAutoLayout 0x00000001c20f6000 + 8712
#05 00000001c20f7f94 CoreAutoLayout 0x00000001c20f6000 + 8084
#06 00000001a30b7264 UIKitCore 0x00000001a305c000 + 373348
#07 00000001a306c918 UIKitCore 0x00000001a305c000 + 67864
#08 00000001a24ca26c QuartzCore 0x00000001a244b000 + 520812
#09 00000001a24c9df0 QuartzCore 0x00000001a244b000 + 519664
#10 00000001a2524fd8 QuartzCore 0x00000001a244b000 + 892888
#11 00000001a2499ee0 QuartzCore 0x00000001a244b000 + 323296
#12 00000001a24e3c34 QuartzCore 0x00000001a244b000 + 625716
#13 00000001a0dfd658 CoreFoundation 0x00000001a0dd9000 + 149080
#14 00000001a0dfd414 CoreFoundation 0x00000001a0dd9000 + 148500
#15 00000001a0e2c54c CoreFoundation 0x00000001a0dd9000 + 341324
#16 00000001a0e2bcd8 CoreFoundation CFRunLoopRunSpecific + 608
#17 0000000112585fa4 Flutter (Missing) (../../flutter/fml/platform/darwin/message_loop_darwin.mm:5)
#18 0000000112585618 Flutter (Missing) (../../flutter/fml/message_loop_impl.cc:)
#19 00000001fd8b606c libsystem_pthread.dylib _pthread_start + 136
#20 00000001fd8b10d8 libsystem_pthread.dylib thread_start + 8
-------------------------------------------------------------------------------- |
This comment was marked as off-topic.
This comment was marked as off-topic.
We have the same problem and it has always existed. We are swift project + flutter plugins |
Based on the similar issue in #66647 and the analysis there, it seems this may be related to transactions happening on the background thread. I suspect this will go away when the raster and main thread are merged by default flutter/engine#53826. |
correct |
We are experiencing the same issue. This is the Sentry details. |
I'm having the same problem. |
I encountered the same problem, but I can't reproduce it. Online Crash is still there. Look at the following stack:
The following treatment failed to avoid this crash.
In fact, the problem may not be here. Judging from the logs and online stacks I typed on the engine side, there is no problem with thread scheduling (switching/merging). A is the Flutter page embedded in PlatformView. Returning to the foreground from the background or returning to A from page B will experience a rapid switch from the raster thread to the main thread; whether the problem may occur at the moment of this switch (before switching to the main thread) just happens to PlatformV Iew has an update (is this update synchronised from the dart UI thread? At least it should not be on the main thread),... This update' It occurs on the raster thread, and then to the raster runloop, that is, |
尝试修改kDefaultMergedLeaseDuration=10值,(如果给20、30或是60)灰度验证中 |
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce
The crash is occasional. I refer to issue #135501 that illustrates the crash will
be solved after 3.16.x. But I meet the occasional crash on flutter 3.22.2
Expected results
NO crash
Actual results
Crash
Code sample
No code
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
crash info
Flutter Doctor output
The text was updated successfully, but these errors were encountered: