Repository navigation
Error 105 received from application: Isolate must be runnable #1365
Copy link
Copy link
Closed
Labels
upstream in dart / flutterNeeds changing in Dart or FlutterNeeds changing in Dart or Flutter
Description
when i use VSCode debug my program, and i get this error:
Error 105 received from application: Isolate must be runnable
Unhandled exception:
{code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: true, rootLibUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/9F8782F2-1058-4435-8DE7-FB9745C99AA8/tmp/merchant_flutterXa7tne/merchant_flutter/lib/main.dart.incremental.dill, packagesUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/9F8782F2-1058-4435-8DE7-FB9745C99AA8/tmp/merchant_flutterXa7tne/merchant_flutter/.packages, isolateId: isolates/324779890}}, details: Isolate must be runnable before this request is made.}}
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
Exited (255)
Flutter --version
Flutter 1.0.0 • channel master • https://github.com/flutter/flutter.git
Framework • revision 5391447fae (3 weeks ago) • 2018-11-29 19:41:26 -0800
Engine • revision 7375a0f414
Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
VSCode version
1.30.0 (1.30.0)
Dart: Capture Logs
[13:33:35 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[7.1.1 31000D23-4596-42FC-B219-C70C5103B8DC 192.168.2.139.63826<->192.168.2.230:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== [7.1.1 31000D23-4596-42FC-B219-C70C5103B8DC 192.168.2.139.63826<->192.168.2.230:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 34.753s, DNS @3.132s took 0.008s, TCP @3.141s took 0.001s
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 316/587, packets in/out: 1/2, rtt: 0.363s, retransmitted packets: 0, out-of-order packets: 0
[13:33:35 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[1.1.1 156B845A-5BD1-4FD2-98FF-BEC321223F65 192.168.2.139.63828<->117.91.179.225:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== [1.1.1 156B845A-5BD1-4FD2-98FF-BEC321223F65 192.168.2.139.63828<->117.91.179.225:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 35.656s, DNS @3.842s took 0.407s, TCP @4.254s took 0.003s
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 1236/289, packets in/out: 1/1, rtt: 0.624s, retransmitted packets: 0, out-of-order packets: 0
[13:33:35 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[8.1.1 F6614035-3B06-43F6-9D55-9E133450C14B 192.168.2.139.63830<->117.91.179.225:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== [8.1.1 F6614035-3B06-43F6-9D55-9E133450C14B 192.168.2.139.63830<->117.91.179.225:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 34.706s, DNS @3.085s took 0.207s, TCP @3.295s took 0.003s
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 1235/289, packets in/out: 1/1, rtt: 0.659s, retransmitted packets: 0, out-of-order packets: 0
[13:33:35 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[3.1.1 194D35D2-B356-47D1-BD31-148CFC437B07 192.168.2.139.63822<->106.14.64.188:80]
[13:33:35 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[6.1.1 74B03731-8C32-4EA3-9E63-C12698D973F1 192.168.2.139.63825<->106.14.64.188:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== [3.1.1 194D35D2-B356-47D1-BD31-148CFC437B07 192.168.2.139.63822<->106.14.64.188:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 35.344s, DNS @3.191s took 0.005s, TCP @3.198s took 0.000s
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 2784/894, packets in/out: 3/2, rtt: 0.372s, retransmitted packets: 0, out-of-order packets: 0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== [6.1.1 74B03731-8C32-4EA3-9E63-C12698D973F1 192.168.2.139.63825<->106.14.64.188:80]
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 35.332s, DNS @3.272s took 0.006s, TCP @3.279s took 0.000s
[13:33:35 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 3741/909, packets in/out: 5/2, rtt: 0.398s, retransmitted packets: 0, out-of-order packets: 0
[13:33:36 GMT+0800 (CST)] [General] [Error] Unexpected non-JSON message, assuming normal stdout (SyntaxError: Unexpected token . in JSON at position 4)
SyntaxError: Unexpected token . in JSON at position 4
at JSON.parse (<anonymous>)
at FlutterRun.handleMessage (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:91:24)
at __dirname.processMessageBuffer.fullBuffer.split.filter.forEach (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:83)
at Array.forEach (<anonymous>)
at FlutterRun.processMessageBuffer (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:78:63)
at Socket.__dirname.createProcess.envOverrides.process.stdout.on (/Users/arthur/.vscode/extensions/dart-code.dart-code-2.21.1/out/src/services/stdio_service.js:37:22)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:246:13)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
[4.1.1 C7A6DE7F-FCC6-4E01-8510-3050843A1D07 192.168.2.139.63823<->106.14.64.188:80]
[13:33:36 GMT+0800 (CST)] [FlutterRun] [Info] <== [4.1.1 C7A6DE7F-FCC6-4E01-8510-3050843A1D07 192.168.2.139.63823<->106.14.64.188:80]
[13:33:36 GMT+0800 (CST)] [FlutterRun] [Info] <== Connected Path: satisfied (Path is satisfied), interface: en0
[13:33:36 GMT+0800 (CST)] [FlutterRun] [Info] <== Duration: 36.440s, DNS @3.232s took 0.004s, TCP @3.237s took 0.000s
[13:33:36 GMT+0800 (CST)] [FlutterRun] [Info] <== bytes in/out: 3124/1345, packets in/out: 5/3, rtt: 0.483s, retransmitted packets: 0, out-of-order packets: 0
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] ==> {"id":"13925","method":"edit.getAvailableRefactorings","params":{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","length":0,"offset":727}}
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] ==> {"id":"13926","method":"edit.getFixes","params":{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","offset":727}}
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] ==> {"id":"13927","method":"edit.getAssists","params":{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","length":0,"offset":727}}
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] <== {"id":"13926","result":{"fixes":[]}}
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] <== {"id":"13925","result":{"kinds":["EXTRACT_METHOD","RENAME"]}}
[13:33:40 GMT+0800 (CST)] [Analyzer] [Info] <== {"id":"13927","result":{"assists":[{"message":"Convert to async function body","edits":[{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","fileStamp":0,"edits":[{"offset":764,"length":0,"replacement":"async "},{"offset":730,"length":19,"replacement":"Future<_ZNProjectListState>"}]}],"linkedEditGroups":[],"id":"dart.assist.convert.bodyToAsync"},{"message":"Convert to block body","edits":[{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","fileStamp":0,"edits":[{"offset":764,"length":29,"replacement":"{\n return new _ZNProjectListState();\n }"}]}],"linkedEditGroups":[],"selection":{"file":"/Users/arthur/work/coding/merchant_flutter/lib/ui/project/project_item_list.dart","offset":803},"id":"dart.assist.convert.bodyToBlock"}]}}
[13:33:41 GMT+0800 (CST)] [FlutterRun] [Info] ==> [{"id":"1","method":"app.restart","params":{"appId":"2edff524-a094-4fb0-a206-898e16df1948","fullRestart":false,"pause":true,"reason":"manual"}}]
[13:33:41 GMT+0800 (CST)] [FlutterRun] [Info] <== [{"event":"app.progress","params":{"appId":"2edff524-a094-4fb0-a206-898e16df1948","id":"2","progressId":"hot.reload","message":"Initializing hot reload..."}}]
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Info] <== [{"event":"app.progress","params":{"appId":"2edff524-a094-4fb0-a206-898e16df1948","id":"3","progressId":null,"message":"Syncing files to device iPhone X..."}}]
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Info] <== [{"event":"app.progress","params":{"appId":"2edff524-a094-4fb0-a206-898e16df1948","id":"3","progressId":null,"finished":true}}]
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"PausePostRequest","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423200}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"805","method":"removeBreakpoint","params":{"isolateId":"isolates/22861839","breakpointId":"breakpoints/1"}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"806","method":"removeBreakpoint","params":{"isolateId":"isolates/22861839","breakpointId":"breakpoints/2"}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"807","method":"removeBreakpoint","params":{"isolateId":"isolates/22861839","breakpointId":"breakpoints/3"}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointRemoved","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423201,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/1","breakpointNumber":1,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/.pub-cache\/git\/flutter_pull_to_refresh-05e575e5c03b6229671d54a346999da385f1e95e\/lib\/src\/smart_refresher.dart","line":372}}}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Success"},"id":"805"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"808","method":"addBreakpointWithScriptUri","params":{"isolateId":"isolates/22861839","scriptUri":"file:///Users/arthur/.pub-cache/git/flutter_pull_to_refresh-05e575e5c03b6229671d54a346999da385f1e95e/lib/src/smart_refresher.dart","line":372}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointRemoved","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423201,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/2","breakpointNumber":2,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/work\/coding\/merchant_flutter\/lib\/ui\/widget\/znlh_show_address.dart","line":88}}}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Success"},"id":"806"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"809","method":"addBreakpointWithScriptUri","params":{"isolateId":"isolates/22861839","scriptUri":"file:///Users/arthur/work/coding/merchant_flutter/lib/ui/widget/znlh_show_address.dart","line":88}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointRemoved","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423201,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/3","breakpointNumber":3,"resolved":false,"location":{"type":"UnresolvedSourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@758414163\/scripts\/package%3Amerchant_flutter%2Fui%2Fwidget%2Fznlh_show_address.dart\/167cf4112ad","uri":"package:merchant_flutter\/ui\/widget\/znlh_show_address.dart","_kind":"kernel"},"line":88}}}}}
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Error] Error 105 received from application: Isolate must be runnable
[13:33:43 GMT+0800 (CST)] [General] [Error] [FlutterRun] Error 105 received from application: Isolate must be runnable
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Error]
[13:33:43 GMT+0800 (CST)] [General] [Error] [FlutterRun]
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Success"},"id":"807"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"810","method":"addBreakpointWithScriptUri","params":{"isolateId":"isolates/22861839","scriptUri":"package:merchant_flutter/ui/widget/znlh_show_address.dart","line":88}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointAdded","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423204,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/4","breakpointNumber":4,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/.pub-cache\/git\/flutter_pull_to_refresh-05e575e5c03b6229671d54a346999da385f1e95e\/lib\/src\/smart_refresher.dart","line":372}}}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/4","breakpointNumber":4,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/.pub-cache\/git\/flutter_pull_to_refresh-05e575e5c03b6229671d54a346999da385f1e95e\/lib\/src\/smart_refresher.dart","line":372}},"id":"808"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointAdded","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423204,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/5","breakpointNumber":5,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/work\/coding\/merchant_flutter\/lib\/ui\/widget\/znlh_show_address.dart","line":88}}}}}
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Error] Unhandled exception:
{code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: true, rootLibUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/D98C1A1E-B79A-4041-B834-8DD4CDE5AE53/tmp/merchant_flutterBmj3el/merchant_flutter/lib/main.dart.incremental.dill, packagesUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/D98C1A1E-B79A-4041-B834-8DD4CDE5AE53/tmp/merchant_flutterBmj3el/merchant_flutter/.packages, isolateId: isolates/318341494}}, details: Isolate must be runnable before this request is made.}}
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
[13:33:43 GMT+0800 (CST)] [General] [Error] [FlutterRun] Unhandled exception:
{code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: true, rootLibUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/D98C1A1E-B79A-4041-B834-8DD4CDE5AE53/tmp/merchant_flutterBmj3el/merchant_flutter/lib/main.dart.incremental.dill, packagesUri: file:///Users/arthur/Library/Developer/CoreSimulator/Devices/9B9B9549-7175-407E-AFD2-630F0B455D9F/data/Containers/Data/Application/D98C1A1E-B79A-4041-B834-8DD4CDE5AE53/tmp/merchant_flutterBmj3el/merchant_flutter/.packages, isolateId: isolates/318341494}}, details: Isolate must be runnable before this request is made.}}
#0 _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1112:29)
#1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#3 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#4 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/5","breakpointNumber":5,"resolved":false,"location":{"type":"UnresolvedSourceLocation","scriptUri":"file:\/\/\/Users\/arthur\/work\/coding\/merchant_flutter\/lib\/ui\/widget\/znlh_show_address.dart","line":88}},"id":"809"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"BreakpointAdded","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423207,"breakpoint":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/6","breakpointNumber":6,"resolved":false,"location":{"type":"UnresolvedSourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@758414163\/scripts\/package%3Amerchant_flutter%2Fui%2Fwidget%2Fznlh_show_address.dart\/167cf4112ad","uri":"package:merchant_flutter\/ui\/widget\/znlh_show_address.dart","_kind":"kernel"},"line":88}}}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Breakpoint","fixedId":true,"id":"breakpoints\/6","breakpointNumber":6,"resolved":false,"location":{"type":"UnresolvedSourceLocation","script":{"type":"@Script","fixedId":true,"id":"libraries\/@758414163\/scripts\/package%3Amerchant_flutter%2Fui%2Fwidget%2Fznlh_show_address.dart\/167cf4112ad","uri":"package:merchant_flutter\/ui\/widget\/znlh_show_address.dart","_kind":"kernel"},"line":88}},"id":"810"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] ==> {"id":"811","method":"resume","params":{"isolateId":"isolates/22861839"}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"Resume","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423215}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0", "result":{"type":"Success"},"id":"811"}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] <== {"jsonrpc":"2.0","method":"streamNotify","params":{"streamId":"Debug","event":{"type":"Event","kind":"Resume","isolate":{"type":"@Isolate","fixedId":true,"id":"isolates\/22861839","name":"main.dart:main.dart()","number":"22861839"},"timestamp":1545370423215}}}
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] Process exited (255)
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] Disconnect requested!
[13:33:43 GMT+0800 (CST)] [FlutterRun] [Info] ==> [{"id":"2","method":"app.stop","params":{"appId":"2edff524-a094-4fb0-a206-898e16df1948"}}]
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] TERM: Going to terminate with SIGINT...
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] TERM: Removing all stored data...
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] TERM: Waiting for process to finish...
[13:33:43 GMT+0800 (CST)] [Observatory] [Info] TERM: Disconnecting...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
upstream in dart / flutterNeeds changing in Dart or FlutterNeeds changing in Dart or Flutter
Activity
DanTup commentedon Jan 2, 2019
@wangqianjun Thanks - it looks like this log is not complete - are you able to collect a log from the app launch up until the crash?
You can email it to [email protected] if you don't want to attach here, and you can untick everything except
Flutter RunandObservatoryin the logging options to get a slightly reduced log.Thanks!
DanTup commentedon Jan 22, 2019
I've had a log file from another user with this same issue. I've trimmed down the logs here:
log.txt
The only thing that stands out is that there were apparently over 12 hours between launching the app and trying the reload.
DanTup commentedon Jan 22, 2019
Ok, I found something strange. There are two isolates in the response to
getVMat the start:In the Debugger, we just take the first one and assume that's the root isolate we care about, so when we resume (start) the app, we just use that one:
However, when we send a reload request to Flutter, it's presumably using the other isolate (or both) since the ID in the error is the second isolate:
That isolate has a
pauseEvent.kindofNone.What's interesting here, is that this user reports having this same error from the console - which suggests that the issue might not just be down to the VS Code debugger selecting the wrong isolate - maybe the issue is that there were two?
@devoncarew any thoughts? Should we have two isolates (with the same name!) like this? If so, how should we select which is the important one and should we unpause all of them?
devoncarew commentedon Jan 22, 2019
No, I don't think so.
If this is repeatable, can you retrieve the full Isolate object for each isolate? I think it would be interesting to see what the
rootLibfield was for each isolate - how the app had been started.This is for a Flutter app? Against what runtime (iOS simulator? Android device?)
Is add2app involved at all, or is this just a straight Flutter app?
We may want to move this over to flutter/flutter, as - unless the user is embedding the flutter runtime in a custom way in their app - this likely a regression in the runtime.
DanTup commentedon Jan 22, 2019
It is repeatable - I do have some logs but they're sadly truncated. The second isolate does show the rootIsolate, however the first one does not (not in the same position, at least). I'll try and get complete objects though.
Yep. "iPhone XR in debug mode"
Standard launch with
flutter run.Will do. I've asked some extra questions (including whether it only happens on this specific app) and will move it over when I have some more useful info.
devoncarew commentedon Jan 22, 2019
Cool. For this:
isolate.rootLib.urimight be different between the two, if one had been started from the disk, and the other from a snapshot.DanTup commentedon Jan 22, 2019
If it's always in the same place in the JSON, then I think it was
null.I'll try and get a full log through that doesn't have the end of the lines truncated.
DanTup commentedon Jan 23, 2019
Indeed, one isolate does not have a
rootLib. I've opened a Flutter issue here:flutter/flutter#26953
It includes the full isolate response (minus the libraries since it was huge, though I have them if useful) and a copy of the pubspec dependencies.
Closing this one as upstream in Flutter since I don't think it's something to fix here.