Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310334

[XWayland][Screencast] screen capture error message in debug

XMLWordPrintable

    • b12

        after JDK-8309756 I see

        onStreamStateChanged:309 screenId#39[loc(0,0) size(2560x1440)] state 2 (paused) -> 0 (unconnected) err (null)
        onCoreError:490 !!! pipewire error: id 0, seq: 88, res: -9 (Unknown error -9): connection error
        doCleanup:115 STOPPING loop

        following fixes the issue.

        diff --git a/src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c b/src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c
        index a5443784e00..cdbe08e55bd 100644
        --- a/src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c
        +++ b/src/java.desktop/unix/native/libawt_xawt/awt/screencast_pipewire.c
        @@ -896,8 +896,8 @@ JNIEXPORT jint JNICALL Java_sun_awt_screencast_ScreencastHelper_getRGBPixelsImpl
         
                     fp_pw_thread_loop_lock(pw.loop);
                     fp_pw_stream_set_active(screenProps->data->stream, FALSE);
        - fp_pw_stream_disconnect(screenProps->data->stream);
                     fp_pw_thread_loop_unlock(pw.loop);
        + fp_pw_stream_disconnect(screenProps->data->stream);
                 }
             }
             doCleanup();

              azvegint Alexander Zvegintsev
              azvegint Alexander Zvegintsev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: