Topic: Sporadic crash & notes

System:
Version: 0.90-DEV r7724 (0)
macOS Catalina: 10.15.7 (19H2026)


Hi,
I have a few notes for Developers:

- In "Modify elements" if after the modification you click on "save as" and then, realizing the error, you click on SAVE (update) the program crashes.
Sometimes it also crashes if the current operation fails, for example when you place a row and instead of ending it you click on the terminal icon or similar... not always...
Memory problems?

Other Notes:
- Once an object (e.g. relay) has been positioned, if the "item label information" field (cross-reference) is deleted by mistake, it will no longer be deleted, it is only possible to add the "user text" format.
You have to bring the item back from the library again.

- While text alignment on the Slave element (up,down,left,right...) works, on the master it doesn't.

Thanks for reply topics

Re: Sporadic crash & notes

Please create bug report (one by note) on our bug tracker.

Développeur QElectroTech

Re: Sporadic crash & notes

tiz.meneghe wrote:

System:
Version: 0.90-DEV r7724 (0)
macOS Catalina: 10.15.7 (19H2026)


Hi,
I have a few notes for Developers:

- In "Modify elements" if after the modification you click on "save as" and then, realizing the error, you click on SAVE (update) the program crashes.
Sometimes it also crashes if the current operation fails, for example when you place a row and instead of ending it you click on the terminal icon or similar... not always...
Memory problems?


Thanks for reply topics

Hi,
I can't reprocude them here on Virtual macOS Monterey 12.6.
- In "Modify elements" if after the modification you click on "save as" and then, realizing the error then cancel and save?

Memory problems?

See logs in about QET

https://download.qelectrotech.org/qet/forum_img_2/compilation_arch_info_log.png

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

4 (edited by tiz.meneghe 2022-12-11 00:19:08)

Re: Sporadic crash & notes

YES.
:
Modify element
(even without modification) by moving a eur line putting it in its place, it activates save & save as.
click on save as.
oops... i was wrong...
cancel
click on save!
> crash program

change (even without changing) by moving a single row to make it active again save and save as.
click on save as.
oops... i was wrong...
Cancel
click on save!
> program blocked

three days ago I installed version 7728 and it's much improved (crashes during work didn't repeat as often happened).
I tried it on this, but the crash remains...


report generated Macos (one part):
Process:               qelectrotech [2560]
Path:                  /Applications/qelectrotech.app/Contents/MacOS/qelectrotech
Identifier:            org.qelectrotech
Version:               0.90-DEV r7728 (0)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           qelectrotech [2560]
User ID:               501

Date/Time:             2022-12-10 16:25:18.258 +0100
OS Version:            Mac OS X 10.15.7 (19H2026)
Report Version:        12
Anonymous UUID:        796A414F-1A45-54CC-19D8-0FC1D728748E


Time Awake Since Boot: 18000 seconds

System Integrity Protection: enabled

Crashed Thread:        7  Thread (pooled)

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000499acb3d64f8
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [2560]

VM Regions Near 0x499acb3d64f8:
    mapped file            0000000142ff6000-0000000143eb6000 [ 14.8M] rw-/rwx SM=COW  
-->
    MALLOC_NANO            0000600000000000-0000600008000000 [128.0M] rw-/rwx SM=ALI 

Thread 0:: Dispatch queue: com.apple.main-thread
0   org.qelectrotech                  0x000000010f5324d9 0x10f27d000 + 2839769
1   org.qt-project.QtGui              0x00000001104f8ba7 QStandardItem::~QStandardItem() + 119
2   org.qelectrotech                  0x000000010f532503 0x10f27d000 + 2839811
3   org.qt-project.QtGui              0x00000001104f8ba7 QStandardItem::~QStandardItem() + 119
4   org.qelectrotech                  0x000000010f532503 0x10f27d000 + 2839811
5   org.qt-project.QtGui              0x00000001104f8ba7 QStandardItem::~QStandardItem() + 119
6   org.qelectrotech                  0x000000010f532503 0x10f27d000 + 2839811
7   org.qt-project.QtGui              0x00000001104f8ba7 QStandardItem::~QStandardItem() + 119
8   org.qelectrotech                  0x000000010f532503 0x10f27d000 + 2839811
9   org.qt-project.QtGui              0x00000001104f8ba7 QStandardItem::~QStandardItem() + 119
10  org.qt-project.QtGui              0x00000001104f8e2e QStandardItem::~QStandardItem() + 14
11  org.qt-project.QtGui              0x00000001104fb487 QStandardItemModel::~QStandardItemModel() + 199
12  org.qelectrotech                  0x000000010f63171e 0x10f27d000 + 3884830
13  org.qt-project.QtCore             0x0000000110bc3f01 QObjectPrivate::deleteChildren() + 289
14  org.qt-project.QtWidgets          0x000000010fbc1ac4 QWidget::~QWidget() + 1108
15  org.qt-project.QtWidgets          0x000000010fe7162e QTreeView::~QTreeView() + 14
16  org.qt-project.QtCore             0x0000000110bc3f01 QObjectPrivate::deleteChildren() + 289
17  org.qt-project.QtWidgets          0x000000010fbc1ac4 QWidget::~QWidget() + 1108
18  org.qelectrotech                  0x000000010f61b45f 0x10f27d000 + 3794015
19  org.qelectrotech                  0x000000010f2cf5bd 0x10f27d000 + 337341
20  org.qelectrotech                  0x000000010f2cf616 0x10f27d000 + 337430
21  org.qelectrotech                  0x000000010f4c9e50 0x10f27d000 + 2412112
22  org.qelectrotech                  0x000000010f62cd93 0x10f27d000 + 3866003
23  org.qelectrotech                  0x000000010f62d3ae 0x10f27d000 + 3867566
24  org.qt-project.QtCore             0x0000000110bcc57f 0x1109b1000 + 2209151
25  org.qt-project.QtWidgets          0x000000010fb8d446 QAction::activate(QAction::ActionEvent) + 310
26  org.qt-project.QtWidgets          0x000000010fc80f70 0x10fb86000 + 1027952
27  org.qt-project.QtWidgets          0x000000010fc8216e QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 270
28  org.qt-project.QtWidgets          0x000000010fd8298f QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
29  org.qt-project.QtWidgets          0x000000010fbd254b QWidget::event(QEvent*) + 443
30  org.qt-project.QtWidgets          0x000000010fd83148 QToolButton::event(QEvent*) + 312
31  org.qt-project.QtWidgets          0x000000010fb96966 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
32  org.qt-project.QtWidgets          0x000000010fb99614 QApplication::notify(QObject*, QEvent*) + 6916
33  org.qt-project.QtCore             0x0000000110b9b0a7 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
34  org.qt-project.QtWidgets          0x000000010fb97262 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 882
35  org.qt-project.QtWidgets          0x000000010fbf138e 0x10fb86000 + 439182
36  org.qt-project.QtWidgets          0x000000010fbefb1f 0x10fb86000 + 432927
37  org.qt-project.QtWidgets          0x000000010fb96966 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
38  org.qt-project.QtWidgets          0x000000010fb97ced QApplication::notify(QObject*, QEvent*) + 477
39  org.qt-project.QtCore             0x0000000110b9b0a7 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
40  org.qt-project.QtGui              0x00000001101734ec QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3500
41  org.qt-project.QtGui     

best regards.
Tiziano

Post's attachments

Attachment icon REPORT CRASH on Work.rtf 73.87 kb, 108 downloads since 2022-12-10 

Re: Sporadic crash & notes

https://qelectrotech.org/bugtracker/vie … d=278#c602

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

Re: Sporadic crash & notes

Hi Tiziano,

thanks for your screen videos.

I build last version on Catalina VM, please try it:
https://download.qelectrotech.org/qet/s … 0r7810.dmg

Best regards,
Laurent

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

Re: Sporadic crash & notes

Hi,
scorpio810


Wow, you are a marvel! Very fast.
How I would like to know more about this language too.
For over 40 years I have been developing firmware for the uController in elevator automation. I haven't had time to use C and I still work in assembler...
My son now uses it with C because the new ARM uCs have so many registers and functions that assembler is very difficult to implement. So, space for the new generations. I leave it to him and follow step by step.
When there's a problem, I give him the working example in Assembler and he transforms it into C!
I'm 65 but I still like to grow up...
I had started using and developing with html for the web but then I stopped.
It's not like when you have 2 minutes of time you can give me a tip on how to install the software. So much for academic knowledge.

Sorry for the English but I translate it from Google...
I only know the technical terms (especially hardware) that have allowed me to work for years with assembler-type development systems.

Ah, initially I worked with windows 10 but then I switched to the OS because it seemed more stable.

I'm installing it today and sending you the feedback.
Nice to meet you.


Thank you.
Tiziano.

Re: Sporadic crash & notes

Unfortunately not, keep doing it in the edit element.
Doesn't it generate an error log so you can figure out where the problem lies?

Bye thank you.

Re: Sporadic crash & notes

Did you also get the video file?

Post's attachments

Schermata 2022-12-12 alle 13.10.56.png, 52.08 kb, 701 x 501
Schermata 2022-12-12 alle 13.10.56.png 52.08 kb, 127 downloads since 2022-12-12 

Re: Sporadic crash & notes

Hi Tiziano,

it's more easy on Linux maybe on macOS isn't hard, see this topic
https://qelectrotech.org/forum/viewtopic.php?id=1401

https://qelectrotech.org/wiki_new/doc/macosx

ps: new git for brew kde https://invent.kde.org/packaging/homebrew-kde

https://formulae.brew.sh/formula/qt@5

qt_KCoreAddons.pri &  qt_KWidgetsAddons.pri  file need to be copied on /usr/local/opt/qt5/mkspecs/modules/ and you need to edit path like this:

https://download.qelectrotech.org/qet/forum_img_2/osx_kf5_pri_edit_path2.png

Example here on Linux for AppImage VM:
https://qelectrotech.org/forum/viewtopi … 730#p15730

QT.KCoreAddons.VERSION = 5.99.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 99
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines = 
QT.KCoreAddons.includes =  $$PWD/../../include/KF5/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = $$PWD/../../lib
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = 

Modify  $$PWD/. path and paste where Qt spec is installed ...

QT.KCoreAddons.VERSION = 5.99.0
QT.KCoreAddons.MAJOR_VERSION = 5
QT.KCoreAddons.MINOR_VERSION = 99
QT.KCoreAddons.PATCH_VERSION = 0
QT.KCoreAddons.name = KF5CoreAddons
QT.KCoreAddons.module = KF5CoreAddons
QT.KCoreAddons.defines = 
QT.KCoreAddons.includes =  /usr/local/opt/kf5-kcoreaddons/include/KF5/KCoreAddons
QT.KCoreAddons.private_includes =
QT.KCoreAddons.libs = /usr/local/opt/kf5-kcoreaddons/lib
QT.KCoreAddons.depends = core
QT.KCoreAddons.module_config = 

Same things for qt_KWidgetsAddons.pri


With brew or by Qt online you could install qtcreator C++ Qt IDE if you want to experiment and search on sources files.

Btw, comment this line in qelectrotech.pro
https://github.com/qelectrotech/qelectr … ch.pro#L60

I have not yet managed to integrate sqlite3 libs was horrible on this OS... also database sql export not working on macOS in my bundles.

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

Re: Sporadic crash & notes

Hi,

I could also use an external drive and installing linux (Ubuntu or whatever?) with linux does that work fine? doesn't it cause problems? MAC and also Windows I have seen yes.

Re: Sporadic crash & notes

What do want to do, devel, or working diagram with QET?

I use Debian Sid aka unstable with kde since 25 years ... isn't for noobs, but Debian stable or Ubuntu/Kubuntu is also easy.

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

Re: Sporadic crash & notes

in principe you need:

sudo apt-get install libqt5svg5-dev  qt5-qmake  qtbase5-dev libkf5widgetsaddons-dev libkf5coreaddons-dev \
libsqlite3-dev qttranslations5-l10n mesa-utils make qtcreator git g++ \
g++-multilib

time 's compile take ~ 31 seconds on my AMD Threadripper 3960X  workstation .. with make j-48

git clone https://github.com/qelectrotech/qelectrotech-source-mirror.git qet_git
cd qet_git
mkdir build && cd build
qmake ../qelectrotech.pro
make -j$(nproc)

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

Re: Sporadic crash & notes

I wouldn't have time... I'm still working on PCB HW projects.
But maybe to access it and create a custom page or correct some untranslated or incorrectly translated terms.
Engage in development certainly not.
I'd like to, but it's too late. Thank you.

Perhaps my youngest already tinkering with C for about ten years.


You're kind.
Thanks anyway.

Re: Sporadic crash & notes

I'm old too (53) and since my burnout last year I don't have time for coding, I use my free time for packages in all platforms is always a big chalenge and isn't easy, it is eat time also to help user's, translators or other ... here or by emails.

my work as a maintenance technician in the industry on staggered schedules for 35 years now is physically and intellectually demanding ... (6 Days *8h) 5h-13 x2 13-21h x2 21-5h x2 4 days for vacation ..

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

Re: Sporadic crash & notes

I meant old in the sense of learning programming of this kind well, which has its own tricks, packages, macros and so on.
I've always had the passion and believe me, if you've ever tried to use uC assembler, you MUST be motivated because the uChip does what you write to it in every cell. Macros help something but in the 80s they were there. Basic instructions only.
As in writing an opera, each note identifies a sound or a movement.
C already offers many instructions that facilitate its development, but increasing the memory required by 3/5 times.
If I think that in '90 I used a uC 20pin with 8Kbytex8bit and there are still lifts that have been working for over 30 years...
When I see the evolution that has taken place over 30-40 years both in the once unimaginable components and in the software that revolves around them, I am shocked and saddened that I will not have the opportunity to participate in it.
Life is shorter...

Re: Sporadic crash & notes

On the fly, Laurent, (I saw your name is Laurent like my son Lorenzo in Italian?), how can I tell the index to put the list in page order.
I also tried entering %id, "0%id", also - %id:
but nothing. Does not align 1,2,3....9,10,11,12...
nor 01,02,03....09,010,011,....
(see screenshot)
%autonum numbers the pages but in any case the index does not generate them in ascending order...
need a change to the formula on SQL?

Re: Sporadic crash & notes

screenshot ?

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

Re: Sporadic crash & notes

screenshot:

Re: Sporadic crash & notes

not screenshot, please send me your project by email and what you want doing.

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