Page MenuHomePhabricator

[BUG] App crashes when trying to enable offline library
Closed, InvalidPublic

Description

Steps to reproduce

  1. Go to 'Settings'
  2. Tap on the 'Enable Offline Library' switch

Expected results

The 'Offline Library' feature is enabled.

Actual results

The app crashes.

Stack trace

05-21 19:41:59.013 13979-13979/org.wikipedia.alpha D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
05-21 19:41:59.123 13979-13979/org.wikipedia.alpha I/org.wikipedia.activity.BaseActivity: onRequestPermissionsResult():131: Write permission was denied by user
05-21 19:41:59.123 13979-13979/org.wikipedia.alpha D/AndroidRuntime: Shutting down VM05-21 19:41:59.133 13979-13979/org.wikipedia.alpha E/AndroidRuntime: FATAL EXCEPTION: main
                                                                     Process: org.wikipedia.alpha, PID: 13979
                                                                     java.lang.NoSuchMethodError: No virtual method shouldShowRequestPermissionRationale(Ljava/lang/String;)Z in class Landroid/support/v7/app/AppCompatActivity; or its super classes (declaration of 'android.support.v7.app.AppCompatActivity' appears in /data/app/org.wikipedia.alpha-2/split_lib_directories_apk.apk)
                                                                         at org.wikipedia.util.PermissionUtil.shouldShowWritePermissionRationale(PermissionUtil.java:30)
                                                                         at org.wikipedia.activity.BaseActivity.onRequestPermissionsResult(BaseActivity.java:133)
                                                                         at android.support.v4.app.ActivityCompat$1.run(ActivityCompat.java:524)
                                                                         at android.os.Handler.handleCallback(Handler.java:739)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                         at android.os.Looper.loop(Looper.java:145)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:6934)
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at java.lang.reflect.Method.invoke(Method.java:372)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Environments observed

App version: 2.7.232-alpha-2018-05-21
Android OS versions: 5.1.1, API 22
Device model: Samsung Galaxy j1 ace
Device language:

Event Timeline

LGoto triaged this task as Low priority.May 21 2018, 4:14 PM
LGoto moved this task from Needs Triage to Bug Backlog on the Wikipedia-Android-App-Backlog board.

Change 434820 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@master] Fix: App crashes when trying to enable offline library in lower API

https://gerrit.wikimedia.org/r/434820

Change 434820 abandoned by Cooltey:
Fix: App crashes when trying to enable offline library in lower API

Reason:
Abandon due to stop supports offline library feature

https://gerrit.wikimedia.org/r/434820

cooltey subscribed.
Dbrant subscribed.

No longer accepting bug tickets for Offline Library since the feature is currently shelved (T195518) and will likely be very different when brought back.

Vvjjkkii renamed this task from [BUG] App crashes when trying to enable offline library to ojcaaaaaaa.Jul 1 2018, 1:10 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed the point value 1 for this task.
Vvjjkkii removed subscribers: gerritbot, Aklapper.
Kaartic renamed this task from ojcaaaaaaa to [BUG] App crashes when trying to enable offline library .Jul 1 2018, 1:30 PM
Kaartic closed this task as Invalid.
Kaartic lowered the priority of this task from High to Low.
Kaartic updated the task description. (Show Details)
Kaartic added subscribers: Aklapper, gerritbot.