Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Ionic 3) App crashes on Android 12 when starting the recording a video #250

Open
2 tasks
nicowxdvd opened this issue May 30, 2022 · 8 comments
Open
2 tasks

Comments

@nicowxdvd
Copy link

Bug Report

Problem

What is expected to happen?

Starts video recording on Android 12

What does actually happen?

App crashes on video when starting the recording

Information

All this happens only in android 12 when recording a video

Command or Code

Environment, Platform, Device

Version information

Ionic:

Ionic CLI : 6.17.0 (/Users/nicowxdvd/.nvm/versions/node/v14.16.0/lib/node_modules/@ionic/cli)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 9.0.0 ([email protected])
Cordova Platforms : android 10.1.1, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 24 other plugins)

Utility:

cordova-res : not installed globally
native-run (update available: 1.6.0) : 1.2.2

System:

Android SDK Tools : 26.1.1 (/Users/nicowxdvd/Library/Android/sdk)
ios-deploy : 1.11.3
ios-sim : 8.0.2
NodeJS : v14.16.0 (/Users/nicowxdvd/.nvm/versions/node/v14.16.0/bin/node)
npm : 6.14.11
OS : macOS Monterey
Xcode : Xcode 13.3 Build version 13E113

In android studio I get the following error

2022-05-30 11:25:43.036 3174-3174/com.android.camera2 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.camera2, PID: 3174
java.lang.RuntimeException: No valid video file descriptor
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1160)
at com.android.camera.VideoModule.access$2200(VideoModule.java:90)
at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1369)
at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2394)
at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2379)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
2022-05-30 11:25:43.401 446-506/? E/Surface: queueBuffer: error queuing buffer, -32
2022-05-30 11:25:43.401 446-506/? E/Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: Broken pipe (-32)
2022-05-30 11:25:43.402 446-3229/? E/Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Broken pipe (-32)
2022-05-30 11:25:43.402 410-410/? E/BpTransactionCompletedListener: Failed to transact (-32)
2022-05-30 11:25:43.403 446-505/? E/Surface: queueBuffer: error queuing buffer, -32
2022-05-30 11:25:43.416 446-505/? E/Surface: queueBuffer: error queuing buffer, -32
2022-05-30 11:25:43.429 446-615/? E/Camera2Client: notifyError: Error condition 0 reported by HAL, requestId -1
2022-05-30 11:25:43.544 446-615/? E/CameraService: binderDied: Java client's binder died, removing it from the list of active clients
2022-05-30 11:26:46.531 389-389/? E/[email protected]: Failed to getEnergyData

Checklist

  • [x ] I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@nicowxdvd nicowxdvd changed the title App crashes on Android 12 when starting the recording a video App crashes on Android 12 when starting the recording a video (Ionic 3) May 30, 2022
@nicowxdvd nicowxdvd changed the title App crashes on Android 12 when starting the recording a video (Ionic 3) (Ionic 3) App crashes on Android 12 when starting the recording a video May 30, 2022
@MohsinJamadar09
Copy link

Hi @nicowxdvd ,
Did you find any solution on this?

I am also facing same issue.

@erisu any advice on this please.

@opunbuds
Copy link

opunbuds commented Nov 1, 2022

same issue here

@nseb
Copy link

nseb commented Dec 25, 2022

Same issue here

1 similar comment
@caiorsantanna
Copy link

Same issue here

@daniLetsProp
Copy link

same error

@itbeyond
Copy link

Same error

@martinko94
Copy link

same error, also on Android 13

@lidslira
Copy link

same error here, using API 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants