Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

IllegalArgumentException: Failed to create internal virtual display

Đang mở
#1,985 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, kotlin
Lĩnh vực
audio-video-rtc, mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

  1. Go to 'Screren broadcast'
  2. Selct 720p, Screen Broadcast and Porttarint
  3. 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)

Ngôn ngữ chính
Kotlin
Star
3k
Fork
946
Merge trung bình
4 ngày 6 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pedroSG94/RootEncoder

Tất cả issue của pedroSG94/RootEncoder

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.