fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Fenix crashes when clicking on a search term

Open agi90 opened this issue 7 years ago • 4 comments

Steps to reproduce

  • Search for "test"
  • Click on search term (not an actual page link)
  • observe crash

Device information

  • Latest build on play store.
  • Android device: Samsung S10e
  • Fenix version: 1.0.1913

┆Issue is synchronized with this Jira Task

agi90 avatar Mar 26 '19 15:03 agi90

FATAL EXCEPTION: main
Process: org.mozilla.fenix, PID: 16440
io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | No enum constant org.mozilla.fenix.GleanMetrics.Events.performedSearchKeys.search_suggestion
    at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:2)
    at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:3)
    at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:5)
    at com.uber.autodispose.AutoDisposingObserverImpl.onNext(AutoDisposingObserverImpl.java:4)
    at io.reactivex.subjects.PublishSubject.onNext(PublishSubject.java:4)
    at io.reactivex.subjects.SerializedSubject.onNext(SerializedSubject.java:13)
    at org.mozilla.fenix.search.awesomebar.AwesomeBarUIView$searchUseCase$1.invoke(AwesomeBarUIView.kt:1)
    at mozilla.components.feature.search.SearchUseCases$SearchUseCase$DefaultImpls.invoke$default(SearchUseCases.kt:1)
    at mozilla.components.feature.awesomebar.provider.SearchSuggestionProvider$createMultipleSuggestions$$inlined$forEachIndexed$lambda$2.invoke(SearchSuggestionProvider.kt:1)
    at mozilla.components.browser.awesomebar.layout.DefaultSuggestionViewHolder$Default$bind$1.onClick(DefaultSuggestionViewHolder.kt:1)
    at android.view.View.performClick(View.java:7352)
    at android.view.View.performClickInternal(View.java:7318)
    at android.view.View.access$3200(View.java:846)
    at android.view.View$PerformClick.run(View.java:27801)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7032)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Caused by: java.lang.IllegalArgumentException: No enum constant org.mozilla.fenix.GleanMetrics.Events.performedSearchKeys.search_suggestion
    at java.lang.Enum.valueOf(Enum.java:258)
    at org.mozilla.fenix.GleanMetrics.Events$performedSearchKeys.valueOf(Unknown Source:2)
    at org.mozilla.fenix.components.metrics.GleanMetricsServiceKt$wrapper$4.invoke(GleanMetricsService.kt:1)
    at org.mozilla.fenix.components.metrics.GleanMetricsService.track(GleanMetricsService.kt:8)
    at org.mozilla.fenix.components.metrics.Metrics.track(Metrics.kt:6)
    at org.mozilla.fenix.search.SearchFragment$onStart$2.accept(SearchFragment.kt:11)
    at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:2)
    ... 18 more

agi90 avatar Mar 26 '19 15:03 agi90

This happens for me too. Also when I just type and hit the go (right arrow on keyboard) button.

Device

Nokia 3.1 Fenix version: 1.0.1913

Verdi avatar Mar 26 '19 22:03 Verdi

The latest nightly (3/26 @4:32 pm) fixes this for me.

Version: 1.0.1913 Build #: 10851633 Gecko: 67.0-20190318154932

Verdi avatar Mar 27 '19 00:03 Verdi

Verified on multiple devices with the latest build, the issue is no longer reproducible.

bsurd avatar Apr 03 '19 11:04 bsurd