Skip to content

RangeError in worker method #2

@muccy

Description

@muccy

Hi,
I've found some of those errors logged in Crashlytics.

RangeError (length): Invalid value: Not in inclusive range 0..27: 28. Error thrown null.

Non-fatal Exception: FlutterError
0  ???                            0x0 JsonCodec.encode (dart:convert)
1  ???                            0x0 StorageImpl._workerMethod.<fn> + 54 (io.dart:54)
2  ???                            0x0 _EventSinkWrapper.add (dart:async)
3  ???                            0x0 IsoWorker._entryPoint.<fn> + 87 (isoworker.dart:87)

I don't understand how it could be possible to have a RangeError since I find only strings and maps, not lists. Do you have any idea? Maybe it's something bound to map intrinsic mutability and you need to make a copy of data when you pass the map to worker? (I'm just taking a shot)

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions