Topic: Reproducible Crash of QET

When using the Element-Editor I found a way to reproducibly crash QET.
The steps to reproduce the crash are as follows:

QET crashes reproducible when:
- create a new element
- place a text somewhere
- edit the text
- move the text somewhere else
- save the element
- reload the file (menu - file - reload)
- click at the text-element
- crash!

Same behaviour when:
- open an element-file with some text
- copy and paste a text-element
  (view zooms and shifts somewhere!)
- save the element-file
- reload the file (menu - file - reload)
- click at the pasted text-element
- crash!

When starting QET from commandline these two lines appear in both cases when crashing (system-language is set to German):
qelectrotech: sources/editor/ui/texteditor.cpp:74: void TextEditor::setUpChangeConnection(QPointer<PartText>): Zusicherung »m_change_connection.isEmpty()« nicht erfüllt.
Abgebrochen


QET- and System-Info:
"QElectroTech V 0.90-DEV+d7e1813ffb0a58100c957a06d79751d3"
"Compilation: GCC 12.1.0"
"Built with Qt 5.15.4 - x86_64 - Date : Aug 16 2022 : 08:39:41"
"Run with Qt 5.15.4 using 8 thread(s)"
"CPU : model name\t: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz\n"
"RAM Total : 31 GB"
"RAM Available : 30 GB"
"GPU :  Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)\n"
"GPU RAM : "
"OS : linux  - x86_64 - Version : Debian GNU/Linux bookworm/sid - Kernel : 5.18.0-4-amd64"
*** Qt screens ***
"( 1 : 1920 x 1080 )"

In the attachment you find a small element-file i use for the "crash-tests" but you can use any other element-file.

Post's attachments

Attachment icon clicktextsample.elmt 653 b, 66 downloads since 2022-08-29 

Re: Reproducible Crash of QET

Hi plc-user,

maybe is https://qelectrotech.org/wiki_new/roadm … d_elements

Copy and paste has been implemented: it is possible to paste :
with the middle mouse button
by choosing a "paste area" on the element (Ctrl+Shift+V): see screenshot on the left
directly (Ctrl+V): the pasted parts are placed next to the copied parts; if the parts are pasted again, they are pasted one more notch next to each other, in an incremental way. Thus the screenshot on the right shows what you get when you paste a selection 8 times in a row.

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

Re: Reproducible Crash of QET

Hello Laurent,

I guess you misunderstood something:
This thread is not about copy-and-paste - that's the other thread I started.
This thread is about a reproducible crash of QET when inserting a text-element in element-editor!

Something seems to go wrong when saving and reloading an element and QET crashes, because the source-code-line 74 of sources/editor/ui/texteditor.cpp says so:

assert(m_change_connection.isEmpty());

(see above)

I can even reduce the steps to reproduce:

- create a new element
- place a text somewhere
- save the element
- reload the file (menu - file - reload)
- click at the text-element
- crash!

Re: Reproducible Crash of QET

ooops ...wrong topic. nomicons/smiley-green

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

Re: Reproducible Crash of QET

Ok, I will check this bug soon.

Développeur QElectroTech

Re: Reproducible Crash of QET

Fixed.

Développeur QElectroTech

Re: Reproducible Crash of QET

Wait a little for packages.

Power hiccup
Posté le samedi 24 septembre 2022, à 21:13 UTC

Today, around 19:20 UTC, we experienced a power hiccup that killed some hosts. We managed to bring back most services, everything else (panel, mail, webmail) will be back shortly.

At this time ssh is down for upload builds...

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

Re: Reproducible Crash of QET

I'll be patient!  nomicons/wink

Re: Reproducible Crash of QET

Upload all packages, enjoy. nomicons/wink

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

Re: Reproducible Crash of QET

... hmmm ... how do I tell ???

sorry: same behavior as before: crash with the hint to line 74 of "texteditor.cpp" where an assertion isn't fulfilled.

Info: "QElectroTech V 0.90-DEV+ffc2a7a7db0a58100c957a06d79751d3"
Info: "Compilation: GCC 12.2.0"
Info: "Built with Qt 5.15.4 - x86_64 - Date : Sep 27 2022 : 19:56:13"
Info: "Run with Qt 5.15.4 using 8 thread(s)"
Info: "CPU : model name\t: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz\n"
Info: "RAM Total : 31 GB"
Info: "RAM Available : 29 GB"
Info: "GPU :  Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)\n"
Info: "GPU RAM : "
Info: "OS : linux  - x86_64 - Version : Debian GNU/Linux bookworm/sid - Kernel : 5.19.0-2-amd64"

and later:

qelectrotech: sources/editor/ui/texteditor.cpp:74: void TextEditor::setUpChangeConnection(QPointer<PartText>): Zusicherung »m_change_connection.isEmpty()« nicht erfüllt.

11 (edited by Joshua 2022-09-28 22:00:37)

Re: Reproducible Crash of QET

Fixed.
It was not the same bug.

PS.
I re-read your first post, it was the same bug you mention in your first.
Yesterday I fix it for the dynamics text field, because I don't care that you're speak about static text and I test with dynamic text nomicons/grin.

In fact there was two bugs caused by the same mistake in code, one for static text and another one for dynamic text.

Développeur QElectroTech

Re: Reproducible Crash of QET

Hello Joshua,

that looks good: No more crash! Thank you!


cela a l'air bien : Plus de crash ! Merci !