Skip to content

Error loading storage #148

@amrgetment

Description

@amrgetment

I got this error, and I am using version 1.1.4

I/flutter ( 4128): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter ( 4128): │ #0   SystemLogger.parseLog (package:segment_analytics/logger.dart:80:16)
I/flutter ( 4128): │ #1   log (package:segment_analytics/logger.dart:106:23)
I/flutter ( 4128): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter ( 4128): │ ⛔ Segment: An internal error occurred: Error loading storage: type 'Null' is not a subtype of type 'bool' in type cast
I/flutter ( 4128): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
E/flutter ( 4128): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Error loading storage: type 'Null' is not a subtype of type 'bool' in type cast
E/flutter ( 4128): #0      PersistedState.init.<anonymous closure> (package:segment_analytics/state.dart:217:7)
E/flutter ( 4128): #1      _FutureListener.handleError (dart:async/future_impl.dart:222:22)
E/flutter ( 4128): #2      Future._propagateToListeners.handleError (dart:async/future_impl.dart:914:47)
E/flutter ( 4128): #3      Future._propagateToListeners (dart:async/future_impl.dart:935:13)
E/flutter ( 4128): #4      Future._completeError (dart:async/future_impl.dart:715:5)
E/flutter ( 4128): <asynchronous suspension>
E/flutter ( 4128): 
I/flutter ( 4128): FlutterFire Messaging: An error occurred in your background messaging handler:
I/flutter ( 4128): Null check operator used on a null value
I/flutter ( 4128): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 4128): type 'Null' is not a subtype of type 'bool' in type cast
I/flutter ( 4128): #0      _$ContextNetworkFromJson (package:segment_analytics/event.g.dart:462:25)
I/flutter ( 4128): #1      JSONExtendable.fromJson (package:segment_analytics/event.dart:568:28)
I/flutter ( 4128): #2      new ContextNetwork.fromJson (package:segment_analytics/event.dart:507:22)
I/flutter ( 4128): #3      _$ContextFromJson (package:segment_analytics/event.g.dart:345:22)
I/flutter ( 4128): #4      JSONExtendable.fromJson (package:segment_analytics/event.dart:568:28)
I/flutter ( 4128): #5      new Context.fromJson (package:segment_analytics/event.dart:365:22)
I/flutter ( 4128): #6      ContextState.fromJson (package:segment_analytics/state.dart:384:20)
I/flutter ( 4128): #7      PersistedState.init.<anonymous closure> (package:segment_analytics/state.dart:200:13)
I/flutter ( 4128): <asynchronous suspension>
I/flutter ( 4128): ----------------------------------------------------

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions