Skip to content

Intermittent "Nostr is not initialized" Exception During App Startup #328

@Catrya

Description

@Catrya

The app occasionally crashes during startup with the error Exception: Nostr is not initialized. Call init() first. This appears to be a race condition that occurs intermittently when the app is launched.

  Exception: Nostr is not initialized. Call init() first.
  #0   NostrService.subscribeToEvents (package:mostro_mobile/services/nostr_service.dart:170:7)
  #1   SubscriptionManager.subscribe
  (package:mostro_mobile/features/subscriptions/subscription_manager.dart:181:33)
  #2   SubscriptionManager._updateSubscription
  (package:mostro_mobile/features/subscriptions/subscription_manager.dart:106:7)
  #3   SubscriptionManager._updateAllSubscriptions
  (package:mostro_mobile/features/subscriptions/subscription_manager.dart:82:7)
  #4   SubscriptionManager._initSessionListener.
  (package:mostro_mobile/features/subscriptions/subscription_manager.dart:43:9)

This is intermittent and have low frequency, occurs occasionally, not on every app launch. if user restarts the app is working fine again, but if occurs when configuring a new Mostro instance, the error may persist across multiple app restarts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions