Created attachment 161154 [details] Subcircuit that causes crash SUMMARY Ktechlab crashes when I try to add a custom subcircuit to another circuit. This started happening this week, it was working without problems before. This only happens with custom subcircuits and not the default ones. BACKTRACE QSocketNotifier: Can only be used with threads started with QThread qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken. (process:8187): Gtk-WARNING **: 10:59:19.818: Locale not supported by C library. Using the fallback 'C' locale. Gtk-Message: 10:59:19.836: Failed to load module "pk-gtk-module" kf.xmlgui: Shortcut for action "file_new" "New File" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist org.kde.ktechlab: End and start nodes for the connector do not both exist kf.windowsystem: Could not find any platform plugin kf.xmlgui: Shortcut for action "cancelCurrentOperation" "Cancel" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. kf.xmlgui: Shortcut for action "edit_delete" "Delete" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. kf.xmlgui: Shortcut for action "edit_raise" "Raise Selection" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. kf.xmlgui: Shortcut for action "edit_lower" "Lower Selection" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. org.kde.ktechlab: Could not register id "node1__16" org.kde.ktechlab: Could not register id "node1__18" Violación de segmento (`core' generado) STEPS TO REPRODUCE 1. Create a custom sub circuit. 2. Add it to another circuit. OBSERVED RESULT Program crashes with sigfault. EXPECTED RESULT Use subcircuit without problems. SOFTWARE/OS VERSIONS Fedora 37 Linux 6.4.11-100.fc37.x86_64
GDB: Thread 1 "ktechlab" received signal SIGSEGV, Segmentation fault. Connector::removeConnector (this=0x7ffff5fbad86 <QVector<unsigned int>::resize(int)+310>) at /usr/src/debug/ktechlab-0.51.0-1.fc37.x86_64/src/connector.cpp:93 Downloading source file /usr/src/debug/ktechlab-0.51.0-1.fc37.x86_64/src/connector.cpp
Hello, Thank you for the bug report. I think I have localized and fixed this issue. The code is in git master in KtechLab. Release 0.51.0 is affected, while 0.50.0 is not. Can you test the latest code from KTechLab git master?
Hello(In reply to Zoltan Padrah from comment #2) > Hello, > > Thank you for the bug report. > > I think I have localized and fixed this issue. The code is in git master in > KtechLab. Release 0.51.0 is affected, while 0.50.0 is not. > > Can you test the latest code from KTechLab git master? Hello Zoltan, I switched to version 50.0. I didn't build it from source, just a rpm. It worked for several months but right now I'm experiencing the same issue. Regards.
(In reply to Guillermo González García from comment #3) > Hello Zoltan, > > I switched to version 50.0. I didn't build it from source, just a rpm. It > worked for several months but right now I'm experiencing the same issue. > > Regards. Is it possible that the package has got automatically upgraded to version 50.0, causing the crashes to appear again? Can you check the version of KTechLab ?
(In reply to Zoltan Padrah from comment #4) > (In reply to Guillermo González García from comment #3) > > Hello Zoltan, > > > > I switched to version 50.0. I didn't build it from source, just a rpm. It > > worked for several months but right now I'm experiencing the same issue. > > > > Regards. > > Is it possible that the package has got automatically upgraded to version > 50.0, causing the crashes to appear again? Can you check the version of > KTechLab ? Hello Zoltan, I have build the software from Ktechlab git and it's working perfectly. Thank you for you quick responses, have a nice day.