Open vatsaltanna-simformsolutions opened 8 months ago
The new Flutter versions changed the rendering engine from Skia to Impeller on iOS. It introduced some bugs, but they seem to quickly fix all those that pop up.
Can you try running your app with Impeller disabled on the newest version 3.13.x? That should clarify if it is related to the Impeller changes.
@timbotimbo Thanks for the reply. Flutter's default rendering engine for iOS has changed to Impeller since Flutter version 3.7, and while running it in version 3.7 or 3.10, it wouldn't crash the app. This is happening only for version 3.13.
I just tried disabling Impeller in the Runner Info.plist and it still crashes.
I can now confirm new crashes with 3.13, but i'm not sure if it is the same one.
Launching the app from Xcode instantly crashes the app, while it used to work.
I got it working for now in 2 steps, but I need to look into it further.
(make sure to clean the build and run pod install again)
#podfile instructions for setting all pod deployment targets
platform :ios, '12' #at the top
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
With flutter 3.13.3 it now randomly crashes on UI interactions, with 3.13.9 it seems more stable.
<key>FLTEnableImpeller</key>
<false />
Now I don't see any crashes.
I still need to figure out more, but this might work for others too.
It still crashes on launch for me. I had to integrate your change with my Podfile because it's already being modified so I can use XCode 15.
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' xcconfig_path = config.base_configuration_reference.real_path xcconfig = File.read(xcconfig_path) xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR") File.open(xcconfig_path, "w") { |file| file << xcconfig_mod } end end end
@Velek Can you give more context?
The DT_Toolchain fix for Xcode 15 in your podfile shouldn't be needed if you update cocoapods to the latest version, they fixed that already. Can't hurt to update it, you never know if it can somehow cause another issue.
Update: I have tried to run a project with Flutter 3.16.1
and it now works fine for iOS 16
but crashes for iOS 17
.
@vatsaltanna-simformsolutions @timbotimbo the error you see from the raster crash is not the cause of the crash. I have enabled and used Impeller on iOS devices before it was made default for flutter. The easiest way to explain it is there's more to it than meets the eye. What you are is a stacktrace of the effect and not what caused the error. I am trying to replicate it and see if I can fix it.
Hi @juicycleff, I hope you are doing good. Did you get a chance to check on this issue?
@vatsaltanna-simformsolutions Can you share more info besides Flutter version? I can't reproduce this error right now and more details might help.
Just for context, my latest app update was built with Flutter 3.13.9, Unity 2022.3.21 and Xcode 15.3. It targets ios >= 12 and has impeller disabled. (Impeller is disabled simply because I never updated that yet). I have yet to see any such crashes.
The only reason i'm still on 3.13 is because of some unrelated android issues.
We are facing crashing with impeller enabled and we need to have it to be enabled. So can you please try building with impeller enabled?
Describe the bug I have an app which is working fine on flutter version 3.7.11 and 3.10.6. But when I upgraded flutter sdk to 3.13.6 or 3.13.8, it just directly crashes.
To Reproduce Steps to reproduce the behavior:
Expected behavior App shouldn't crash.
Unity (please complete the following information):
Smartphone (please complete the following information):
Additional Context App boots up fine but when it reaches Unity initialisation than it crashes.
StackTrace This is the only stacktrace, I get.