View Issue Details

IDProjectCategoryView StatusLast Update
0000295QElectroTechDiagram Editorpublic2024-01-16 18:08
ReporterFekete_Istvan_HU Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version22.04
Summary0000295: Crash onContext menu PopUP, when right click on already selected wire
DescriptionHello!

First of all, I would like to thank you for this serious schematic editor that is free to the community, which contains lot of work and free time.

So on my system i found the following bug:

1. Select one already placed wire with left mouse lick (wire will be "thin red" colour)
2. Move away the mouse from this selected wire, than take back the mouse pointer on this already selected wire. The wire will be "thick red"
3. Clicking with right mouse button, the program will crash

I am also a little exercised C++ programmer, I don't want to be fussy, but it seems to me that an exception occurs due to an invalid or null pointer in the event triggered by the right mouse button in this special case.

here is used my version:

QElectroTech V 0.90-DEV+ea26f0b04b0a58100c957a06d79751d3
Compilation : GCC 9.3.0
Built with Qt 5.12.8 - Date : Nov 5 2021 : 09:46:39
Run with Qt 5.15.3 using 16 thread(s)
CPU : model name : Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz
RAM Total : 15925 MB
RAM Available : 11312 MB
GPU : NVIDIA Corporation GP107GL [Quadro P1000] (rev a1)
GPU RAM : @ToDo
OS : linux - x86_64 - Version : Ubuntu 22.04.1 LTS - Kernel : 5.15.0-53-generic
*** Qt screens ***
( 1 : 1920 x 1080 )
( 2 : 1920 x 1080 )
( 3 : 1920 x 1080 )
( 4 : 1920 x 1080 )

Thank for Your wonderful work!

Steve
Steps To Reproduce1. Select one already placed wire with left mouse lick (wire will be "thin red" colour)

2. Move away the mouse from this selected wire, than take back the mouse pointer on this already selected wire. The wire will be "thick red"

3. Clicking with right mouse button, the program will crash
TagsNo tags attached.
Attached Files

Activities

scorpio810

2024-01-15 14:16

administrator   ~0000685

Last edited: 2024-01-15 14:27

Hello Steve and thanks for your compliments.

I suspect your Nvidia driver's to crash software..

BTW, we know that 0.90 release contains some bugs, fixed on development 0.100.0.
https://github.com/qelectrotech/qelectrotech-source-mirror/commits/0.9.1/

Please try Appimage: just download and make it executable
Howto -> https://appimage.github.io/QElectroTech/

Download:
https://download.qelectrotech.org/qet/builds/AppImage/0.100.0/




Best regards,
Laurent

Fekete_Istvan_HU

2024-01-15 16:10

reporter   ~0000686

Hello!

Thank You. After updating my gcc to version 13, which must have for Your new development version 0.100, i tested the new version and the problem is GONE!

Great work! Thanks a lot!

P.S: I hope all function that worked well until now will not break after this update.
(The proverb also says: Fix one, spoil two! :-))

scorpio810

2024-01-15 20:40

administrator   ~0000687

Last edited: 2024-01-15 20:41

Great, thanks for your feedback.

ps: you do not need to install GCC in version 13...
in principle the libraries are integrated into the appimage.

Fekete_Istvan_HU

2024-01-16 08:26

reporter   ~0000688

When i do first run, i get this error in terminal: "GLIBCXX_3.4.20 not found"

Running this command, i have not seen this necessary version:

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

After some google searches I found the solution:

sudo apt install gcc-13 g++-13

After this i get:

...
GLIBCXX_3.4.30
GLIBCXX_3.4.31
GLIBCXX_3.4.32
GLIBCXX_TUNABLES
GLIBCXX_DEBUG_MESSAGE_LENGTH

After this the program runs well.

scorpio810

2024-01-16 08:53

administrator   ~0000689

Last edited: 2024-01-16 08:55

Thanks for feedback.

Yes I saw a glibc security update in my Xubuntu Focal Appimage builder VM recently..
https://launchpad.net/ubuntu/focal/+source/glibc

Same bug recently here too
https://bugs.kde.org/show_bug.cgi?id=478222

After, maybe my bad, I forced GCC to version 13 in last Appimage build.
https://qelectrotech.org/wiki_new/doc/packaging_debian#appimage

--- 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"
 
@@ -231,8 +227,8 @@ echo -e "---------- Install more recent version of compiler\n"
 # https://linuxconfig.org/how-to-switch-between-multiple-gcc-and-g-compiler-versions-on-ubuntu-20-04-lts-focal-fossa
 
 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
-sudo apt install -y gcc-11
-sudo apt install -y g++-11
-sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
-sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
+sudo apt install -y gcc-13
+sudo apt install -y g++-13
+sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
+sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13

scorpio810

2024-01-16 15:51

administrator   ~0000690

Well, return to old Xubuntu VM Qt 5.15.11 GCC 9.x

Issue History

Date Modified Username Field Change
2024-01-15 10:04 Fekete_Istvan_HU New Issue
2024-01-15 10:04 Fekete_Istvan_HU File Added: ScreenShot 2024-01-15 09-33-18.png
2024-01-15 10:04 Fekete_Istvan_HU File Added: ScreenShot 2024-01-15 09-32-14.png
2024-01-15 14:16 scorpio810 Note Added: 0000685
2024-01-15 14:17 scorpio810 Note Edited: 0000685
2024-01-15 14:18 scorpio810 Note Edited: 0000685
2024-01-15 14:27 scorpio810 Note Edited: 0000685
2024-01-15 16:10 Fekete_Istvan_HU Note Added: 0000686
2024-01-15 20:40 scorpio810 Note Added: 0000687
2024-01-15 20:41 scorpio810 Note Edited: 0000687
2024-01-16 08:26 Fekete_Istvan_HU Note Added: 0000688
2024-01-16 08:53 scorpio810 Note Added: 0000689
2024-01-16 08:55 scorpio810 Note Edited: 0000689
2024-01-16 15:51 scorpio810 Note Added: 0000690
2024-01-16 18:08 scorpio810 Status new => resolved
2024-01-16 18:08 scorpio810 Resolution open => fixed