<div dir="ltr"><div>FYI,</div><div><br></div><div>apparently KTechLab 0.51.0 might crash when using subcircuits.</div><div>Release 0.50.0 is not affected.</div><div>Fix is in git master [1]</div><div>Testing is welcome :-)<br></div><div><br></div><div>The crash is introduced by the modernistaion of signals/slots mechanism, where a C++ lambda has been introduced, and I assume that those changes interfere with some object lifetime.</div><div><br></div><div>[1]</div><div><a href="https://invent.kde.org/sdk/ktechlab/-/commit/e52be4ccbec7250f0535e790dfea7aa8c6c0249e">https://invent.kde.org/sdk/ktechlab/-/commit/e52be4ccbec7250f0535e790dfea7aa8c6c0249e</a></div><div><br></div><div>Have fun,</div><div><br></div><div> Zoltan</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>Feladó: <b class="gmail_sendername" dir="auto">Guillermo González García</b> <span dir="auto"><<a href="mailto:bugzilla_noreply@kde.org">bugzilla_noreply@kde.org</a>></span><br>Date: 2023. aug. 24., Cs, 12:08<br>Subject: [KTechLab] [Bug 473717] New: Application crashes on adding a subcircuit<br>To:  <<a href="mailto:zoltan.padrah@gmail.com">zoltan.padrah@gmail.com</a>><br></div><br><br><a href="https://bugs.kde.org/show_bug.cgi?id=473717" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=473717</a><br>
<br>
            Bug ID: 473717<br>
           Summary: Application crashes on adding a subcircuit<br>
    Classification: Applications<br>
           Product: KTechLab<br>
           Version: 0.51.0<br>
          Platform: Fedora RPMs<br>
                OS: Linux<br>
            Status: REPORTED<br>
          Severity: crash<br>
          Priority: NOR<br>
         Component: general<br>
          Assignee: <a href="mailto:zoltan.padrah@gmail.com" target="_blank">zoltan.padrah@gmail.com</a><br>
          Reporter: <a href="mailto:guillermogcia@gmail.com" target="_blank">guillermogcia@gmail.com</a><br>
                CC: <a href="mailto:julian@svg4all.de" target="_blank">julian@svg4all.de</a><br>
  Target Milestone: ---<br>
<br>
Created attachment 161154<br>
  --> <a href="https://bugs.kde.org/attachment.cgi?id=161154&action=edit" rel="noreferrer" target="_blank">https://bugs.kde.org/attachment.cgi?id=161154&action=edit</a><br>
Subcircuit that causes crash<br>
<br>
SUMMARY<br>
Ktechlab crashes when I try to add a custom subcircuit to another circuit. This<br>
started happening this week, it was working without problems before. This only<br>
happens with custom subcircuits and not the default ones.<br>
<br>
BACKTRACE<br>
<br>
QSocketNotifier: Can only be used with threads started with QThread<br>
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2<br>
applications is not available on the system (qqc2-desktop-style). The<br>
application may look broken.<br>
<br>
(process:8187): Gtk-WARNING **: 10:59:19.818: Locale not supported by C<br>
library.<br>
        Using the fallback 'C' locale.<br>
Gtk-Message: 10:59:19.836: Failed to load module "pk-gtk-module"<br>
kf.xmlgui: Shortcut for action  "file_new" "New File" set with<br>
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
org.kde.ktechlab: End and start nodes for the connector do not both exist<br>
kf.windowsystem: Could not find any platform plugin<br>
kf.xmlgui: Shortcut for action  "cancelCurrentOperation" "Cancel" set with<br>
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.<br>
kf.xmlgui: Shortcut for action  "edit_delete" "Delete" set with<br>
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.<br>
kf.xmlgui: Shortcut for action  "edit_raise" "Raise Selection" set with<br>
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.<br>
kf.xmlgui: Shortcut for action  "edit_lower" "Lower Selection" set with<br>
QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.<br>
org.kde.ktechlab: Could not register id  "node1__16"<br>
org.kde.ktechlab: Could not register id  "node1__18"<br>
Violación de segmento (`core' generado)<br>
<br>
<br>
STEPS TO REPRODUCE<br>
1.  Create a custom sub circuit.<br>
2.  Add it to another circuit.<br>
<br>
OBSERVED RESULT<br>
Program crashes with sigfault.<br>
<br>
EXPECTED RESULT<br>
Use subcircuit without problems.<br>
<br>
<br>
SOFTWARE/OS VERSIONS<br>
Fedora 37<br>
Linux 6.4.11-100.fc37.x86_64<br>
<br>
-- <br>
You are receiving this mail because:<br>
You are the assignee for the bug.</div></div></div>