Open vludumu opened 3 days ago
Could it be that you have some incorrect values for fontsize in $HOME/.config/vivictpp/vivictpp.toml
?
Otherwise, My best guess is something goes wrong here: https://github.com/vivictorg/vivictpp/blob/35ddd91e6ead94cd7e0591be17053901a3bfcf0c/include/ui/FontSize.hh#L29
Any chance you could try commenting out that block like below and see if it works better then?
/*
if (dpiScaling) {
float dpi;
SDL_GetDisplayDPI(0, &dpi, nullptr, nullptr);
dpiScaleFactor = dpi / REFERENCE_DPI;
}
*/
Thanks for the reply. I checked for files in $HOME/.config/vivictpp/ but the folder was empty.
I tried to compile with the suggested modification and it works. I am under a virtual machine, this maybe related.
Ah good to hear that the fix works at least. Will look into a real fix.
Can you give some details about the VM environment you are using, would help if I could eproduce the problem?
It's running debian testing up to date. I will try to run this modification with a clean install out of the box, I have a save of it, just need to update.
OK, I tried several times but I couldn't make your fix working again and couldn't replicate the state I was in. Now it's hanging without opening the player, but I don't have the error. Without your fix I have the imgui error.
My system is currently : VirtualBox Version 6.1.50_Ubuntu r161033 Kernel: 6.11.2-amd64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.0 clocksource: tsc Desktop: Cinnamon v: 6.0.4 tk: GTK v: 3.24.43 wm: Muffin v: 6.0.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Debian GNU/Linux trixie/sid
Do you need more information ?
Edit : I think I found the culprit, if I install libxext-dev, your fix is working again. And also, if I don't activate the 3D acceleration (with graphism controller VMSVGA), I have the following warnings :
libEGL warning: DRI3: Screen seems not DRI3 capable libEGL warning: DRI2: failed to authenticate libEGL warning: DRI3: Screen seems not DRI3 capable MESA: error: ZINK: failed to choose pdev libEGL warning: egl: failed to create dri2 screen
If it is activated, it works.
I can't launch vivictpp after compiling it under debian testing.
I use the system SDL and SDL_ttf, I can install them directly and I use the following command for vivictpp :
If I open a terminal inside build directory and run the following command :
./vivictpp /home/folder/file.mkv /home/folder/file_enco.mkv
I get this error :
By using the subproject for SDL and SDL_ttf, I need to install libsdl2-dev before running these commands :
And I get the same error.