Skip to content

Crash on startup from nullptr in mozilla.appservices.init_rust_components.UniffiLib.uniffi_init_rust_components_fn_func_initialize #3885

@jonalmeida

Description

@jonalmeida

Steps to reproduce

  1. Open Reference Browser

Expected behaviour

  • Don't crash.

Actual behaviour

  • Crashes.

Device information

  • Android device: Pixel 8a
  • Reference Browser version: main @ fd7d361

Additional information

  • Can only reproduced with a release build.
java.lang.RuntimeException: Unable to create application org.mozilla.reference.browser.BrowserApplication: java.lang.NullPointerException: Attempt to invoke interface method 'void mozilla.appservices.init_rust_components.UniffiLib.uniffi_init_rust_components_fn_func_initialize(mozilla.appservices.init_rust_components.UniffiRustCallStatus)' on a null object reference
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7836)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2546)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loopOnce(Looper.java:248)
    at android.os.Looper.loop(Looper.java:338)
    at android.app.ActivityThread.main(ActivityThread.java:9067)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void mozilla.appservices.init_rust_components.UniffiLib.uniffi_init_rust_components_fn_func_initialize(mozilla.appservices.init_rust_components.UniffiRustCallStatus)' on a null object reference
    at mozilla.appservices.init_rust_components.Init_rust_componentsKt.initialize(init_rust_components.kt:1054)
    at mozilla.appservices.RustComponentsInitializer.init(RustComponentsInitializer.kt:14)
    at mozilla.components.support.AppServicesInitializer.init(AppServicesInitializer.kt:28)
    at org.mozilla.reference.browser.BrowserApplication.onCreate(BrowserApplication.kt:37)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1381)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7830)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions