phcode-dev / phoenix

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

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

Closed jozsefk9 closed 4 months ago

jozsefk9 commented 4 months 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 4 months ago

Thanks for reporting the issue. Will investigate.

charlypa commented 4 months ago

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

jozsefk9 commented 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months ago

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

charlypa commented 4 months ago

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

jozsefk9 commented 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months ago

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

jozsefk9 commented 4 months ago

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

abose commented 4 months ago

@jozsefk9 Can you see if this build works? https://github.com/abose/wer/releases/download/fedoraDebug/portable.debug-2.zip

jozsefk9 commented 4 months ago

@abose It's working fine now :)

abose commented 4 months ago

🥳 fix should be available in next release. Till then the build i shared should help. If there is anything to fix/any feature requests, please create an issue here.

Thanks for helping with the fix.

abose commented 2 months ago

A release is planned for this week with the fix.

We've added your name to the release credits to acknowledge your help. If you would like to modify how your name appears, or prefer to be omitted from the release credits, please let us know by commenting here before September 3rd, @jozsefk9 . image

jozsefk9 commented 2 months ago

A release is planned for this week with the fix.

We've added your name to the release credits to acknowledge your help. If you would like to modify how your name appears, or prefer to be omitted from the release credits, please let us know by commenting here before September 3rd, @jozsefk9 . image

Great! Jozsef is fine. Thank you!