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

Transformer demo is crashing when trying to export video file on Android 14 device #1504

Closed
1 task done
hassanabidpk opened this issue Jun 27, 2024 · 2 comments
Closed
1 task done
Assignees

Comments

@hassanabidpk
Copy link
Contributor

hassanabidpk commented Jun 27, 2024

Version

Media3 main branch

More version details

1.3.1

Devices that reproduce the issue

Pixel 6a with Android 14

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. Build and run demo-transformer app on Android 14 device
  2. Choose preset input --> Apple Video effect --> Zoom in start --> Export
  3. Application crashed

Expected result

It should export, preview and playback file

Actual result

Crash

2024-06-27 13:38:23.679 15694-15694 AndroidRuntime          androidx.media3.demo.transformer     E  FATAL EXCEPTION: main (Ask Gemini)
Process: androidx.media3.demo.transformer, PID: 15694
 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
at androidx.media3.demo.transformer.TransformerActivity.startExport(TransformerActivity.java:233)
at androidx.media3.demo.transformer.TransformerActivity.onStart(TransformerActivity.java:182)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1582)
at android.app.Activity.performStart(Activity.java:8654)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3847)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:225)
.....

Media

Choose preset input
720p H264 video and AAC audio (b-frames)

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
@SheenaChhabra
Copy link
Contributor

Hey @hassanabidpk Thanks for reporting this bug. Unfortunately I can not reproduce the bug after following mentioned steps.
Can you please confirm whether you are testing on the main branch or 1.3.1 version?
Can you try the steps again and confirm if you still see the error?
Are you doing any addition steps like pausing and resuming an export?

@hassanabidpk
Copy link
Contributor Author

after clean build and fetching latest release and main branches. It worked fine. Reason for crash was that no permission popup triggered (Android 14 https://developer.android.com/about/versions/14/changes/partial-photo-video-access) in export page (for some reasons)

@androidx androidx locked and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants