You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/10/25 16:07:21 UTC
[GitHub] martinsomm opened a new issue #360: Android 7.1.2 app crashes or
"Unable to create bitmap!" when calling camera from work profile app
martinsomm opened a new issue #360: Android 7.1.2 app crashes or "Unable to create bitmap!" when calling camera from work profile app
URL: https://github.com/apache/cordova-plugin-camera/issues/360
Dear team, first of all thanks for maintaining this fantastic plugin š
We experience an issue with an app delivered with Microsoft Intune.
When starting the camera, we get a message toast "you're using this app outside of your work profile". We can take a pciture.
Then depending on destinationType:
- DATA_URL: the app stops without any message
- FILE_URI: the value we get in success is "Unable to create bitmap!"
We had some Microsoft people having a look at the FILE_URI version and this is their feedback:
The debugger informs in the beginning of the logs that the crash was due to āAttempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object referenceā
10-22 10:46:45.771 32379 32379 E AndroidRuntime: FATAL EXCEPTION: main
10-22 10:46:45.771 32379 32379 E AndroidRuntime: Process: com.aaa.bbb, PID: 32379
10-22 10:46:45.771 32379 32379 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=33, result=-1, data=null} to activity {com.aaa.bbb/com.aaa.bbb.Test}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
10-22 10:46:45.771 32379 32379 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
I read all the logs from the end and going up and found a few errors:
10-22 11:55:33.184 6106 6135 D StrictMode: StrictMode policy violation: android.os.StrictMode$StrictModeDiskReadViolation: policy=65599 violation=2
10-22 11:55:33.184 6106 6135 D StrictMode: at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1438)
10-22 11:55:34.139 3670 7369 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
We appreciate your consideration in this matter
Best Regards
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org