Uploaded image for project: 'Android Client'
  1. Android Client
  2. AC-522

App crashes on clicking select image icon in Register Patient

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • Medium

    Description

      (I am new to the community so please excuse me if i haven't followed any of the standards)

      Actual Behaviour

      App crashes on clicking select image icon in Register Patient

      Expected Behaviour

      App should not crash and should let the user select the desired image from gallery.

      Steps to reproduce it

      1) Log in and click Register Patient.

      2) Click on the camera icon at the top.

      3) App crashes (BUG).

       Logcat 

      2019-02-18 10:51:42.737 26066-26066/org.openmrs.mobile E/AndroidRuntime: FATAL EXCEPTION: main
      Process: org.openmrs.mobile, PID: 26066
      java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority
      at android.os.Parcel.createException(Parcel.java:1950)
      at android.os.Parcel.readException(Parcel.java:1918)
      at android.os.Parcel.readException(Parcel.java:1868)
      at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:812)
      at android.content.ContentResolver.notifyChange(ContentResolver.java:2231)
      at android.content.ContentResolver.notifyChange(ContentResolver.java:2182)
      at android.content.ContentResolver.notifyChange(ContentResolver.java:2152)
      at com.activeandroid.query.From.execute(From.java:302)
      at org.openmrs.mobile.api.FormListService$2.onResponse(FormListService.java:80)
      at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70)
      at android.os.Handler.handleCallback(Handler.java:873)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loop(Looper.java:193)
      at android.app.ActivityThread.main(ActivityThread.java:6863)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
      Caused by: android.os.RemoteException: Remote stack trace:
      at com.android.server.content.ContentService.notifyChange(ContentService.java:411)
      at android.content.IContentService$Stub.onTransact(IContentService.java:100)
      at com.android.server.content.ContentService.onTransact(ContentService.java:266)
      at android.os.Binder.execTransact(Binder.java:752)

       

      Screenshots of the issue

      Would you like to work on the issue?

      YES

      Gliffy Diagrams

        Attachments

          1. OpenMRS.jpg
            213 kB
            Rohan Sharma

          Activity

            People

              sp2710 shubham pinjwani
              codepoet2017390 Rohan Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d