I did an update of flutter and rebuilt libflutter_engine.so with --runtime-mode=debug but running the app with the embedder is causing a segmentation fault.
5223 Segmentation fault (core dumped) ./app/app.bin
Is there any way to view a call stack or something to help with why this might be happening?
As usual all help appreciated.
Many thanks.
What were the Flutter/Flutter Engine checkout hashes? Recently Flutter and the engine switched from Dart 1 to Dart 2 which no longer supports snapshot mode, and there can be some weird behavior if the versions aren't in sync.
@awdavies the last commit hash on flutter engine master is 04f3c6557c02879191a558320ed8ec81f8b2b619
How can I tell if things are not in sync? I definitely called gclient sync after getting the latest code and doing a build, or are you talking about something else?
I've got a pull request for this in the works, but (hopefully) it's just a mismatch of what version of the engine Flutter is expecting.
Inside of flutter/bin/internal/ there is a file called engine.version that has the hash that it expects the engine to be set to.
The pull request is for updating the readme to specify the use of engine.version, specifically
the hash in my engine.version file is identical to the one above :disappointed:
Hmmmm 馃
I was surprised! I thought surely that would have been it.
So the latest build just works for you? Have you changed any of the flags to build the dart code like add the dart2 preview switch.
I haven't updated in a while. I'm checkin it out now 馃槃
Good news...? I get the same error!
Wait, I get a different error:
I get the same error as #31
very mixed emotions right now!
does that mean that you can get it to run the second time around?
The roll to 04f3c6557c02879191a558320ed8ec81f8b2b619 didn't pick up the fix for #30 / #33 so that's the crash.
You'll need to do one of:
Duplicate of #33
I will try the second option then the first one and see how I get on. Thank you.
Three cheers for option number 1... works beautifully now... thanks for all the time and effort... much appreciated.
Most helpful comment
I haven't updated in a while. I'm checkin it out now 馃槃