Skip to content

Compiler exception with improperly placed await keyword #37108

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

Closed
kika opened this issue May 29, 2019 · 3 comments
Closed

Compiler exception with improperly placed await keyword #37108

kika opened this issue May 29, 2019 · 3 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@kika
Copy link

kika commented May 29, 2019

I've copypasted a code with await into the function which didn't have async keyword on it. (it was a build() function in Flutter widget). The await call was to showDialog(...).

Dart VM version: 2.3.2-dev.0.0.flutter-e3edfd36b2 (Wed May 22 16:01:07 2019 +0000) on "macos_x64"

MacOS High Sierra

Stack trace
Performing hot reload...                                               ⣟E/Dart    (22106): ../../third_party/dart/runtime/vm/compiler/frontend/kernel_translation_helper.cc: 1869: error: Unexpected tag 51 (AwaitExpression) in ?, expected expression
E/DartVM  (22106): version=2.3.2-dev.0.0.flutter-e3edfd36b2 (Wed May 22 16:01:07 2019 +0000) on "android_ia32"
E/DartVM  (22106): thread=22153, isolate=main(0x95438600)
E/DartVM  (22106):   pc 0xa10f0cce fp 0x9ff570f8 libflutter.so+0x1197cce
E/DartVM  (22106):   pc 0xa13b24c1 fp 0x9ff57118 libflutter.so+0x14594c1
E/DartVM  (22106):   pc 0xa0f81b27 fp 0x9ff57148 libflutter.so+0x1028b27
E/DartVM  (22106):   pc 0xa129448f fp 0x9ff57198 libflutter.so+0x133b48f
E/DartVM  (22106):   pc 0xa1279215 fp 0x9ff571e8 libflutter.so+0x1320215
E/DartVM  (22106):   pc 0xa1279939 fp 0x9ff57238 libflutter.so+0x1320939
E/DartVM  (22106):   pc 0xa1279728 fp 0x9ff57288 libflutter.so+0x1320728
E/DartVM  (22106):   pc 0xa12798f0 fp 0x9ff572d8 libflutter.so+0x13208f0
E/DartVM  (22106):   pc 0xa1279728 fp 0x9ff57328 libflutter.so+0x1320728
E/DartVM  (22106):   pc 0xa12787a0 fp 0x9ff57378 libflutter.so+0x131f7a0
E/DartVM  (22106):   pc 0xa1278e93 fp 0x9ff573c8 libflutter.so+0x131fe93
E/DartVM  (22106):   pc 0xa1278a1f fp 0x9ff57418 libflutter.so+0x131fa1f
E/DartVM  (22106):   pc 0xa1278ac4 fp 0x9ff57468 libflutter.so+0x131fac4
E/DartVM  (22106):   pc 0xa1279939 fp 0x9ff574b8 libflutter.so+0x1320939
E/DartVM  (22106):   pc 0xa1279728 fp 0x9ff57508 libflutter.so+0x1320728
E/DartVM  (22106):   pc 0xa12787a0 fp 0x9ff57558 libflutter.so+0x131f7a0
E/DartVM  (22106):   pc 0xa127a31e fp 0x9ff575b8 libflutter.so+0x132131e
E/DartVM  (22106):   pc 0xa127abe5 fp 0x9ff57668 libflutter.so+0x1321be5
E/DartVM  (22106):   pc 0xa10989e1 fp 0x9ff57688 libflutter.so+0x113f9e1
E/DartVM  (22106):   pc 0xa103b6a0 fp 0x9ff57788 libflutter.so+0x10e26a0
E/DartVM  (22106):   pc 0xa1039243 fp 0x9ff577b8 libflutter.so+0x10e0243
E/DartVM  (22106):   pc 0xa1037d2c fp 0x9ff578b8 libflutter.so+0x10ded2c
E/DartVM  (22106):   pc 0xa102f53f fp 0x9ff57918 libflutter.so+0x10d653f
E/DartVM  (22106):   pc 0xa1155bc6 fp 0x9ff57968 libflutter.so+0x11fcbc6
E/DartVM  (22106):   pc 0xa114bce4 fp 0x9ff58088 libflutter.so+0x11f2ce4
E/DartVM  (22106):   pc 0xa114c332 fp 0x9ff580c8 libflutter.so+0x11f3332
E/DartVM  (22106):   pc 0xa102c4c4 fp 0x9ff58838 libflutter.so+0x10d34c4
E/DartVM  (22106):   pc 0xa10593e5 fp 0x9ff58898 libflutter.so+0x11003e5
E/DartVM  (22106):   pc 0xa10595a9 fp 0x9ff588d8 libflutter.so+0x11005a9
E/DartVM  (22106):   pc 0xa1398d5c fp 0x9ff58948 libflutter.so+0x143fd5c
E/DartVM  (22106):   pc 0xa0ed172d fp 0x9ff58998 libflutter.so+0xf7872d
E/DartVM  (22106):   pc 0xa0ed199b fp 0x9ff589b8 libflutter.so+0xf7899b
E/DartVM  (22106):   pc 0xa0bc598c fp 0x9ff589d8 libflutter.so+0xc6c98c
E/DartVM  (22106):   pc 0xa0bc585d fp 0x9ff58a38 libflutter.so+0xc6c85d
E/DartVM  (22106):   pc 0xa0bc567b fp 0x9ff58a68 libflutter.so+0xc6c67b
E/DartVM  (22106):   pc 0xa0bca779 fp 0x9ff58a88 libflutter.so+0xc71779
E/DartVM  (22106):   pc 0xa0bca7a7 fp 0x9ff58aa8 libflutter.so+0xc717a7
E/DartVM  (22106): -- End of DumpStackTrace
F/libc    (22106): Fatal signal 6 (SIGABRT), code -6 in tid 22153 (Thread-618)
       ⣯*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_google_phone_x86/generic_x86:5.1.1/LMY48X/5056529:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
pid: 22106, tid: 22153, name: Thread-618  >>> app.cuida.cuida <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    eax 00000000  ebx 0000565a  ecx 00005689  edx 00000006
    esi 9ff58db8  edi 0000000b
    xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000008f  xss 0000007b
    eip b74f40e6  ebp 00005689  esp 9ff57090  flags 00200282
backtrace:
    #00 pc 000750e6  /system/lib/libc.so (tgkill+22)
    #01 pc 0002217b  /system/lib/libc.so (pthread_kill+155)
    #02 pc 000239f4  /system/lib/libc.so (raise+36)
    #03 pc 0001bdf4  /system/lib/libc.so (abort+84)
    #04 pc 003d7b33  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #05 pc 006ea48e  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #06 pc 006cf214  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #07 pc 006cf938  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #08 pc 006cf727  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #09 pc 006cf8ef  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #10 pc 006cf727  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #11 pc 006ce79f  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #12 pc 006cee92  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #13 pc 006cea1e  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #14 pc 006ceac3  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #15 pc 006cf938  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #16 pc 006cf727  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #17 pc 006ce79f  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #18 pc 006d031d  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #19 pc 006d0be4  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #20 pc 004ee9e0  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #21 pc 0049169f  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #22 pc 0048f242  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #23 pc 0048dd2b  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #24 pc 0048553e  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #25 pc 005abbc5  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #26 pc 005a1ce3  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #27 pc 005a2331  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #28 pc 004824c3  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #29 pc 004af3e4  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #30 pc 004af5a8  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #31 pc 007eed5b  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #32 pc 0032772c  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #33 pc 0032799a  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #34 pc 0001b98b  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #35 pc 0001b85c  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #36 pc 0001b67a  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #37 pc 00020778  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #38 pc 000207a6  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #39 pc 000198b0  /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+32)
    #40 pc 0001ba42  /system/lib/libutils.so (android::Looper::pollInner(int)+690)
    #41 pc 0001bc57  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+55)
    #42 pc 0000ba7c  /system/lib/libandroid.so (ALooper_pollOnce+92)
    #43 pc 000206b5  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #44 pc 0001b5fd  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #45 pc 0001b0a2  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #46 pc 0001ddcf  /data/app/app.cuida.cuida-2/lib/x86/libflutter.so
    #47 pc 000211a8  /system/lib/libc.so (__pthread_start(void*)+56)
    #48 pc 0001c529  /system/lib/libc.so (__start_thread+25)
    #49 pc 000130f6  /system/lib/libc.so (__bionic_clone+70)
       ⣷Tombstone written to: /data/tombstones/tombstone_00
Lost connection to device.

That was flutter run running on Android emulator.

At the same time Runner running on the iOS simulator failed with:

Stack trace
version=2.3.2-dev.0.0.flutter-e3edfd36b2 (Wed May 22 16:01:07 2019 +0000) on "ios_x64"
thread=82439, isolate=main(0x7fea5b57f000)
pc 0x000000010653de04 fp 0x000070000c13cf30 dart::Profiler::DumpStackTrace(void*)
pc 0x00000001063c7e52 fp 0x000070000c13d010 dart::Assert::Fail(char const*, ...)
pc 0x00000001066fd303 fp 0x000070000c13d040 dart::kernel::KernelReaderHelper::ReportUnexpectedTag(char const*, dart::kernel::Tag)
pc 0x00000001066e2744 fp 0x000070000c13d080 dart::kernel::KernelFingerprintHelper::CalculateExpressionFingerprint()
pc 0x00000001066e2e68 fp 0x000070000c13d0d0 dart::kernel::KernelFingerprintHelper::CalculateStatementFingerprint()
pc 0x00000001066e2c5f fp 0x000070000c13d120 dart::kernel::KernelFingerprintHelper::CalculateStatementFingerprint()
pc 0x00000001066e2e68 fp 0x000070000c13d170 dart::kernel::KernelFingerprintHelper::CalculateStatementFingerprint()
pc 0x00000001066e1d6c fp 0x000070000c13d1c0 dart::kernel::KernelFingerprintHelper::CalculateFunctionNodeFingerprint()
pc 0x00000001066e2437 fp 0x000070000c13d200 dart::kernel::KernelFingerprintHelper::CalculateExpressionFingerprint()
pc 0x00000001066e2018 fp 0x000070000c13d230 dart::kernel::KernelFingerprintHelper::CalculateArgumentsFingerprint()
pc 0x00000001066e20eb fp 0x000070000c13d270 dart::kernel::KernelFingerprintHelper::CalculateExpressionFingerprint()
pc 0x00000001066e2e68 fp 0x000070000c13d2c0 dart::kernel::KernelFingerprintHelper::CalculateStatementFingerprint()
pc 0x00000001066e1d6c fp 0x000070000c13d310 dart::kernel::KernelFingerprintHelper::CalculateFunctionNodeFingerprint()
pc 0x00000001066e365e fp 0x000070000c13d380 dart::kernel::KernelFingerprintHelper::CalculateFunctionFingerprint()
pc 0x00000001066e3eb3 fp 0x000070000c13d490 dart::kernel::KernelSourceFingerprintHelper::CalculateFunctionFingerprint(dart::Function const&)
pc 0x0000000106490cd7 fp 0x000070000c13d610 dart::IsolateReloadContext::Commit()
pc 0x000000010648ea9e fp 0x000070000c13d630 dart::IsolateReloadContext::FinalizeLoading()
pc 0x000000010648d542 fp 0x000070000c13d790 dart::IsolateReloadContext::Reload(bool, char const*, char const*, unsigned char const*, long)
pc 0x0000000106484fa6 fp 0x000070000c13d7f0 dart::Isolate::ReloadSources(dart::JSONStream*, bool, char const*, char const*, bool)
pc 0x00000001065a4798 fp 0x000070000c13d830 dart::ReloadSources(dart::Thread*, dart::JSONStream*)
pc 0x000000010659adbb fp 0x000070000c13e1f0 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)
pc 0x000000010659b3ba fp 0x000070000c13e230 dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&)
pc 0x0000000106482138 fp 0x000070000c13ec80 dart::IsolateMessageHandler::HandleMessage(std::__1::unique_ptr<dart::Message, std::__1::default_delete<dart::Message> >)
pc 0x00000001064b023e fp 0x000070000c13ecf0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)
pc 0x00000001064b0400 fp 0x000070000c13ed30 dart::MessageHandler::HandleNextMessage()
pc 0x00000001067c1749 fp 0x000070000c13edc0 Dart_HandleMessage
pc 0x0000000106329f92 fp 0x000070000c13ee10 tonic::DartMessageHandler::OnHandleMessage(tonic::DartState*)
pc 0x000000010632a2c4 fp 0x000070000c13ee30 std::__1::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::__1::allocator<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0>, void ()>::operator()()
pc 0x0000000106008a61 fp 0x000070000c13eea0 fml::MessageLoopImpl::FlushTasks(fml::MessageLoopImpl::FlushType)
pc 0x000000010600bfc4 fp 0x000070000c13eec0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)
pc 0x000000010ab32f34 fp 0x000070000c13eed0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
pc 0x000000010ab32b32 fp 0x000070000c13ff70 __CFRunLoopDoTimer
pc 0x000000010ab3239a fp 0x000070000c13ffc0 __CFRunLoopDoTimers
pc 0x000000010ab2ca1c fp 0x000070000c140cb0 __CFRunLoopRun
pc 0x000000010ab2be11 fp 0x000070000c140e20 CFRunLoopRunSpecific
pc 0x000000010600c115 fp 0x000070000c140e50 fml::MessageLoopDarwin::Run()
pc 0x00000001060087f6 fp 0x000070000c140eb0 fml::MessageLoopImpl::DoRun()
pc 0x000000010600b5fc fp 0x000070000c140ef0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*)
pc 0x000000010d1f7661 fp 0x000070000c140f20 _pthread_body
pc 0x000000010d1f750d fp 0x000070000c140f50 _pthread_body
pc 0x000000010d1f6bf9 fp 0x000070000c140f78 thread_start
-- End of DumpStackTrace
Lost connection to device.
Exited (sigterm)
@vsmenon vsmenon added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label May 29, 2019
@a-siva
Copy link
Contributor

a-siva commented Jun 14, 2019

I presume you made a change and did a hot reload after that which triggered this stack trace?

@kika
Copy link
Author

kika commented Jun 14, 2019

Yes, I use VS Code and DartCode plugin. It does hot reload automatically.

@aam
Copy link
Contributor

aam commented Jun 14, 2019

Reassigned per internally tracked issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

6 participants