Flutter crashing, even on completely fresh build

3,780 views
Skip to first unread message

Magnus Eide-Fredriksen

unread,
Nov 15, 2018, 6:27:14 PM11/15/18
to Flutter Dev
So I am currently developing a cross-platform app using flutter, and a while ago I ran into a very weird problem. Flutter started crashing seemingly randomly, most of the times after a hot reload. It wasn't my app that was crashing, it was the framework (or dart language) itself, and with very little error messages. I am using Android Studio with the flutter plugin. This is the output of the console:
===== CRASH =====
version=2.1.0-dev.9.3.flutter-9c07fb64c4 (Wed Nov 7 06:47:47 2018 +0100) on "windows_x64"
ExceptionCode=-1073741819, ExceptionFlags=0, ExceptionAddress=00007FFBEF31D979
Dumping native stack trace for thread 3298
  [0x00007ffbef31d979] TpSetWait
  [0x00007ffbef31d979] TpSetWait
-- End of DumpStackTrace
If I run "flutter doctor" I get an output indicating that everything is fine. At first it wasn't that bad, and I could do some debugging even though I was slowed down due to having to restart my app after every crash. It started to happen more oftenly, so I figured out I would uninstall Android Studio and Flutter completely, and reinstall everything. I created a completely new flutter project on a fresh Android studio installment updated to the newest version (3.2.something). I ran the starter demo app, and just after the app was built and run, this was how my screen looked:


Flutter error.PNG

As you can see, it crashed again, even after uninstalling and reinstalling everything. 

Any ideas on why this is happening, or how to fix it? Any thoughts will be appreciated.

Todd Volkert

unread,
Nov 15, 2018, 6:41:46 PM11/15/18
to magnu...@gmail.com, flutt...@googlegroups.com
Sounds like a bug.  Can you please file a bug at https://github.com/flutter/flutter/issues/new?template=BUG.md when you see it happen again, and include an `adb bugreport` with the issue?

Thanks!
-T

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Magnus Eide-Fredriksen

unread,
Nov 16, 2018, 2:40:53 AM11/16/18
to Flutter Dev
Yes I will do that as soon as I get the opportunity.

Şükriye Ludwig

unread,
Nov 16, 2018, 6:17:49 AM11/16/18
to flutt...@googlegroups.com
Is anybody facing this ?

Syncing files to device Android SDK built for x86...
D/        ( 8999): HostConnection::get() New Host Connection established 0xa8f888c0, tid 9025
D/EGL_emulation( 8999): eglMakeCurrent: 0xa46f8a00: ver 3 0 (tinfo 0xa8f83270)
D/skia    ( 8999): Program linking failed.
E/emuglGLESv2_enc( 8999): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glLinkProgram:1310 GL error 0x501
E/eglCodecCommon( 8999): glUtilsParamSize: unknow param 0x00008741
E/emuglGLESv2_enc( 8999): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetProgramBinary:3785 GL error 0x502
F/libc    ( 8999): /buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc:
std::bad_alloc" failed
F/libc    ( 8999): Fatal signal 6 (SIGABRT), code -6 in tid 9025 (1.gpu)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.1.1/NYC/4316688:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 8999, tid: 9025, name: 1.gpu  >>> com.example.uitest <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed'
    eax 00000000  ebx 00002327  ecx 00002341  edx 00000006
    esi 982e4978  edi 982e4920
    xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
    eip b455b424  ebp 982e1f48  esp 982e1eec  flags 00000296

Am Fr., 16. Nov. 2018 um 08:40 Uhr schrieb Magnus Eide-Fredriksen <magnu...@gmail.com>:
Yes I will do that as soon as I get the opportunity.

Ümit Duran

unread,
Nov 16, 2018, 6:27:19 AM11/16/18
to Şükriye Ludwig, flutt...@googlegroups.com
@Sukriye, 

Can you try downgrade to flutter version v0.9.4 . 
If it's not work, try to this;
The crash can appear with just a restart of the app, without changing code. Completely uninstalling the App from the device and performing flutter clean usually fixes the problem.

Thanks

Marc Andrew San Buenaventura

unread,
Nov 16, 2018, 7:21:50 AM11/16/18
to Ümit Duran, Şükriye Ludwig, flutt...@googlegroups.com
Hi all,

Not sure if the issue is related.
I upgraded my flutter yesterday and since then my iOS simulator gets disconnected. I can’t start the app. 

Best regards,
Marc

Chris Bracken

unread,
Nov 16, 2018, 2:03:06 PM11/16/18
to Flutter Dev
Thanks for reporting! 

If so, this should be fixed by https://github.com/flutter/engine/pull/6867

That should now be landed on master branch.

Dan Field

unread,
Nov 16, 2018, 2:04:00 PM11/16/18
to Flutter Dev
Marc,

There was a crash specific to the iOS simulator on master yesterday that has since been fixed.  Can you try to pull down the latest master and see if it still happens?

Dan

Todd Volkert

unread,
Nov 16, 2018, 5:54:12 PM11/16/18
to marc4...@gmail.com, duran...@gmail.com, suekriy...@gmail.com, flutt...@googlegroups.com
Marc, your issue sounds unrelated but important -- can you please file an issue so we can track this too?

Thanks!
-T

Todd Volkert

unread,
Nov 16, 2018, 5:57:19 PM11/16/18
to marc4...@gmail.com, duran...@gmail.com, suekriy...@gmail.com, flutt...@googlegroups.com
Sorry - ignore that message.  It was queued and sent in error :-)

Magnus Eide-Fredriksen

unread,
Nov 18, 2018, 11:41:14 AM11/18/18
to Flutter Dev
The same issue is already reported, here's the link: https://github.com/flutter/flutter/issues/22558

Dharani tharan

unread,
Nov 26, 2018, 1:20:54 AM11/26/18
to Flutter Dev

did You use "flutter doctor" command? any issues found here?
Reply all
Reply to author
Forward
0 new messages