desktop-example-app icon indicating copy to clipboard operation
desktop-example-app copied to clipboard

Application does not work on Ubuntu 22.04

Open Fl4m3Ph03n1x opened this issue 3 years ago • 3 comments

Following this issue: https://github.com/elixir-desktop/desktop-example-app/issues/14

I installed a fresh version of Ubuntu in a VM:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

I am using the following versions:

elixir          v1.13-otp-24    /home/fl4m3/.tool-versions
erlang          24.3.4          /home/fl4m3/.tool-versions
nodejs          16.17.0         /home/fl4m3/.tool-versions
sqlite          3.39.2          /home/fl4m3/.tool-versions

I also installed wxWidgets 3.2.0 from Github (compiled for my version): https://github.com/wxWidgets/wxWidgets

More specifically, I installed the base version following this guide: https://github.com/wxWidgets/wxWidgets/tree/master/docs/base

After that I followed the normal instructions:

    mix deps.get
    cd assets
    npm install
    cd ..
    mix assets.deploy
    ./run

The first time I launch the app it crashes:

Screenshot from 2022-09-05 11-50-58

Using the browser seems to work, but I also get some errors:

[notice] Casting {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 3, 0, 1, 96, 24,
     [
       {4, "org.freedesktop.DBus.Error.UnknownProperty"},
       {5, 2590},
       {6, ":1.30"},
       {8, "s"}
     ]},
    "Property IconAccessibleDesc not found in interface org.kde.StatusNotifierItem at given path"}
 ], ""}

Fl4m3Ph03n1x avatar Sep 05 '22 09:09 Fl4m3Ph03n1x

That webkit crash message I haven't seen before. For Ubuntu 22.04 I would expect that the built-in (apt) wxWidgets is recent enough. Did you try building with that?

dominicletz avatar Sep 05 '22 11:09 dominicletz

Regarding the noise, this is unfortunately coming from the dbus library, and I'm not sure how to disable it best. Will have a look, but this really shouldn't cause any issues

[notice] Casting {:ok,
 [
   {:dbus_message,
    {:dbus_header, 108, 3, 0, 1, 96, 24,
     [
       {4, "org.freedesktop.DBus.Error.UnknownProperty"},
       {5, 2590},
       {6, ":1.30"},
       {8, "s"}
     ]},
    "Property IconAccessibleDesc not found in interface org.kde.StatusNotifierItem at given path"}
 ], ""}

dominicletz avatar Sep 05 '22 11:09 dominicletz

I installed wxWidget via the tar ball and compiled it for my Ubuntu release. You can check the specific guide I followed: https://github.com/wxWidgets/wxWidgets/tree/master/docs/base

I was not able to find any apt version for wxWidgets for Ubuntu 22.04. The only guide I found was for wxWidgets 2.8 (which is heavily outdated) and it does not work on 22.04 as the packages no longer exist: https://wiki.wxwidgets.org/Installing_and_configuring_under_Ubuntu

Fl4m3Ph03n1x avatar Sep 06 '22 07:09 Fl4m3Ph03n1x

So I finally got Ubuntu 22 installed and was able to reproduce a blank page. Googling for this issue I found this workaround that I've added now to the ./run bash file:

# Ubuntu bug workaround (see e.g. https://github.com/reflex-frp/reflex-platform/issues/735)
export WEBKIT_DISABLE_COMPOSITING_MODE=1

Let me know if this fixes the issue for you as well

dominicletz avatar Nov 08 '22 21:11 dominicletz

I can't test this right now, as I deleted my VM and am out of space, but I am happy this issue got visibility and that a solution was found. I will close this ticket, and thank you for the help as alone I was not able to find a solution.

Fl4m3Ph03n1x avatar Nov 11 '22 11:11 Fl4m3Ph03n1x