Bug 473717 - Application crashes on adding a subcircuit
Summary: Application crashes on adding a subcircuit
Status: CONFIRMED
Alias: None
Product: KTechLab
Classification: Applications
Component: general (show other bugs)
Version: 0.51.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Zoltan Padrah
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-24 09:08 UTC by Guillermo González García
Modified: 2023-11-01 15:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Subcircuit that causes crash (7.80 KB, image/png)
2023-08-24 09:08 UTC, Guillermo González García
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillermo González García 2023-08-24 09:08:53 UTC
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
Comment 1 Guillermo González García 2023-08-24 09:29:40 UTC
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
Comment 2 Zoltan Padrah 2023-08-27 16:50:36 UTC
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?
Comment 3 Guillermo González García 2023-10-31 19:36:17 UTC
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.
Comment 4 Zoltan Padrah 2023-11-01 08:40:32 UTC
(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 ?
Comment 5 Guillermo González García 2023-11-01 15:16:21 UTC
(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.