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

Linux executable just pop a black screen #52

Open
KGriss opened this issue Sep 29, 2024 · 7 comments
Open

Linux executable just pop a black screen #52

KGriss opened this issue Sep 29, 2024 · 7 comments
Labels
bug Something isn't working fedora

Comments

@KGriss
Copy link

KGriss commented Sep 29, 2024

When I open the executable from the Linux archive, it only opens a black window. Nothing more.
Tested with files from Github on different versions, including the latest one.

@HemantKArya
Copy link
Owner

Hi @KGriss thanx for submitting this issue I know it is late reply 🙂, But still...about your issue I don't know about linux archive one but here the latest version is working fine in XUbuntu OS.
image

I guess it may be not working in some Linux system, can you clarify more and what Flavor you are using? So that I can debug this issue for that system.

@KGriss
Copy link
Author

KGriss commented Oct 5, 2024

I am using Fedora Workstation 40 and Gnome 46 as a desktop environnement. Tested with the last version of Bloomee and I still just get a black screen.

@HemantKArya
Copy link
Owner

HemantKArya commented Oct 5, 2024

Okay then, In the meantime, if anyone has any insights on this issue or wishes to discuss related matters, please feel free to do so here.

@HemantKArya HemantKArya added bug Something isn't working fedora labels Oct 5, 2024
@decepticlown
Copy link

Fedora uses wayland as default. @KGriss could you execute it from terminal and see what's printing and post it here?

@KGriss
Copy link
Author

KGriss commented Nov 11, 2024

Just got this log using the latest version of Bloomee.

flutter: 
--------------------------------------------------------------------------------
media_kit: ERROR: MediaKit.ensureInitialized
This indicates that one or more required dependencies could not be located.

Refer to "Installation" section of the README for further details:
GitHub  : https://github.com/media-kit/media-kit#installation
pub.dev : https://pub.dev/packages/media_kit#installation

TIP: Copy-paste required packages from the above link to your pubspec.yaml.

If you recently added the packages, make sure to re-run the project ("hot-restart" & "hot-reload" is not sufficient for native plugins).
--------------------------------------------------------------------------------

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: Cannot find libmpv at the usual places. Depending upon your distribution, you can install the libmpv package to make shared library available globally. On Debian or Ubuntu based systems, you can install it with: apt install libmpv-dev.
#0      NativeLibrary.ensureInitialized (package:media_kit/src/player/native/core/native_library.dart:78)
#1      nativeEnsureInitialized (package:media_kit/src/player/native/player/real.dart:47)
#2      MediaKit.ensureInitialized (package:media_kit/src/media_kit.dart:30)
#3      JustAudioMediaKit.ensureInitialized (package:just_audio_media_kit/just_audio_media_kit.dart:78)
#4      main (package:Bloomee/main.dart:109)
#5      _runMain.<anonymous closure> (dart:ui/hooks.dart:301)
#6      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297)
#7      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184)

@KGriss
Copy link
Author

KGriss commented Nov 11, 2024

It seems that libmpv is missing, in addition to a flutter component media_kit ?

Also, I am still using Fedora 40 with Wayland as default and X11 supported, but the latest Fedora release, version 41, removed the X11 packages.

@mrcodefrost
Copy link

media_kit is not missing @KGriss @HemantKArya . It requires libmpv to work, in your case libmpv is the only thing missing which needs to be installed.
Same has been stated in the media_kit docs.

image

Solution : The bug should be fixed by running

sudo apt install libmpv-dev mpv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fedora
Projects
None yet
Development

No branches or pull requests

5 participants
@decepticlown @KGriss @HemantKArya @mrcodefrost and others