sdk
sdk copied to clipboard
Crash when hot reloading app
I have a Flutter app with Drift (db manager package) that spawns another isolate to handle the DB (not sure it matters just to point out the two isolates in the work here, there is something with threads in the last two lines of the log).
Since upgrading to Dart 3.5.0 (and now at 3.5.1) I have experienced this in my Android app.
Here is the crash log
Before this point, the app was working normally and I had not hot restarted the app.
E/DartVM (27358): become: Cannot forward to multiple targets
E/DartVM (27358): before: 79073a72f1
E/DartVM (27358): after: 790c3ea7e1
E/DartVM (27358): before header: 3236
E/DartVM (27358): after header: 66a236
F/libc (27358): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2b8 in tid 27713 (DartWorker), pid 27358 (soft.produtores)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/r8sxx/r8s:13/TP1A.220624.014/G780FXXSIFXG1:user/release-keys'
Revision: '5'
ABI: 'arm64'
Processor: '7'
Timestamp: 2024-08-27 10:52:45.624547720-0300
Process uptime: 433s
Cmdline: br.inf.sunsoft.produtores
pid: 27358, tid: 27713, name: DartWorker >>> br.inf.sunsoft.produtores <<<
uid: 10300
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002b8
Cause: null pointer dereference
x0 0000007ab5084090 x1 000000790c3ea7e1 x2 0000000000000004 x3 0000000000000061
x4 0000000000000021 x5 0000000000000000 x6 0000007c3c2ed000 x7 000000000838e2d8
x8 0000000000000000 x9 0000007af63622f0 x10 0000007ab5084090 x11 0000000000000001
x12 0000007b671e7150 x13 0000000000000016 x14 0000000000000000 x15 00003f2737b07912
x16 0000007af6340b50 x17 0000007c0c70e27c x18 0000007ae771e000 x19 0000007af3f42b1e
x20 0000007ab50840a0 x21 0000007ab5084090 x22 000000790c3ea7e1 x23 00000079073a72f1
x24 00000079073a72f0 x25 00000000000003e8 x26 0000007af62cb6b8 x27 0000007af62cbaf8
x28 0000007af6362000 x29 0000000000000000
lr 0000007af6091998 sp 0000007b671e8950 pc 0000007af60919a4 pst 0000000020000000
backtrace:
#00 pc 00000000023539a4 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#01 pc 0000000002353900 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#02 pc 0000000002228d48 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#03 pc 000000000222500c /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#04 pc 000000000221e74c /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#05 pc 0000000002317f4c /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#06 pc 000000000230eac4 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#07 pc 000000000230efb4 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#08 pc 000000000221c918 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#09 pc 0000000002240444 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#10 pc 00000000022408a4 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#11 pc 0000000002337378 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#12 pc 00000000023375c8 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#13 pc 00000000022c9d58 /data/app/~~UVJD4QYSmoGKiqzhGAermA==/br.inf.sunsoft.produtores-Mb4dh_JHC7EL6NOtMh1dlg==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#14 pc 00000000000ef678 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
#15 pc 000000000008c30c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
Lost connection to device.
Exited.
It's just a feeling because I have no way to prove this but I feel like before upgrading to 3.5.1 I had more of these crashes.
What more can I do to help find the cause of this problem? Logs, etc.
P.S.: Instructed to post this here by DanTup on Discord. He suspects:
a VM dev could likely map that dump back to a useful stack trace and understand what crashed.
The Flutter versions related to the Dart versions respectively: 3.24.0 and now 3.24.1.
Summary: The user is experiencing a crash in their Flutter app after upgrading to Dart 3.5.0. The crash occurs during hot reloading and involves two isolates, one for the main app and another for a database manager. The crash log indicates a null pointer dereference in the Flutter engine.
New log:
E/DartVM (15739): become: Cannot forward to multiple targets
E/DartVM (15739): before: 7909ee1a61
E/DartVM (15739): after: 79088a2ac1
E/DartVM (15739): before header: 3236
E/DartVM (15739): after header: 66a236
F/libc (15739): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2b8 in tid 17265 (DartWorker), pid 15739 (soft.produtores)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/r8sxx/r8s:13/TP1A.220624.014/G780FXXSIFXG1:user/release-keys'
Revision: '5'
ABI: 'arm64'
Processor: '6'
Timestamp: 2024-08-27 15:02:43.371921547-0300
Process uptime: 3503s
Cmdline: br.inf.sunsoft.produtores
pid: 15739, tid: 17265, name: DartWorker >>> br.inf.sunsoft.produtores <<<
uid: 10300
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002b8
Cause: null pointer dereference
x0 0000007ada07a370 x1 00000079088a2ac1 x2 0000000000000004 x3 0000000000000061
x4 0000000000000021 x5 0000000000000000 x6 0000007c3c2ed000 x7 000000000868e0b2
x8 0000000000000000 x9 0000007af28412f0 x10 0000007ada07a370 x11 0000000000000001
x12 0000007af6def150 x13 0000000000000016 x14 0000000000000000 x15 00005a707e75118e
x16 0000007af281fb50 x17 0000007c0c70e27c x18 0000007ae178a000 x19 0000007af0421b1e
x20 0000007ada07a380 x21 0000007ada07a370 x22 00000079088a2ac1 x23 0000007909ee1a61
x24 0000007909ee1a60 x25 0000000000000086 x26 0000007af27aa6b8 x27 0000007af27aaaf8
x28 0000007af2841000 x29 0000000000000000
lr 0000007af2570998 sp 0000007af6df0950 pc 0000007af25709a4 pst 0000000020000000
backtrace:
#00 pc 00000000023539a4 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#01 pc 0000000002353900 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#02 pc 0000000002228d48 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#03 pc 000000000222500c /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#04 pc 000000000221e74c /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#05 pc 0000000002317f4c /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#06 pc 000000000230eac4 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#07 pc 000000000230efb4 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#08 pc 000000000221c918 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#09 pc 0000000002240444 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#10 pc 00000000022408a4 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#11 pc 0000000002337378 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#12 pc 00000000023375c8 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#13 pc 00000000022c9d58 /data/app/~~W6jW8zu9AZiWrkzZrQtjEg==/br.inf.sunsoft.produtores-lOfnC1giQ2mFiti0q3orFQ==/lib/arm64/libflutter.so (BuildId: 605499b9c614e270fe6d996fac3ed6f3693eabfc)
#14 pc 00000000000ef678 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
#15 pc 000000000008c30c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
Lost connection to device.
Exited.
https://github.com/dart-lang/sdk/blob/b5928642ff76769b78a7280983d96a6d90d088c6/runtime/vm/heap/become.cc#L304 is triggering, something is messed up in the forwarding.
Can you provide a program that reproduces this crash? Did the change that was being hot-reloaded involve adding or removing an instance variable, or changing an enum?
adding or removing an instance variable
I'm not sure what you mean by that.
or changing an enum
Not that I can remember.
Can you provide a program that reproduces this crash?
I'm trying to create a small repro. The current app that crashes is way too big for GH and also corporate property. As soon as I get something I'll let you know.
One thing I remember is that it usually crashed when stopped at a breakpoint I would hot reload. Although I still could not reproduce it, it may be a start.
On the actual project where these crashes happen, will try to replicate this later.
Temp update:
I ran the project and opened a screen that led to an unbounded height problem. I was with "Uncaught Exceptions" checked.
Everything forward was with the breakpoint stop for uncaught exceptions.
I went to the widget where the error occurred replaced the parent (almost, there was an Expanded in the middle but anyway) Row with BoxyRow and imported import 'package:boxy/flex.dart'; (the dependency was in my project already).
Then on hot reload to see the changes it crashed.
It really seems to me the problem is when adding a new import.
Now I added import 'dart:math'; to use max and hot reloaded. Not stopped at a breakpoint this time. Same crash.
As soon as I can I'll try to create the repro, just wanted to warn here to keep everyone updated.
Yep. It really does seem like a problem with imports. Just renamed the import 'dart:math' as math; and hot reloaded and got a new crash.
I've had some difficulty in trying to create a repro. Still trying but no luck until now. Can I give you anything else to help find the problem? Can any of the vscode logs help here or something?
Removing imports on that project also crashes. Still haven't found a way to repro.
More news. I did some testing on that project and added imports on a non-flutter file and got no crashes.
I created a file with no relation to any other and only added the dependency to import 'package:flutter/foundation.dart'; for a call to debugPrint. All fine.
Then I simply opened my home page widget file and added import 'dart:math';: crash.
Restarted the debug session, renamed that import: import 'dart:math' as m;: crash.
Restarted the debug session again, and removed the line mentioned above: crash.
Edit
Even imports from inside this project to my home page file crash the VM.
New update:
- Opened the file for a second page in my app
- Opened that page in the app
- Added
late TextStyle textStyle;to that page state - Hot reload -> crash
Is this what you meant by instance variable, @rmacnak-google?
While modifying the Widget tree by adding/removing existing widgets works as expected, refactoring with Extract Widget also crashes the app.
Added late TextStyle textStyle; to that page state
Yeah, that's an instance variable.
class Example {
var instanceVariable;
static var classVariable;
}
var libraryVariable;
Unfortunately, I cannot reproduce the crash making a similar change to an example app.
The existing logging is not very useful for this particular problem. I have created a patch with some new logging.
Can you try to reproduce using this patch, either building the Flutter engine yourself or using
flutter$ git checkout f070ffc53b00b10a09eed9fd598e4fda0b24a241
flutter$ export FLUTTER_STORAGE_BASE_URL=https://storage.googleapis.com/flutter_archives_v2/monorepo_try/8737779020939998881
flutter$ flutter update-packages
project$ flutter clean
project$ flutter run
?
Updating packages now. Will do. Just one thing I noticed. This commit is called Get reasonable output when a stream test fails. I have a stream coming from the second isolate to my main isolate. My home page has two streams for tables in my DB (from Drift-DB to Flutter), not sure if it is relevant or not for your testing but I guess so since the crash mentions a thread. In any case, I'll test it as soon as I can and give feedback here.
One suggestion julemand101 gave me in Discord was to copy this project and tear it down trying to remove everything else and to keep just the crash. I'll try and do that while you take a look at the new crash message.
Edit
Something else I'll try to be sure of is running the project on a Windows machine. Currently, the project is focused on Android so I only debug there. We have not yet tested the third-party packages' compatibility with any other platforms but if I remember correctly Windows is fine. So we can be sure this is reproducible in more than one specific platform.
I added a method to my Home Page state. Cleaned the output for the debug console. Waited 10 seconds to see if nothing was going to show up there and hot reloaded. For me seems from all of the above that any changes to classes in a library used by flutter to display a widget are causing this (not sure why). Like adding new classes (import or writing a new one), updating (adding/removing things from inside) or removing them (deleting imports).
Output:
E/DartVM (14774): become: Cannot forward to multiple targets
E/DartVM (14774): before: 6f0a3bfea1
E/DartVM (14774): after: 6f093b3d41
E/DartVM (14774): before header: 3236
E/DartVM (14774): after header: e69236
F/libc (14774): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2c0 in tid 14976 (1.ui), pid 14774 (soft.produtores)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/dm3qxxx/dm3q:14/UP1A.231005.007/S918BXXS6CXFC:user/release-keys'
Revision: '13'
ABI: 'arm64'
Processor: '7'
Timestamp: 2024-09-03 22:26:13.872408841-0300
Process uptime: 121s
Cmdline: br.inf.sunsoft.produtores
pid: 14774, tid: 14976, name: 1.ui >>> br.inf.sunsoft.produtores <<<
uid: 10883
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002c0
Cause: null pointer dereference
x0 b40000707b2d9b90 x1 0000006f093b3d41 x2 0000000000000004 x3 0000000000000061
x4 0000000000000021 x5 000000000acf6f02 x6 0000000000000010 x7 7f7f7f7f7f7f7f7f
x8 0000000000000000 x9 00000070ab35f640 x10 b40000707b2d9b90 x11 0000000000000001
x12 00000070a8cfae10 x13 0000000000000000 x14 00000070a8cfaec0 x15 000006fecdf0051e
x16 00000070ab33dfd8 x17 000000726635dd58 x18 00000070a7f94000 x19 00000070a8f06636
x20 b40000707b2d9ba0 x21 b40000707b2d9b90 x22 0000006f093b3d41 x23 0000006f0a3bfea1
x24 0000006f0a3bfea0 x25 000000000000007a x26 00000070ab2ca818 x27 0000000000000001
x28 00000070ab35f000 x29 0000000000000000
lr 00000070ab07e0d4 sp 00000070a8cfc610 pc 00000070ab07e0e0 pst 0000000020001000
26 total frames
backtrace:
#00 pc 000000000237c0e0 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#01 pc 000000000237c03c /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#02 pc 000000000224f5f0 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#03 pc 000000000224b8cc /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#04 pc 0000000002244d00 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#05 pc 000000000233fb94 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#06 pc 0000000002336480 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#07 pc 0000000002336910 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#08 pc 0000000002242e6c /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#09 pc 0000000002266cd8 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#10 pc 0000000002266e3c /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#11 pc 0000000002556f60 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#12 pc 00000000021850e0 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#13 pc 0000000002185280 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#14 pc 00000000021d38c0 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#15 pc 0000000001d36cd4 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#16 pc 0000000001d3c780 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#17 pc 0000000000018b70 /system/lib64/libutils.so (android::Looper::pollInner(int)+1252) (BuildId: d0c24e3b7b6c7152eb82e77a5d2271e6)
#18 pc 0000000000018628 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+124) (BuildId: d0c24e3b7b6c7152eb82e77a5d2271e6)
#19 pc 000000000001a184 /system/lib64/libandroid.so (ALooper_pollOnce+104) (BuildId: dbf30e0b6c5eecb1fe92ea8735ce42b5)
#20 pc 0000000001d3c708 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#21 pc 0000000001d36c20 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#22 pc 0000000001d3a9ec /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#23 pc 0000000001d3a884 /data/app/~~rkMSK5eCyK5y-1l0tS1AlQ==/br.inf.sunsoft.produtores-DUuZT4IxD5O6Z-81un6Dvg==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
#24 pc 00000000000fd0f4 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 02a91a85343debb2911714273ff2b670)
#25 pc 0000000000096a04 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 02a91a85343debb2911714273ff2b670)
Lost connection to device.
Exited.
On Windows I got the following for adding an import with `--verbose`
[+5330 ms] Skipping target: gen_localizations
[ +12 ms] Skipping target: gen_dart_plugin_registrant
[ ] Skipping target: _composite
[ ] complete
[ +818 ms] Scanned through 2478 files in 795ms
[ +2 ms] Compiling dart to kernel with 1 updated files
[ ] Processing bundle.
[ ] <- recompile package:produtores/main.dart fc79f6d0-8392-4ca1-9a42-92684f34c280
[ ] package:produtores/src/home.dart
[ ] <- fc79f6d0-8392-4ca1-9a42-92684f34c280
[ +9 ms] Bundle processing done.
[ +202 ms] Updating files.
[ ] Pending asset builds completed. Writing dirty entries.
[ +8 ms] DevFS: Sync finished
[ ] Synced 0.1MB.
[ +507 ms] become: Cannot forward to multiple targets
[ ] before: 197767420f1
[ ] after: 197697133d1
[ ] before header: 3336
[ ] after header: e69336
[ +84 ms] Service protocol connection closed.
[ ] Lost connection to device.
[ +1 ms] DevFS: Deleting filesystem on the device (file:///C:/Users/FELIP_~1/AppData/Local/Temp/produtoresef0d6b8c/produtores/)
[ +4 ms] DevFS: Deleted filesystem on the device (file:///C:/Users/FELIP_~1/AppData/Local/Temp/produtoresef0d6b8c/produtores/)
[ +15 ms] "flutter run" took 96.132ms.
[ +7 ms] ensureAnalyticsSent: 0ms
[ ] Running 2 shutdown hooks
[ +4 ms] Shutdown hooks complete
[ ] exiting with code 0
Exited.
On Android I get a lot more things - I'm not sure they're relevant - doing the same thing
[ +371 ms] E/DartVM (15221): become: Cannot forward to multiple targets
[ ] E/DartVM (15221): before: 6f09a526f1
[ ] E/DartVM (15221): after: 6f09e1ebb1
[ ] E/DartVM (15221): before header: 3236
[ ] E/DartVM (15221): after header: 67c236
[ +1 ms] F/libc (15221): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2c0 in tid 15814 (DartWorker), pid 15221 (soft.produtores)
[ +881 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ +49 ms] Build fingerprint: 'samsung/dm3qxxx/dm3q:14/UP1A.231005.007/S918BXXS6CXFC:user/release-keys'
[ +18 ms] Revision: '13'
[ ] ABI: 'arm64'
[ ] Processor: '7'
[ ] Timestamp: 2024-09-03 23:00:25.787141809-0300
[ ] Process uptime: 86s
[ ] Cmdline: br.inf.sunsoft.produtores
[ ] pid: 15221, tid: 15814, name: DartWorker >>> br.inf.sunsoft.produtores <<<
[ ] uid: 10883
[ ] tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
[ ] pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
[ ] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000000002c0
[ ] Cause: null pointer dereference
[ ] x0 b400007080529490 x1 0000006f09e1ebb1 x2 0000000000000004 x3 0000000000000061
[ ] x4 0000000000000021 x5 000000000adec122 x6 0000000000000010 x7 7f7f7f7f7f7f7f7f
[ ] x8 0000000000000000 x9 00000070ae1bf640 x10 b400007080529490 x11 0000000000000001
[ ] x12 0000007199d6f180 x13 0000000000000000 x14 0000007199d6f230 x15 00000707fa35be3b
[ ] x16 00000070ae19dfd8 x17 000000726635dd58 x18 0000007070912000 x19 00000070abd66636
[ ] x20 b4000070805294a0 x21 b400007080529490 x22 0000006f09e1ebb1 x23 0000006f09a526f1
[ ] x24 0000006f09a526f0 x25 000000000000007a x26 00000070ae12a818 x27 0000000000000001
[ ] x28 00000070ae1bf000 x29 0000000000000000
[ ] lr 00000070adede0d4 sp 0000007199d70980 pc 00000070adede0e0 pst 0000000020001000
[ ] 16 total frames
[ ] backtrace:
[ ] #00 pc 000000000237c0e0 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #01 pc 000000000237c03c /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #02 pc 000000000224f5f0 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #03 pc 000000000224b8cc /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #04 pc 0000000002244d00 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #05 pc 000000000233fb94 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #06 pc 0000000002336480 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #07 pc 0000000002336910 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #08 pc 0000000002242e6c /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #09 pc 0000000002266cd8 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #10 pc 0000000002267138 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ +3 ms] #11 pc 000000000235f674 /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #12 pc 000000000235f86c /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #13 pc 00000000022f122c /data/app/~~gdCmVCgHA7BBohhsoHzjfA==/br.inf.sunsoft.produtores-Uc2jpfg4OvOc6bl1-_ZFdQ==/lib/arm64/libflutter.so (BuildId: 911fd04dbef2191ba2894e3b725d6e88db94e523)
[ ] #14 pc 00000000000fd0f4 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 02a91a85343debb2911714273ff2b670)
[ ] #15 pc 0000000000096a04 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 02a91a85343debb2911714273ff2b670)
[ +26 ms] Service protocol connection closed.
[ ] Lost connection to device.
[ +1 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/br.inf.sunsoft.produtores/code_cache/produtoresPKMSYA/produtores/)
[ ] DevFS: Deleted filesystem on the device (file:///data/user/0/br.inf.sunsoft.produtores/code_cache/produtoresPKMSYA/produtores/)
[ +15 ms] "flutter run" took 199.640ms.
[ +5 ms] ensureAnalyticsSent: 0ms
[ ] Running 2 shutdown hooks
[ +4 ms] Shutdown hooks complete
[ +1 ms] exiting with code 0
Exited.
If I can give you anything in the meantime please let me know. I'll try and dismantle the project clone now to see if I can rule out what is doing this.
I have also been seeing these same crashes:
become: Cannot forward to multiple targets
before: 30348d1d1
after: 3041a3241
before header: 8554f2200003336
after header: 8554f22008e3336
In my case, I am developing on MacOS, making debug builds for Mac. Not using drift. I also think that has only been happening recently - and not every time I hot reload, just sometimes.
Flutter doctor
[✓] Flutter (Channel stable, 3.24.2, on macOS 14.6.1 23G93 darwin-arm64, locale en-GB)
• Flutter version 3.24.2 on channel stable at /Users/v21/downpour/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4cf269e36d (2 weeks ago), 2024-09-03 14:30:00 -0700
• Engine revision a6bd3f1de1
• Dart version 3.5.2
• DevTools version 2.37.2
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/v21/android-sdk-macosx
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /Users/v21/android-sdk-macosx
• ANDROID_SDK_ROOT = /Users/v21/android-sdk-macosx
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
[✓] VS Code (version 1.93.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.96.0
[✓] Connected device (4 available)
• eve (mobile) • 00008110-0009198C3E53801E • ios • iOS 17.6.1 21G93
• macOS (desktop) • macos • darwin-arm64 • macOS 14.6.1 23G93 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6.1 23G93 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.138
[✓] Network resources
• All expected network resources are available.
@FMorschel @v21 Can you try to reproduce using Flutter's main branch? Additional debugging information starting with "become conflict" should be printed if the crash occurs there.
I can't seem to make it run. I upgraded the version to master using puro, same as last time:
Unhandled exception:
Unexpected Kernel SDK Version de4a3d6367 (expected 089ef90b66).
#0 BinaryBuilder._readAndVerifySdkHash (package:kernel/binary/ast_from_binary.dart:657)
#1 BinaryBuilder._verifyComponentInitialBytes (package:kernel/binary/ast_from_binary.dart:874)
#2 BinaryBuilder.readComponent.<anonymous closure> (package:kernel/binary/ast_from_binary.dart:697)
#3 Timeline.timeSync (dart:developer/timeline.dart:173)
#4 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:695)
#5 _InitializationFromSdkSummary._prepareSummary (package:front_end/src/base/incremental_compiler.dart:2473)
#6 _InitializationFromUri.initialize (package:front_end/src/base/incremental_compiler.dart:2553)
<asynchronous suspension>
#7 IncrementalCompiler._ensurePlatformAndInitialize (package:front_end/src/base/incremental_compiler.dart:1401)
<asynchronous suspension>
#8 IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/base/incremental_compiler.dart:292)
<asynchronous suspension>
#9 CompilerContext.clear (package:front_end/src/base/compiler_context.dart:79)
<asynchronous suspension>
#10 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:77)
<asynchronous suspension>
#11 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:639)
<asynchronous suspension>
#12 listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1392)
<asynchronous suspension>
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Edit
From yesterday's commit 708f53c4e60f9c98d2bea736d45c5ebbd31d2c0a I was able to run, will post a new comment here.
Here is the log from removing a method from a class (when adding I saw the same message and adding a new import as well, so they all might be just the same thing):
[ +500 ms] E/DartVM (25729): become conflict:
[ ] E/DartVM (25729): whence1 = enum forwarding
[ ] E/DartVM (25729): whence2 = enum forwarding
[ +3 ms] E/DartVM (25729): before1 cid = 3732
[ ] E/DartVM (25729): after1 cid = 3732
[ +4 ms] E/DartVM (25729): before2 cid = 3732
[ ] E/DartVM (25729): after2 cid = 3732
[ ] E/DartVM (25729): before1 size = 32
[ ] E/DartVM (25729): after1 size = 32
[ +2 ms] E/DartVM (25729): before2 size = 32
[ ] E/DartVM (25729): after2 size = 32
[ ] E/DartVM (25729): before1 cls = Pages
[ ] E/DartVM (25729): after1 cls = Pages
[ ] E/DartVM (25729): before2 cls = Pages
[ ] E/DartVM (25729): after2 cls = Pages
[ ] E/Dart (25729): ../../../flutter/third_party/dart/runtime/vm/heap/become.cc: 345: error: 1 become conflicts
[ ] E/DartVM (25729): version=3.6.0-260.0.dev (dev) (Tue Sep 17 13:07:00 2024 -0700) on "android_arm64"
[ ] E/DartVM (25729): pid=25729, thread=514619649200, isolate_group=main(0x77b6ead800), isolate=(nil)(0x0)
[ ] E/DartVM (25729): os=android, arch=arm64, comp=yes, sim=no
[ ] E/DartVM (25729): isolate_instructions=77d50736c0, vm_instructions=77d50736c0
[ ] E/DartVM (25729): fp=77d1b894e0, sp=77d1b883a0, pc=77d4e82fd4
[ ] E/DartVM (25729): pc 0x00000077d4e82fd4 fp 0x00000077d1b894e0 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so+0x22f3fd4
[ ] E/DartVM (25729): -- End of DumpStackTrace
[ ] F/libc (25729): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 25780 (1.ui), pid 25729 (soft.produtores)
[ +611 ms] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[ +2 ms] Build fingerprint: 'samsung/r8sxx/r8s:13/TP1A.220624.014/G780FXXSIFXG1:user/release-keys'
[ ] Revision: '5'
[ ] ABI: 'arm64'
[ ] Processor: '6'
[ ] Timestamp: 2024-09-18 15:29:01.251520153-0300
[ ] Process uptime: 30s
[ ] Cmdline: br.inf.sunsoft.produtores
[ ] pid: 25729, tid: 25780, name: 1.ui >>> br.inf.sunsoft.produtores <<<
[ +2 ms] uid: 10302
[ ] signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[ ] Abort message: '../../../flutter/third_party/dart/runtime/vm/heap/become.cc: 345: error: 1 become conflicts'
[ ] x0 0000000000000000 x1 00000000000064b4 x2 0000000000000006 x3 00000077d1b89460
[ ] x4 00000079035ed000 x5 00000079035ed000 x6 00000079035ed000 x7 0000000004f66e16
[ ] x8 00000000000000f0 x9 00000078d8c34b70 x10 0000000000000001 x11 00000078d8ca6004
[ +2 ms] x12 00000077d1b87c10 x13 000000000000001a x14 0000000000000000 x15 00004b6923618e7e
[ ] x16 00000078d8d0da48 x17 00000078d8ce7f30 x18 00000077d0bba000 x19 0000000000006481
[ ] x20 00000000000064b4 x21 00000000ffffffff x22 00000076083af890 x23 000000760894d270
[ ] x24 0000000000000001 x25 0000000000016a95 x26 0000000000000082 x27 00000076083af891
[ ] x28 000000760894d271 x29 00000077d1b894e0
[ ] lr 00000078d8c97bbc sp 00000077d1b89440 pc 00000078d8c97be8 pst 0000000000000000
[ ] backtrace:
[ ] #00 pc 000000000008abe8 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
[ ] #01 pc 00000000021e4964 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #02 pc 000000000237cc08 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #03 pc 000000000224eb98 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #04 pc 000000000224ae60 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #05 pc 0000000002244298 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ +8 ms] #06 pc 0000000002340028 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #07 pc 0000000002336914 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #08 pc 0000000002336da4 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #09 pc 0000000002242480 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #10 pc 0000000002266d88 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #11 pc 0000000002266eec /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #12 pc 0000000002558180 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #13 pc 00000000021847d0 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #14 pc 0000000002184970 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #15 pc 00000000021d2db4 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #16 pc 0000000001d35470 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #17 pc 0000000001d3af1c /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #18 pc 00000000000177ac /system/lib64/libutils.so (android::Looper::pollInner(int)+1060) (BuildId: a5ca39eaeeeb017be4afa358811e69fb)
[ ] #19 pc 0000000000017328 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: a5ca39eaeeeb017be4afa358811e69fb)
[ ] #20 pc 000000000001813c /system/lib64/libandroid.so (ALooper_pollOnce+100) (BuildId: 7d949a1ebde9406663b55c9c5ce3d91b)
[ ] #21 pc 0000000001d3aea4 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #22 pc 0000000001d353bc /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #23 pc 0000000001d39188 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #24 pc 0000000001d39020 /data/app/~~zUVwRN4JAXGvfUK8xW3OdQ==/br.inf.sunsoft.produtores-VnARl5dTBzaTZ6DtfpQzGQ==/lib/arm64/libflutter.so (BuildId: b3ad5e92a63b8b1ffa9987ce9ec316e5851d99c6)
[ ] #25 pc 00000000000ef678 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
[ ] #26 pc 000000000008c30c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 7dfe979487fb5d42e831426e6a4a407e)
[ +115 ms] Performing hot reload... (completed in 2.383ms)
[ +1 ms] Application finished.
[ +4 ms] hot reload failed to complete
[ +1 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 TerminalHandler._commonTerminalInputHandler (package:flutter_tools/src/resident_runner.dart:1733:11)
<asynchronous suspension>
#2 TerminalHandler.processTerminalInput (package:flutter_tools/src/resident_runner.dart:1784:7)
<asynchronous suspension>
[ +4 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/br.inf.sunsoft.produtores/code_cache/produtoresGLPMOC/produtores/)
[ ] ensureAnalyticsSent: 2ms
[ ] Running 2 shutdown hooks
[ +2 ms] Shutdown hooks complete
[ +1 ms] DevFS: Deleted filesystem on the device (file:///data/user/0/br.inf.sunsoft.produtores/code_cache/produtoresGLPMOC/produtores/)
[ +5 ms] "flutter run" took 199.466ms.
[ +2 ms] exiting with code 1
Hm, this suggests the canonical table for an enum somehow ended up with a duplicate entry.
This specific enum is not being used almost anywhere. It is used solely to redirect page names to page widgets.
We are also facing the same issue with versions above Dart 3.5 / Flutter 3.24.0
It happens every time time we add/update a const value (also with enum)
Note that DateFormatType and EmailSwipeActionGroup referenced in the traces are both enums.
I don't know if that can help but those enums are both used in several switch statements that are exhaustive.
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 12903
after1 cid = 12903
before2 cid = 12903
after2 cid = 12903
before1 size = 48
after1 size = 48
before2 size = 48
after2 size = 48
before1 cls = DateFormatType
after1 cls = DateFormatType
before2 cls = DateFormatType
after2 cls = DateFormatType
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 12903
after1 cid = 12903
before2 cid = 12903
after2 cid = 12903
before1 size = 48
after1 size = 48
before2 size = 48
after2 size = 48
before1 cls = DateFormatType
after1 cls = DateFormatType
before2 cls = DateFormatType
after2 cls = DateFormatType
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 12903
after1 cid = 12903
before2 cid = 12903
after2 cid = 12903
before1 size = 48
after1 size = 48
before2 size = 48
after2 size = 48
before1 cls = DateFormatType
after1 cls = DateFormatType
before2 cls = DateFormatType
after2 cls = DateFormatType
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
become conflict:
whence1 = enum forwarding
whence2 = enum forwarding
before1 cid = 14348
after1 cid = 14348
before2 cid = 14348
after2 cid = 14348
before1 size = 64
after1 size = 64
before2 size = 64
after2 size = 64
before1 cls = EmailSwipeActionGroup
after1 cls = EmailSwipeActionGroup
before2 cls = EmailSwipeActionGroup
after2 cls = EmailSwipeActionGroup
version=3.6.0-266.0.dev (dev) (Wed Sep 18 17:03:10 2024 -0700) on "ios_arm64"
pid=2105, thread=66331, isolate_group=main(0x102842a00), isolate=(nil)(0x0)
os=ios, arch=arm64, comp=no, sim=no
isolate_instructions=105a53d60, vm_instructions=105a53d60
fp=334911bd0, sp=334911ba0, pc=105850ad4
pc 0x0000000105850ad4 fp 0x0000000334911bd0 dart::Profiler::DumpStackTrace(void*)+0x68
pc 0x0000000105739ce8 fp 0x0000000334911bf0 dart::Assert::Fail(char const*, ...) const+0x28
pc 0x00000001058dbb44 fp 0x0000000334911cf0 dart::Become::Forward()+0x630
pc 0x00000001057a8920 fp 0x0000000334911d80 dart::ProgramReloadContext::CommitAfterInstanceMorphing()+0x80
pc 0x00000001057a6b50 fp 0x0000000334911df0 dart::ProgramReloadContext::ReloadPhase4CommitFinish()+0x18
pc 0x00000001057a5384 fp 0x00000003349120b0 dart::IsolateGroupReloadContext::Reload(bool, char const*, char const*, unsigned char const*, long)+0x10d0
pc 0x000000010579e6bc fp 0x0000000334912180 dart::IsolateGroup::ReloadSources(dart::JSONStream*, bool, char const*, char const*, bool)+0x1e8
pc 0x000000010589e5bc fp 0x00000003349121c0 dart::ReloadSources(dart::Thread*, dart::JSONStream*)+0x144
pc 0x0000000105895744 fp 0x00000003349127e0 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)+0x358
pc 0x0000000105895bec fp 0x0000000334912800 dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&)+0x18
pc 0x000000010579c91c fp 0x0000000334912db0 dart::IsolateMessageHandler::HandleMessage(std::_fl::unique_ptr<dart::Message, std::_fl::default_delete<dart::Message>>)+0x1d8
pc 0x00000001057c0ec8 fp 0x0000000334912e30 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x134
pc 0x00000001057c132c fp 0x0000000334912e90 dart::MessageHandler::TaskCallback()+0x200
pc 0x00000001058bcfa4 fp 0x0000000334912f20 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x10c
pc 0x00000001058bd1ec fp 0x0000000334912f50 dart::ThreadPool::Worker::Main(unsigned long)+0x74
pc 0x000000010584ded4 fp 0x0000000334912fc0 dart::ThreadStart(void*)+0xcc
pc 0x0000000101813414 fp 0x0000000334912fe0 _pthread_start+0x68
-- End of DumpStackTrace
Lost connection to device.
Exited.
Could this maybe be related to https://github.com/dart-lang/sdk/issues/27804? I'm not sure.
Edit
Noticed this issue is really old, sorry, it's probably noting to do with this.
I managed to produce an example with an "enum forwarding" failure, and made a change in the VM that should prevent it. This should be on Flutter's main branch now. I think it fixes the kind of change that @ndelanou was reloading, but I'm not sure whether @FMorschel's changes were triggering the same issue or something else.
Could this maybe be related to https://github.com/dart-lang/sdk/issues/27804?
No, 27804 is about the semantics of hot reload. Since hot reload does not receive structured edits, renames or moves between libraries are treated like unrelated additions and removals. 56583 is instead some implementation bug.
@rmacnak-google I've tested my project with the latest master and got no more crashes. I still can try and reduce this project to a minimal repro if you'd like, but it seems the problem is gone!
Closing based on @FMorschel
Nice find @rmacnak-google