IllegalArgumentException: Failed to create internal virtual display
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
The crash is raised in ScreenSource.start (ScreenSource.kt:76) and reached through StreamBase.startSources and startStream in the encoder library. Read those three spots first, then see what state the MediaProjection setup depends on on Android 15. Reproducing it needs a device like the reporter's Redmi 14C, which the thread does not confirm. Done means the stream starts on that device, or the failure is caught and reported in a clear way.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The application crashes with an IllegalArgumentException: Failed to create internal virtual display when attempting to start a screen stream. This occurs during the screen capture initialization process on certain devices.
To Reproduce
Steps to reproduce the behavior:
- Go to 'Screren broadcast'
- Selct 720p, Screen Broadcast and Porttarint
- Start Streaming
Crash Report
Caused by java.lang.IllegalArgumentException: Failed to create internal virtual display
at com.pedro.encoder.input.sources.video.ScreenSource.start(ScreenSource.kt:76)
at com.pedro.library.base.StreamBase.startSources(StreamBase.kt:507)
at com.pedro.library.base.StreamBase.startStream(StreamBase.kt:190)
at com.atharvasystem.quickscreenrecorder.services.ShareScreenService.startStream(ShareScreenService.kt:206)
at com.atharvasystem.quickscreenrecorder.ui.streams.StreamSourceActivity.activityResultContract$lambda$0(StreamSourceActivity.kt:131)
at com.atharvasystem.quickscreenrecorder.ui.streams.StreamSourceActivity.$r8$lambda$LtWeMkLkNKtetOKKVdlgnnLpK3s()
at com.atharvasystem.quickscreenrecorder.ui.streams.StreamSourceActivity$$ExternalSyntheticLambda1.onActivityResult(D8$$SyntheticClass)
at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.kt:350)
at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.kt:311)
at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.kt:756)
at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:151)
at android.app.Activity.onActivityResult(Activity.java:7650)
at android.app.Activity.internalDispatchActivityResult(Activity.java:9644)
at android.app.Activity.dispatchActivityResult(Activity.java:9618)
at android.app.ActivityThread.deliverResults(ActivityThread.java:6355)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:6411)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:72)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:186)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:112)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:84)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2917)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.app.ActivityThread.main(ActivityThread.java:9531)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:636)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Expected behavior
The screen stream should start successfully and begin capturing/streaming the device screen without crashing.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Device: Xiaomi Redmi 14C
OS: Android 15
Media server: Not specified
Class used: ScreenSource (via StreamBase)
Additional context
Device has 2.4 GB free RAM and 173.01 GB free disk space
App version: 6.6 (109)
- 主要言語
- Kotlin
- スター
- 3k
- フォーク
- 946
- 平均マージ
- 4日 6時間
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pedroSG94/RootEncoder のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
pedroSG94/RootEncoder#2213 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
pedroSG94/RootEncoder#2207 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pedroSG94/RootEncoder#2203 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
pedroSG94/RootEncoder#2192 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pedroSG94/RootEncoder#2177 · コメント 44 件 ·
メンテナーはふだん 2 日以内に返信
pedroSG94/RootEncoder の issue をすべて見る
似ている issue
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug core p3
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
メンテナーはふだん 5 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
SLNE-Development/surf-chat#134 ·