Status: New
Owner: ----
Labels: Type-Defect Priority-Unassigned
New issue 22982 by
filip.hr...@gmail.com: Isolate cannot send Map as
message in certain conditions (AKA "object is a regular Dart Instance")
https://code.google.com/p/dart/issues/detail?id=22982
What steps will reproduce the problem?
1. Run the attached project in Dartium
2. See output in console
What is the expected output? What do you see instead?
Expected output is to see the map (which is built iteratively in the
isolate) received on the main Isolate and printed out in the console.
This works when compiled to JavaScript.
What I see instead in Dartium is this error (plus additional info I put
there myself)
===
Received: Error: Invalid argument(s): Illegal argument in isolate message :
(object is a regular Dart Instance)
Stacktrace:
#0 _SendPortImpl._sendInternal
(dart:isolate-patch/isolate_patch.dart:187)
#1 _SendPortImpl.send (dart:isolate-patch/isolate_patch.dart:171)
#2 main (
http://localhost:8081/isolate.dart:18:14)
#3 _startIsolate.<anonymous closure>
(dart:isolate-patch/isolate_patch.dart:251)
#4 _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:142)
Tried to send map:
{"type":110,"mapContent":{"hidden":false,"disabled":false,"jsonml":["Form",{"submitText":null,"id":"61807"},["RangeOutput",{"name":"Trait
points","id":"form61807-element0"}],["CheckboxInput",{"name":"You
have good
eyesight and spotting
abilities","id":"form61807-element1"}],["CheckboxInput",{"name":"You are
physically strong, a good
fighter","id":"form61807-element2"}],["CheckboxInput",{"name":"You can
speak basic
Japanese","id":"form61807-element3"}],["CheckboxInput",{"name":"You are
good with
animals","id":"form61807-element4"}],["CheckboxInput",{"name":"You have
received a psychology training on artificial
intelligence","id":"form61807-element5"}],["CheckboxInput",{"name":"You
understand electronics well and you are proficient in using and repairing
them","id":"form61807-element6"}],["CheckboxInput",{"name":"You have
science
education","disabled":"true","id":"form61807-element7"}],["CheckboxInput",{"name":"You
know your way around a
spaceship","id":"form61807-element8"}]],"values":{"form61807-element0":{"hidden":false,"disabled":false,"min":0,"max":3,"step":1,"minEnabled":null,"maxEnabled":null,"current":2,"__string__":"2"},"form61807-element1":{"hidden":false,"disabled":false,"current":false},"form61807-element2":{"hidden":false,"disabled":false,"current":false},"form61807-element3":{"hidden":false,"disabled":false,"current":false},"form61807-element4":{"hidden":false,"disabled":false,"current":false},"form61807-element5":{"hidden":false,"disabled":false,"current":false},"form61807-element6":{"hidden":false,"disabled":false,"current":false},"form61807-element7":{"hidden":false,"disabled":true,"current":true},"form61807-element8":{"hidden":false,"disabled":false,"current":false}}}}
Object runtimeType: _CompactLinkedHashMap<String, Object>
===
I tried sending this map when built as a literal and it worked okay. Maybe
it's something to do with the Map being a _CompactLinkedHashMap?
What version of the product are you using?
Dart 1.9.1
On what operating system?
Mac OS X 10.9.5
What browser (if applicable)?
Dartium 39.0.2171.99
Please provide any additional information below.
Attachments:
isolate_message_bug.zip 18.0 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings