phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.dev
GNU Affero General Public License v3.0
1.44k stars 110 forks source link

Desktop version for Linux doesn't work on Fedora 40 #1729

Open jozsefk9 opened 6 days ago

jozsefk9 commented 6 days ago

Describe the bug

Installation was successful: https://zigbin.io/1c4bd2

But after starting the app, it just keeps saying: Oops! Something went wrong. Trying to restart the app...

Screenshot attached.

29Jun2024-22^23^07

Reproduction

  1. Install it with wget2 -qO- https://updates.phcode.io/linux/installer.sh | bash
  2. Run it with: /home/jk/.phoenix-code/phoenix-code

Expected behavior

No response

OS, Browser and Phoenix versions

  1. Linux fedora 6.9.5-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jun 16 15:47:09 UTC 2024 x86_64 GNU/Linux
  2. latest desktop app version

logs or debug stack trace if any

No response

Additional context

No response

abose commented 6 days ago

Thanks for reporting the issue. Will investigate.

charlypa commented 5 days ago

@jozsefk9 can you please try sudo dnf update and install Phoenix Code again and see if it fixes the issue

jozsefk9 commented 5 days ago

@jozsefk9 can you please try sudo dnf update and install Phoenix Code again and see if it fixes the issue

No difference: 30Jun2024-19^57^54

charlypa commented 5 days ago

@jozsefk9 It looks likes your windowing manager is IceWM we have not tested Phoenix Code with it. I will test it is there a place where I can get iso for your OS?

jozsefk9 commented 5 days ago

@jozsefk9 It looks likes your windowing manager is IceWM we have not tested Phoenix Code with it. I will test it is there a place where I can get iso for your OS?

I just used Fedora Everything from here: https://alt.fedoraproject.org/ Direct link: https://download.fedoraproject.org/pub/fedora/linux/releases/40/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-40-1.14.iso

And installed the Minimal Install version, then after reboot I added things I need, among which were IceWM, LightDM and all other packages. In total, more than 1700 packages. That's what DNF does automatically actually, because it pulls the dependencies.

charlypa commented 5 days ago

Screenshot from 2024-07-01 02-19-27 I was able to make it work I doubt your theme is causing some issues

jozsefk9 commented 5 days ago

Maybe. But then Phoenix is the only one application which doesn't work in this system. I tried many of them: Visual Studio Code, Geany, CudaText, Focus Editor, LiteXL, Lapce, Sublime Text, Kate, JetBrains Fleet... They all worked.

charlypa commented 5 days ago

@jozsefk9 is there a way to share coredump to debug further

charlypa commented 5 days ago

@jozsefk9 would you please share the output of following command ldd /home/jk/.phoenix-code/phoenix-code

jozsefk9 commented 5 days ago

@jozsefk9 would you please share the output of following command ldd /home/jk/.phoenix-code/phoenix-code

Yes please: https://zigbin.io/3e87dd

abose commented 5 days ago

Maybe. But then Phoenix is the only one application which doesn't work in this system. I tried many of them: Visual Studio Code, Geany, CudaText, Focus Editor, LiteXL, Lapce, Sublime Text, Kate, JetBrains Fleet... They all worked.

To keep phcode as lightweight as possible, we use system installed components mostly. That however leads to some issues like this in configurations we have not accounted for in rare cases. And as we get reports like this, we fix the issues. Phcode is only 3 months old at this point in linux, so we still have a bit more work to do for universal support in linux. We are working on this, thanks for helping.

charlypa commented 3 days ago

@jozsefk9 There was an issue with default installation in fedora40. We just updated our script. could you please run installation with new script and see if it fixes your issue wget -qO- https://updates.phcode.io/linux/installer.sh | bash

charlypa commented 3 days ago

@jozsefk9 If installation still fails would you please share output of below command

sudo dnf list --showduplicates gstreamer1 sudo dnf list --showduplicates gstreamer1-plugins-base sudo dnf list --showduplicates gstreamer1-plugins-good

jozsefk9 commented 3 days ago

@jozsefk9 If installation still fails would you please share output of below command

sudo dnf list --showduplicates gstreamer1 sudo dnf list --showduplicates gstreamer1-plugins-base sudo dnf list --showduplicates gstreamer1-plugins-good

Installation didn't seems to work, even though it says it was successful, because Phoenix behaves the same as it did before. This is the installation: https://zigbin.io/272dd3

GStremaer 1: https://zigbin.io/93879f

Plugins-Base: https://zigbin.io/0537a7

Plugin-Good: https://zigbin.io/d973fc

charlypa commented 3 days ago

@jozsefk9 we doubt Phoneix is loading with an older version of Webkit. To confirm that would you please run the below command and share the results

sudo find / -name WebKitWebProcess

jozsefk9 commented 3 days ago

@jozsefk9 we doubt Phoneix is loading with an older version of Webkit. To confirm that would you please run the below command and share the results

sudo find / -name WebKitWebProcess

Here is the result:

/usr/libexec/webkit2gtk-4.1/WebKitWebProcess
/usr/libexec/webkitgtk-6.0/WebKitWebProcess
/usr/libexec/webkit2gtk-4.0/WebKitWebProcess
abose commented 1 day ago

@jozsefk9 we doubt Phoneix is loading with an older version of Webkit. To confirm that would you please run the below command and share the results

sudo find / -name WebKitWebProcess

Here is the result:

/usr/libexec/webkit2gtk-4.1/WebKitWebProcess
/usr/libexec/webkitgtk-6.0/WebKitWebProcess
/usr/libexec/webkit2gtk-4.0/WebKitWebProcess

I will shate a custom debug build to troubleshoot this by tomorrow. We are unable to recreate this issue otherwise from tge isos.

abose commented 20 hours ago

@jozsefk9 Thanks for helping with the issue. I have attached a custom debug build to understand the failure in your machine.

image

jozsefk9 commented 19 hours ago

@abose

I filtered out only the errors and expanded them. See if this is good enough for you: https://zigbin.io/f016f8

abose commented 19 hours ago

Can you paste the full error logs? It appears that most of the boot-time Tauri API calls failed. Will be good to have more context. Also I was unable to repro the issue from my end. Can you provide some step by step instructions on the exact iso's used/how to setup the machine for the configuration you are using. That will help me isolate the issue better.

jozsefk9 commented 19 hours ago

@abose

Here is the complete log: https://zigbin.io/bd0b8c

ISO is the one I mentioned earlier: https://download.fedoraproject.org/pub/fedora/linux/releases/40/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-40-1.14.iso

I installed the option: Minimal Install. And I checked NOTHING at all from the right side of the screen. Then after reboot I added the packages I need:

ImageMagick alacritty bat bluez bzip2 cups cups-pdf firefox fuse git google-noto-color-emoji-fonts google-noto-emoji-fonts gtk2 gtk3 gtk4 gvfs-mtp helix icewm icewm-data icewm-minimal-session icewm-themes imwheel jmtpfs libxkbcommon-x11 lightdm mc nemo numlockx pipewire qt5pas-devel qt6-qtbase sane-backends-libs scribus smartmontools tesseract-langpack-srp tesseract-langpack-srp_latn unzip wget2 xev xorg-x11-server-Xorg xsel xset zstd opensc pcsc-lite-acsccid

Then I enabled rpmfusion and installed more packages, with --allowerasing option:

blender bluez-tools btop ffmpeg gimp gparted hunspell-sr hyphen-en hyphen-sr inkscape intel-media-driver java-latest-openjdk keepassxc libnsl libreoffice libvdpau-va-gl meld mpv mupdf nodejs obs-studio perl-Image-ExifTool python3-ansi2html thunderbird vlc yt-dlp gxkb --allowerasing

More or less that's it.

abose commented 19 hours ago

Thanks for the details. I will try recreating the issue locally.

jozsefk9 commented 19 hours ago

Of course you have to: sudo systemctl enable lightdm and: sudo systemctl set-default graphical.target