Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

51.2.1.1: Command-line apps not working on Linux (including NAIP)

Open ajwfrost opened this issue 7 months ago • 4 comments

Using 51.2.1.1 on Linux platforms, a command-line application throws an error relating to GTK. Happens also when using the native application packager tool, called by ADT when creating a "bundle".

Seems that a change in how GTK3 works means that the existing code - which previously didn't need a display connection - now does...

Looking at alternative options for how to achieve this, and hoping to get a fix out asap.

thanks

ajwfrost avatar Apr 17 '25 22:04 ajwfrost

Thanks, now using AIR 51.2.1.2, adt works

but it doesn't work in Wayland, can you add to use Xwayland in the runtime ?

// Set GDK_BACKEND to x11 for XWayland
g_setenv("GDK_BACKEND", "x11", TRUE);

Note : on Fedora 42, it's impossible to switch on Xorg...


on arm64, I have a libssl error when I click on my app icon :

Error loading the runtime (libssl.so.1.1: cannot open shared object file: No such file or directory)

and

ldd libssl.so.1.1

return on arm64 :

linux-vdso.so.1 (0x0000ffff9cccc000)
libcrypto.so.1.1 => not found
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff9ca00000)
/lib/ld-linux-aarch64.so.1 (0x0000ffff9cc8f000)

my app doesn't work

return on amd64 :

linux-vdso.so.1 (0x00007ffc02cde000)
libcrypto.so.1.1 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x0000749a2022f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000749a1f800000)
/lib64/ld-linux-x86-64.so.2 (0x0000749a2024c000)

and my app work without error ???


and I have too a scale factor problem on 4K screen :

Image

I have the same result on Kubuntu (200% scaling)

pol2095 avatar Apr 22 '25 18:04 pol2095

Any news ?

I created a flatpak using gtk3, it's more faster, but impossible on arm64 due to the libssl error. export LD_LIBRARY_PATH=/path/to/air/sdk/runtimes/air/linux-arm64/Adobe\ AIR/Versions/1.0/Resources isn't possible for app release (distribution).

pol2095 avatar Apr 24 '25 08:04 pol2095

  1. the command-line apps, and bundle packaging, should now work with 51.2.1.2
  2. the use under Wayland is in progress - we have a temporary fix which will work with XWayland per your suggestion above, which will be out in 51.2.1.3 within the next week or two
  3. problems with the load paths for the ssl/crypto libraries are being investigated, hopefully also a fix will be ready for 51.2.1.3
  4. for the scale factor thing, this is presumably the same as #1123 which we can now start to look at given we have the GTK3 code in place now..

thanks

ajwfrost avatar Apr 25 '25 05:04 ajwfrost

You can reproduce the scaling problem in a full HD screen (1920 x 1080) adding :

export GDK_SCALE=2

pol2095 avatar Apr 27 '25 05:04 pol2095