-
Notifications
You must be signed in to change notification settings - Fork 79
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
Example project is crashing 500ms into the blast #70
Comments
Hey! Maybe it's Impeller, the new rendering engine (if you enabled it)? Is this happening on stable as well? |
Crashes for me too, I am using:
It crashes on both iphone and android. |
I switched to the stable flutter channel and it does not crash. |
Yes I can confirm. Stable is ok. Im sure it has to do with the Impeller |
I'm finding this as well, with both the 3.4 and 3.6 beta releases of Flutter. Has anyone discovered why it's crashing on these? For example, if it's because of Impeller, then what is it that Impeller doesn't like? Assuming it's a bug with Flutter/Impeller rather than Confetti, has anyone reported this on the Flutter repository? |
It's crashing for me as well. I'm using a beta version of Flutter.
|
Same for me as the others, also on the beta channel: Segfaults apparently, here the error log:
It has to do with the particle amount thrown off. If I reduce the particels to 5, it can execute once but not the second time anymore. I suppose it has to do with the GC'ing of the particle objects on the screen? Hope this helps. |
Thanks for reporting @flawnn. Can you confirm if this also happens on a profile/release build? I tested and for me (at least on macOS build) it only happens for debug. |
Seems like it's happening in the flutter_confetti/lib/src/particle.dart Line 268 in 63009ac
What is super weird is if I modify the function by adding a print it works: /// Normalize this.
double normalize() {
final l = length;
if (l == 0.0) {
print('what is going on'); // added this print
return 0.0;
}
final d = 1.0 / l;
_v2storage[0] *= d;
_v2storage[1] *= d;
return l;
} This makes me think it's a compiler/debugger issue. Seeing as it's working on an ahead of time build. |
If you could report this to Dart it would be AMAZING. I don't have enough of an understanding to make a good report |
Still this crash this update is in latest version though it cash on iOS simulator |
Hi,
My project started to crash when blasting confetti so I made a new clean project and ran the example and it also crashes 500ms into the blast. Ive tried on an iPhone 11 and ipad 12.9-inch simulator.
This is from "flutter run -v":
[ +1 ms] DevFS: Deleting filesystem on the device
(file:///Users/------------/Library/Developer/CoreSimulator/Devices/D61AB314-2F91-4E3C-B917-0663779B904F/data/Containers/Data/Application/79CD32A1-6125-4002-9609-E0C
2D236C848/tmp/confetti_testKa9sJj/confetti_test/)
[ +254 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[ +7 ms] "flutter run" took 115 946ms.
[ +113 ms] ensureAnalyticsSent: 109ms
[ ] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 0
Im on M1 Max and flutter master channel
Any idea whats happening?
Thanks
The text was updated successfully, but these errors were encountered: