-
Notifications
You must be signed in to change notification settings - Fork 124
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
xdg_surface has never been configured #330
Comments
What wayland compositor are you using? Also, can you please share the whole log?
|
I got the same issue. This phenomenon seems to occur under the following conditions:
If "$HOME/.cache/gstreamer-1.0/" exists, this phenomenon is not occur. I don't know the detailed reasons, but it works fine when I try the following: diff --git a/packages/camera/elinux/camera_elinux_plugin.cc b/packages/camera/elinux/camera_elinux_plugin.cc index 4f841e0..c72f3dd 100644 --- a/packages/camera/elinux/camera_elinux_plugin.cc +++ b/packages/camera/elinux/camera_elinux_plugin.cc @@ -60,7 +60,6 @@ class CameraPlugin : public flutter::Plugin { flutter::TextureRegistrar* texture_registrar) : plugin_registrar_(plugin_registrar), texture_registrar_(texture_registrar) { - GstCamera::GstLibraryLoad(); } virtual ~CameraPlugin() { if (camera_) { diff --git a/packages/camera/elinux/gst_camera.cc b/packages/camera/elinux/gst_camera.cc index 9bb0e47..0f383e8 100644 --- a/packages/camera/elinux/gst_camera.cc +++ b/packages/camera/elinux/gst_camera.cc @@ -8,6 +8,7 @@ GstCamera::GstCamera(std::unique_ptr handler) : stream_handler_(std::move(handler)) { + gst_init(NULL, NULL); gst_.pipeline = nullptr; gst_.camerabin = nullptr; gst_.video_convert = nullptr; diff --git a/packages/video_player/elinux/gst_video_player.cc b/packages/video_player/elinux/gst_video_player.cc index 02339e8..f4433f7 100644 --- a/packages/video_player/elinux/gst_video_player.cc +++ b/packages/video_player/elinux/gst_video_player.cc @@ -9,6 +9,7 @@ GstVideoPlayer::GstVideoPlayer( const std::string& uri, std::unique_ptr handler) : stream_handler_(std::move(handler)) { + gst_init(NULL, NULL); gst_.pipeline = nullptr; gst_.playbin = nullptr; gst_.video_convert = nullptr; diff --git a/packages/video_player/elinux/video_player_elinux_plugin.cc b/packages/video_player/elinux/video_player_elinux_plugin.cc index a703e31..a41405a 100644 --- a/packages/video_player/elinux/video_player_elinux_plugin.cc +++ b/packages/video_player/elinux/video_player_elinux_plugin.cc @@ -58,9 +58,6 @@ class VideoPlayerPlugin : public flutter::Plugin { flutter::TextureRegistrar* texture_registrar) : plugin_registrar_(plugin_registrar), texture_registrar_(texture_registrar) { - // Needs to call 'gst_init' that initializing the GStreamer library before - // using it. - GstVideoPlayer::GstLibraryLoad(); } virtual ~VideoPlayerPlugin() { for (auto itr = players_.begin(); itr != players_.end(); itr++) { |
Ah, if we use camera and video plugins in a same app, it will lead double "gst_init(NULL, NULL)" call in the same app. |
Hello. I could not get flutter-elinux version is 3.3.10 and I got this log on RPi4. |
Thanks. Did mouse cursor is enabled when the error happened? If so, can you please try again using |
I tried it and it didn't work. |
Strange. Does the issue happen even if using only video or camera plugin only? |
Yes. On my RPi4, if This time may be causing the application initialization sequence to be incorrect. As a test,
|
I was not able to repro the issue. Can you please check if |
I attached a log (ng_log.txt) when the phenomenon occurs and a log (ok_log.txt) when it works correctly.
|
Fixed sony#330 Signed-off-by: Hidenori Matsubayashi <hidenori.matsubayashi@gmail.com>
@makotosato-at I'm not 100% sure, but can you please try #336 patch? |
Thank you for the patch. |
Fixed sony#330 Signed-off-by: Hidenori Matsubayashi <hidenori.matsubayashi@gmail.com>
I've update the patch. Can you please try with it again? Also, please try flullscreen ( |
Thank you.
Both ok. |
Fixed #330 Signed-off-by: Hidenori Matsubayashi <hidenori.matsubayashi@gmail.com>
Thanks for helping to fix this issue. |
Dear Sir
When we run our Flutter APP, it start failed, and show the error log : xdg_surface has never been configured
Can you help me introduce how to debug this issue, Thanks
The text was updated successfully, but these errors were encountered: