1 (edited by blueshack 2023-11-08 12:08:46)

Topic: AppImage: Crash when in textfield -> right click

I don't know if I should open an issue in mantis bugtracker or just report here.

I've just downloaded
QElectroTech_0.100.0-r7981-x86_64.AppImage

Everything fine.

But!
If I double click on a textobject (to edit the text)
and the do a right click to open the advanced editor
it crashes.

Thanks, Andi

using on Linux Mint 20.2 Cinnamon

Re: AppImage: Crash when in textfield -> right click

I can't reproduce your crash here on my Debian, what your OS?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

3 (edited by blueshack 2023-11-08 13:21:28)

Re: AppImage: Crash when in textfield -> right click

Hi
Linux Mint 20.2 Cinnamon

maybe to be precise.

I double click the text field
I want open the context menue (for advanced editor) with right mouse click to text field -> crash.

using on Linux Mint 20.2 Cinnamon

Re: AppImage: Crash when in textfield -> right click

Ok, I saw the crash, but it didn't crash with my Debian deb packages so I think it's because of old versions of Qt on the QEMU/KVM Debian 11 VM..

FYI, I tried to build a new VM based on DigiKam scripts for the appimage with xubuntu 18.04 GCC 11 and compile Qt 5.15.11 but it was not possible yet to export the sqlite3 database without crashing the apimage...
https://invent.kde.org/graphics/digikam … type=heads

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

FYI, I have made a little progress in my work, after hacks off /3rdparty/ext_qt5/CMakeLists.txt for Qt 5.15.11,  I no longer have a crash in the SQLite export and it's work, unfortunately my Appimage no longer works, I am going to upgrade to XUbuntu 20.04..

diff --git a/project/bundles/3rdparty/CMakeLists.txt b/project/bundles/3rdparty/CMakeLists.txt
index cce6f9478e..17125be48c 100644
--- a/project/bundles/3rdparty/CMakeLists.txt
+++ b/project/bundles/3rdparty/CMakeLists.txt
@@ -5,7 +5,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
 
-cmake_minimum_required(VERSION 3.16)
+cmake_minimum_required(VERSION 3.3.2)
 
project(digikam-bundles)
 
diff --git a/project/bundles/3rdparty/ext_qt5/CMakeLists.txt b/project/bundles/3rdparty/ext_qt5/CMakeLists.txt
index d2369b53fc..d92a921945 100644
--- a/project/bundles/3rdparty/ext_qt5/CMakeLists.txt
+++ b/project/bundles/3rdparty/ext_qt5/CMakeLists.txt
@@ -38,7 +38,7 @@ ExternalProject_Add(ext_qt5
                   -release
                   -opensource
                   -confirm-license
-                  -sql-sqlite                       # Compile Sqlite SQL plugin
+                  -system-sqlite                # Compile Sqlite SQL plugin
                   -sql-mysql                        # Compile Mysql SQL plugin
#                  -iconv                            # International string conversion
                   -icu
diff --git a/project/bundles/appimage/01-build-host.sh b/project/bundles/appimage/01-build-host.sh
index 6e14ec6f23..9507b258f3 100755
--- a/project/bundles/appimage/01-build-host.sh
+++ b/project/bundles/appimage/01-build-host.sh
@@ -81,18 +81,11 @@ cmake $ORIG_WD/../3rdparty \
       -DKA_VERSION=$DK_KA_VERSION \
       -DKP_VERSION=$DK_KP_VERSION \
       -DKDE_VERSION=$DK_KDE_VERSION \
-      -DENABLE_QTVERSION=$DK_QTVERSION \
-      -DENABLE_QTWEBENGINE=$DK_QTWEBENGINE
+      -DENABLE_QTVERSION=$DK_QTVERSION
 
# Install new cmake recent version and shared lib
 
cmake --build . --config RelWithDebInfo --target ext_cmake           -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_jasper          -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_libde265        -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_libjxl          -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_libaom          -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_libavif         -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_ffmpeg          -- -j$CPU_CORES
 
#################################################################################################
 
@@ -107,9 +100,7 @@ cmake $ORIG_WD/../3rdparty \
       -DKA_VERSION=$DK_KA_VERSION \
       -DKP_VERSION=$DK_KP_VERSION \
       -DKDE_VERSION=$DK_KDE_VERSION \
-      -DENABLE_QTVERSION=$DK_QTVERSION \
-      -DENABLE_QTWEBENGINE=$DK_QTWEBENGINE \
-      -DQTWEBENGINE_VERSION=$DK_QTWEBENGINEVERSION
+      -DENABLE_QTVERSION=$DK_QTVERSION
 
# Low level libraries and Qt dependencies
# NOTE: The order to compile each component here is very important.
@@ -121,9 +112,7 @@ cmake --build . --config RelWithDebInfo --target ext_openssl         -- -j$CPU_C
 
cmake --build . --config RelWithDebInfo --target ext_qt$DK_QTVERSION -- -j$CPU_CORES    # depend of tiff, png, jpeg
 
-if [[ $DK_QTWEBENGINE = 0 ]] ; then
-    cmake --build . --config RelWithDebInfo --target ext_qtwebkit    -- -j$CPU_CORES    # depend of Qt and libicu
-fi
+
 
# Clean up previous openssl install
 
@@ -131,9 +120,7 @@ rm -fr /usr/local/lib/libssl.a    || true
rm -fr /usr/local/lib/libcrypto.a || true
rm -fr /usr/local/include/openssl || true
 
-cmake --build . --config RelWithDebInfo --target ext_imagemagick     -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_opencv          -- -j$CPU_CORES
-cmake --build . --config RelWithDebInfo --target ext_heif            -- -j$CPU_CORES
+
 
#################################################################################################
 
diff --git a/project/bundles/appimage/common.sh b/project/bundles/appimage/common.sh
index 9fe359f608..fb731323dc 100644
--- a/project/bundles/appimage/common.sh
+++ b/project/bundles/appimage/common.sh
@@ -132,17 +132,5 @@ invent.kde.org \
tinami.kde.org \
"
 
-if [[ ! -f $HOME/.ssh/known_hosts ]] ; then
-    touch $HOME/.ssh/known_hosts
-fi
-
-for server in $SERVER_LIST; do
-
-    echo "Register $server"
-
-    ssh-keygen -R $server
-    ssh-keyscan -H $server >> $HOME/.ssh/known_hosts
-
-done
 
}
diff --git a/project/bundles/appimage/config.sh b/project/bundles/appimage/config.sh
index 0b243d3a88..e560ccfde5 100644
--- a/project/bundles/appimage/config.sh
+++ b/project/bundles/appimage/config.sh
@@ -61,7 +61,7 @@ DK_KA_VERSION="23.08.1"
DK_DEBUG=0
 
# Option to use QtWebEngine instead QtWebkit
-DK_QTWEBENGINE=1
+DK_QTWEBENGINE=0
 
# Installer sub version to differentiates newer updates of the installer itself, even if the underlying application hasn’t changed.
#DK_SUBVER="-01"
@@ -70,7 +70,7 @@ DK_QTWEBENGINE=1
DK_SIGN=0
 
# Upload automatically bundle to files.kde.org (pre-release only).
-DK_UPLOAD=1
+DK_UPLOAD=0
DK_UPLOADURL="digikam@tinami.kde.org"
 
# KDE frameworks version + Upload URL.
diff --git a/project/bundles/appimage/host_ubuntu.inc b/project/bundles/appimage/host_ubuntu.inc
index f70880b414..0d5f8e2c6d 100644
--- a/project/bundles/appimage/host_ubuntu.inc
+++ b/project/bundles/appimage/host_ubuntu.inc
@@ -211,11 +211,7 @@ for pkg in ${optional_packages[@]}; do
     echo "-------------------------------------------------------------------"
done
 
-# Install more recent version of NodeJs for QtWebEngine.
-# https://learnubuntu.com/update-node-js/
 
-curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
-sudo apt-get install nodejs
 
echo -e "---------- Clean-up Old Packages\n"

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

Ok now \o/,

QElectroTech V 0.100.0-dev
Compilation : GCC 9.4.0
Built with Qt 5.15.11 - x86_64 - Date : Nov 9 2023 : 18:34:24
Git Revision : 9f2dbfa39ac3ad10a520983904b21a8685ea4cbe
Run with Qt 5.15.11 using 48 thread(s)

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

nomicons/smile

Thank you!

using on Linux Mint 20.2 Cinnamon

Re: AppImage: Crash when in textfield -> right click

Updated and rebuilded to more recent version of compiler:

QElectroTech V 0.100.0-dev
Compilation : GCC 13.1.0
Built with Qt 5.15.11 - x86_64 - Date : Nov 10 2023 : 13:58:25
Git Revision : 7447a7fd44271604868a0007698d96429eeaccab 
Run with Qt 5.15.11 using 48 thread(s)
CPU : model name : AMD Ryzen Threadripper 3960X 24-Core Processor 
RAM Total : 64 GB
RAM Available : 42 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev df) 
GPU RAM : Video memory: 10240MB Dedicated video memory: 10240 MB Currently available dedicated video memory: 8620 MB 
OS : linux - x86_64 - Version : Debian GNU/Linux trixie/sid - Kernel : 6.5.0-4-amd64

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

Good Morning!

I've just tried

QElectroTech_0.100.0-r7986-x86_64.AppImage
and
QElectroTech_0.100.0-r7989-x86_64.AppImage
They do not start at all on my system.

QElectroTech_0.100.0-r7981-x86_64.AppImage
did start, but with the described crash. (all other program functions worked perfect nomicons/wink

As an linuxuser with limited expirience I tried to solve the problem on my site to start the newest build. Maybe for other, this may be usefull.

Starting on command line:

./QElectroTech_0.100.0-r7989-x86_64.AppImage

gave me errors.

./qelectrotech: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by ./qelectrotech

and some more.

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

showed me

........
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_DEBUG_MESSAGE_LENGTH

So up to GLIBCXX_3.4.32 was missing.

sudo apt-get install libstdc++6

alone didn't changed anything
So I've done

sudo apt-get install libstdc++6 

AND   -->TAB, showed me some available versions.

I've picked

sudo apt-get install libstdc++6-13-dbg

(the latest one)

And this did the magic for me.

So thank you  scorpio810 for solving the issue so fast!!!!

using on Linux Mint 20.2 Cinnamon

Re: AppImage: Crash when in textfield -> right click

Thank you for feedback.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

objdump -p ./QElectroTech_0.100.0-r7989-x86_64.AppImage 

./QElectroTech_0.100.0-r7989-x86_64.AppImage:     format de fichier elf64-x86-64

En-tête de programme:
    PHDR off    0x0000000000000040 vaddr 0x0000000000400040 paddr 0x0000000000400040 align 2**3
         filesz 0x0000000000000188 memsz 0x0000000000000188 flags r-x
  INTERP off    0x00000000000001c8 vaddr 0x00000000004001c8 paddr 0x00000000004001c8 align 2**0
         filesz 0x000000000000001c memsz 0x000000000000001c flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**21
         filesz 0x0000000000022884 memsz 0x0000000000022884 flags r-x
    LOAD off    0x0000000000023000 vaddr 0x0000000000623000 paddr 0x0000000000623000 align 2**21
         filesz 0x0000000000000678 memsz 0x0000000000000798 flags rw-
 DYNAMIC off    0x00000000000231e0 vaddr 0x00000000006231e0 paddr 0x00000000006231e0 align 2**3
         filesz 0x00000000000001c0 memsz 0x00000000000001c0 flags rw-
EH_FRAME off    0x000000000001ec50 vaddr 0x000000000041ec50 paddr 0x000000000041ec50 align 2**2
         filesz 0x0000000000000a14 memsz 0x0000000000000a14 flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-

Section dynamique:
  NEEDED               libpthread.so.0
  NEEDED               libz.so.1
  NEEDED               libdl.so.2
  NEEDED               libc.so.6
  INIT                 0x0000000000401730
  FINI                 0x0000000000419568
  HASH                 0x00000000004001e8
  STRTAB               0x0000000000400c30
  SYMTAB               0x0000000000400450
  STRSZ                0x00000000000002ae
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x00000000006233f0
  PLTRELSZ             0x0000000000000678
  PLTREL               0x0000000000000007
  JMPREL               0x00000000004010b8
  RELA                 0x0000000000400ff8
  RELASZ               0x00000000000000c0
  RELAENT              0x0000000000000018
  VERNEED              0x0000000000400f88
  VERNEEDNUM           0x0000000000000003
  VERSYM               0x0000000000400ede

Références de version:
 requis par libdl.so.2:
    0x09691a75 0x00 05 GLIBC_2.2.5
 requis par libpthread.so.0:
    0x09691a75 0x00 03 GLIBC_2.2.5
 requis par libc.so.6:
    0x0d696913 0x00 04 GLIBC_2.3
    0x09691a75 0x00 02 GLIBC_2.2.5

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

ldd --version 

on Ubuntu 20.04 VM show me GLIBC 2.31
In previous VM based on Debian 11 GLIBC 2.31 too, but you show crashes..

Here on my Debian sid:

laurent@debian:~$ ldd --version
ldd (Debian GLIBC 2.37-12) 2.37
Copyright © 2023 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de
reproduction. AUCUNE garantie n'est donnée; tant pour des raisons
COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER.
Écrits par Roland McGrath et Ulrich Drepper.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

https://stackoverflow.com/questions/769 … gcc-13-2-0

So I use it to get new GCC 11 and now 13
https://invent.kde.org/graphics/digikam … heads#L233

So

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: AppImage: Crash when in textfield -> right click

Rebuild with GCC 9

QElectroTech V 0.100.0-dev
Compilation : GCC 9.4.0
Built with Qt 5.15.11 - x86_64 - Date : Nov 12 2023 : 10:26:57
Git Revision : 4d501361460dbcf648944c0ac39f9a16b4b49bbf
Run with Qt 5.15.11 using 48 thread(s)

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."