Skip to content

App crashed when I use voice text at intervals #14

@cckole

Description

@cckole

Description

When I first launched the app and searched for a video on YouTube using the voice text, the app crashed. I relaunched and searched again and I was able to search for the videos I wanted. After exiting the app for some hours and going back to search using the voice text. It crashes again before picking up. I noticed this action several times and I discovered that when ever the app is settled and visited after a while, it first crash before working well.

Expected behavior

I expected to search for videos on youtube freely at any time using the voice text without the app crashing at first initiation after exiting for a while.

Steps to reproduce

After launching the app

  • Click on the search icon at the top and click on the microphone icon.

  • Just say anything you want to search. You might note the crash if you are using it for the first time. If not, exit the app and revisit after few hours following the same steps. You will definitely note the crash.

Reproducing the behavior

https://youtu.be/S1A8neVjqBE

Device used

  • Techno spark K7
  • Android 7.0 O.S
  • App version:

Logcat

05-26 16:42:16.616 23206 23206 E AndroidRuntime: Process: com.teocci.ytinbg, PID: 23206
05-26 16:42:16.616 23206 23206 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.teocci.ytinbg.adapters.VideosAdapter.clearYouTubeVideos()' on a null object reference
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.teocci.ytinbg.ui.fragments.SearchFragment.searchQuery(SearchFragment.java:190)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.teocci.ytinbg.ui.MainActivity.handleIntent(MainActivity.java:488)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.teocci.ytinbg.ui.MainActivity.access$300(MainActivity.java:69)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.teocci.ytinbg.ui.MainActivity$3.onSuggestionClick(MainActivity.java:360)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.support.v7.widget.SearchView.onItemClicked(SearchView.java:1387)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.support.v7.widget.SearchView$8.onItemClick(SearchView.java:1413)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AutoCompleteTextView.performCompletion(AutoCompleteTextView.java:1029)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AutoCompleteTextView.-wrap1(AutoCompleteTextView.java)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AutoCompleteTextView$DropDownItemClickListener.onItemClick(AutoCompleteTextView.java:1326)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:315)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.widget.AbsListView$4.run(AbsListView.java:4382)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:836)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:103)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
05-26 16:42:16.616 23206 23206 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)```

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