Great nomicons/smile
Tomorrow i will run 4740 some hour in qtdesigner debug mode

For upgrading, at the step
   "sudo make -f Makefile.Release install"
user have to answer y to overwrite every manual language file

Could it be changed so that is not needed?

$ sudo make -f Makefile.Release install
[sudo] lösenord för morgan: 
install -m 755 -p qelectrotech /usr/local/bin/qelectrotech
strip /usr/local/bin/qelectrotech
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/elements/10_electric /usr/local/share/qelectrotech/elements/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/elements/20_logic /usr/local/share/qelectrotech/elements/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/elements/30_hydraulic /usr/local/share/qelectrotech/elements/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/elements/50_pneumatic /usr/local/share/qelectrotech/elements/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/elements/60_energy /usr/local/share/qelectrotech/elements/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/A4_1.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/default.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/DIN_A4.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/double-logo.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/ISO7200_A4_V1.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/titleblocks/single-logo.titleblock /usr/local/share/qelectrotech/titleblocks/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_en.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_es.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_fr.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_ru.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_pt.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_cs.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_pl.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_de.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_ro.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_it.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_el.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_nl.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/lang/qet_be.qm /usr/local/share/qelectrotech/lang/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/LICENSE /usr/local/doc/qelectrotech/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/ELEMENTS.LICENSE /usr/local/doc/qelectrotech/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/CREDIT /usr/local/doc/qelectrotech/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/README /usr/local/doc/qelectrotech/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/ChangeLog /usr/local/doc/qelectrotech/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/qelectrotech.desktop /usr/local/share/applications/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-element.xml /usr/local/../share/mime/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-project.xml /usr/local/../share/mime/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-titleblock.xml /usr/local/../share/mime/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-element.desktop /usr/local/../share/mimelnk/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-project.desktop /usr/local/../share/mimelnk/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/x-qet-titleblock.desktop /usr/local/../share/mimelnk/application/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/qelectrotech.xml /usr/local/../share/mime/packages/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/16x16 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/22x22 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/32x32 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/48x48 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/64x64 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/128x128 /usr/local/share/icons/hicolor/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/ico/oxygen-icons/256x256 /usr/local/share/icons/hicolor/
sh man/compress_man_pages.sh
gzip: man/files/be/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/fr.UTF-8/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/el/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/es/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/fr/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/cs/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/pt/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/pl/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/it/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/fr.ISO8859-1/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/nl/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
gzip: man/files/ru/man1/qelectrotech.1.gz already exists; do you wish to overwrite (y or n)? y
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/be /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/cs /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/el /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/es /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/fr /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/fr.ISO8859-1 /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/fr.UTF-8 /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/it /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/man1 /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/nl /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/pl /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/pt /usr/local/man/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/man/files/ru /usr/local/man/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/741.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/affuteuse_250h.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/ArduinoLCD.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/convertisseur.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/grafcet.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/Habitat-Schemas_developpes.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/Habitat-Unifilaire.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/iso_sfc_example.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/lmdg.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/m_000.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/Projet_vierge.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/schema_indus.qet /usr/local/share/qelectrotech/examples/
cp -f -R /home/morgan/Hämtningar/qelectrotech-trunk/examples/styles /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/examples/tremie_vibrante.qet /usr/local/share/qelectrotech/examples/
install -m 644 -p /home/morgan/Hämtningar/qelectrotech-trunk/misc/qelectrotech.appdata.xml /usr/local/share/appdata/

OK.
The more weird output there is, the harder for bug reporters to know what to report... nomicons/wink

I dont know if this is of any help, but this is output in the terminal from where i start Qet and load my schematic:

QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)
Frozen Label "Tillfällig, gummislang"
Frozen Label "Tillfällig, gummislang"
Frozen Label ""
Frozen Label ""
Frozen Label ""
Frozen Label ""
Frozen Label ""
Frozen Label ""
QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)

Ah, thanks i did not think of trying it outside QtCreator.  There it works nomicons/smile
-  now I have to understand how to use it nomicons/wink

Yes i may help a little bit with the wiki
Hmm i find no english section yet?

scorpio810 wrote:
Morganol wrote:

Until then, clang do think there are at least potential problems with Qet code.  Have you checked?

Yes of course, and clang is very verbose.
It 's found ~ 45 warnings, only ~ 4 with GCC

Ah, good nomicons/smile

..and another crash when saving, with debug source screenshot
https://qelectrotech.org/bugtracker/view.php?id=104

I am trying to get this working.

I suggest the descriptions for getting this to work should be summoned up in a wiki article.
And the Qet program show a link to it when the menu chouce to launch it is made and it is not installed.
(now it shows a few instructions specific to ubuntu/debian)

The instructions should be distro agnostic...

Here on Mageia6 i tried the following:
pip is here called pip3 if it is the python 3 version we want.
After finding and installing that i did:

# pip3 install qet_tb_generator
Collecting qet-tb-generator                                                                  
  Downloading qet_tb_generator-0.5.3-py3-none-any.whl                                        
Collecting pyqt5 (from qet-tb-generator)                                                     
  Could not find a version that satisfies the requirement pyqt5 (from qet-tb-generator) (from versions: )                                                                                 
No matching distribution found for pyqt5 (from qet-tb-generator)                             
You are using pip version 8.0.2, however version 8.1.2 is available.                         
You should consider upgrading via the 'pip install --upgrade pip' command.                   
# pip install --upgrade pip
bash: pip: kommandot finns inte                                                              
# pip3 install --upgrade pip                                
Collecting pip                                                                               
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)                                         
    100% |████████████████████████████████| 1.2MB 235kB/s 
Installing collected packages: pip                                                           
  Found existing installation: pip 8.0.2                                                     
    Uninstalling pip-8.0.2:                                                                  
      Successfully uninstalled pip-8.0.2
Successfully installed pip-8.1.2
[root@svarten qelectrotech-trunk]# pip3 install qet_tb_generator
Collecting qet_tb_generator
  Using cached qet_tb_generator-0.5.3-py3-none-any.whl
Collecting pyqt5 (from qet_tb_generator)
  Downloading PyQt5-5.7-cp35-cp35m-manylinux1_x86_64.whl (89.8MB)
    100% |████████████████████████████████| 89.8MB 15kB/s 
Collecting sip (from pyqt5->qet_tb_generator)
  Downloading sip-4.18.1-cp35-cp35m-manylinux1_x86_64.whl (60kB)
    100% |████████████████████████████████| 61kB 790kB/s 
Installing collected packages: sip, pyqt5, qet-tb-generator
Successfully installed pyqt5-5.7 qet-tb-generator-0.5.3 sip-4.18.1

So it was so easy??
Well, i guess it was supposed to, but:

When i in Qet r4736 select Menu "Project" > "Launch the Terminal Block creation plugin" i get no visual response, but an error output (seen in QtCreator from where i run Qet in debugging mode)

This application failed to start because it could not find or load the Qt platform plugin "xcb"
 in "".
 
 Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
 
 Reinstalling the application may fix this problem.

I have pretty many *cxb* packages installed... could it be somewhat more specific... and what does it mean by it look for it in "" ?

OK I guessed so nomicons/smile
XML i nice
I may need netlist in future so i made a feature request:
https://qelectrotech.org/bugtracker/view.php?id=102

Crash and other issues when editing an arc * REPEATABLE *
https://qelectrotech.org/bugtracker/view.php?id=101

A crash when saving
https://qelectrotech.org/bugtracker/view.php?id=100

(I asked in another thread but the question drowned)

Now I am writing descriptions, bunches of text, on Qet drawings.
It there a way to make the text line wrap automatically?

I want the textblock to have a certain width, and wrap the lines automatically.

Great, Joshua nomicons/smile
I am running 4736 in the same way now, will report if anything happens.
Please update Bug 98

Hooray, i caught a crash: https://qelectrotech.org/bugtracker/view.php?id=98
(a type i have not experienced before, but anyway...)

Another crash at saving document after i saw that a conductor did not get properly deleted.
As i see it we have at least two problems

1) something goes wrong in the in-memory drawing

2) it crash when/after saving a drawing with the the in-memory drawing
It is interesting and lucky that the saved drawing is OK


The debugger seem unable to spot 1)

And when crashing i only see dissassembly - not part of Qet source code?

Yes i have heard others complaining about Qt quality...

I will try to catch bugs with Qet source code.

Until then, clang do think there are at least potential problems with Qet code.  Have you checked?

( I am no programmer of this kind, so do not know much about it... just playing with the tools...)

243

(14 replies, posted in News)

Great looking nomicons/smile

As for support myself is rather broke but pleased to test and feedback, and some elements later

BTW, noticed a couple details in content that need be updated @ https://www.qelectrotech.org/contact.html
Under "Technical choices" it still say Qt4.4, and in "Current state" it say 0.4 is latest.

While fooling around in the menus i decided to try "Valgrind analyzer with gdb".
In the QtDesigner "Application Output" i then see things like

==9512== Conditional jump or move depends on uninitialised value(s)
==9512==    at 0x10A298CA: ??? (in /usr/lib64/libfreetype.so.6.12.6)
==9512==  Uninitialised value was created by a stack allocation
==9512==    at 0x10A29652: ??? (in /usr/lib64/libfreetype.so.6.12.6)
==9512== (action on error) vgdb me ...

Then i clicked the |> button a couple times more, got i.e
==9512== Syscall param writev(vector[...]) points to uninitialised byte(s)
==9512==    at 0x6E7D7CD: ??? (in /usr/lib64/libc-2.22.so)
==9512==    by 0xA865BC8: ??? (in /usr/lib64/libxcb.so.1.1.0)
...
==9512==  Uninitialised value was created by a stack allocation
==9512==    at 0xEA2E3F0: non-virtual thunk to QXcbWindow::setVisible(bool) (in /usr/lib64/libQt5XcbQpa.so.5.6.1)
==9512== Conditional jump or move depends on uninitialised value(s)
==9512== at 0x416DE2C: QtConcurrent::BlockSizeManagerV2::timeBeforeUser() (in /usr/lib64/libQt5Concurrent.so.5.6.1)
==9512== Uninitialised value was created by a stack allocation
==9512== at 0x67428D: QtConcurrent::IterateKernel<QList<ElementCollectionItem*>::iterator, void>::forThreadFunction() (qtconcurrentiteratekernel.h:217)

... and more.  About seven stops before QET is up and ready to use.
Are those issues harmless or problems waiting to happen?

Now before reading the above post i was using it and the bug triggered: i deleted a conductor and made another conductor, suddenly the deleted conductor was visible again.
I could "select" it so it gets red with blue handles but can not do anything with it.
If i select and move an element the conductor is still shown like selected.
Moving an element on top of conductor deletes that covered part visually.
Then i decided to take a screen-shot, but on screenshot the whole deleted conductor is repainted, looking like normally selected.
I then decided to save the drawing (under new name): crash.

Opening the schematic it is correctly saved; the deleted conductor is not there, and the new conductor drawn after the deletion it there OK.

This may narrow down the problem searching a bit:
Interestingly, the Menu > "File" > "Recently Opened" list do NOT contain the new file.
So it crashed after saving everything to new file, but before updating wherever it stores that list.

Now i will try to make QtCreator debug show source code... (beginning by reading the above nomicons/wink )
So far I have gdb (and also valgrind) installed and configured in QtCreator (at least correct executable paths)

EDIT: Note to self: also installed lib64qt5platformsupport-devel as i saw when started from terminal that QtDesigner was looking for libQt5PlatformSupport.prl  /EDITp, li { white-space: pre-wrap;

I have never used Qt Creator...
Is there some way i can compile qet to include debugging information?
(and then just easily run it in gdb)

Anyhow... i installed qt-creator, and opened qelectrotech.pro in the ...trunk folder, started debugging, and as excerise just closed QET  it to get the problem of previous post.  See screenshot below.

EDIT: OH, and there was also this in the Application Output window:
QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)
/EDIT


Do that tell you something?
What would you like me to do now?

Until answered i just try tu use QET as normal - run in debug this way, but i do not know how to get interesting parts when it crashes.

OK, iĺl try more later.
For now just starting it in gdb and closing by the (x) window button, it catches this:

Thread 1 "qelectrotech" received signal SIGSEGV, Segmentation fault.
0x00007ffff7340313 in QIcon::~QIcon() () from /lib64/libQt5Gui.so.5

OK i start launching it with gdb.

I compile locally, as per https://wiki.mageia.org/en/QElectroTech
Is there something i can do to increase valuable output?


Right now i got a crash in *element* editor while by mouse changing the ovality of an arc, in a element i was modifying (so i have been deleting another arc and spossibly a line in it too, before crash)

I also an hour ago got the crash when saving after having deleted a line that was still visible, like in https://qelectrotech.org/forum/viewtopi … 5081#p5081 that you already know.

It rarely crashes, but it do.   version 0.51 trunk svn 4734


I can not define a repeatable crash instruction yet, but it may have something with group copy, move copied group, undo, undo, and then move a part of the original group


In journalctl i see this:

okt 10 06:56:53 svarten audit[2731]: ANOM_ABEND auid=10702 uid=10702 gid=10790 ses=3 pid=2731 comm="qelectrotech" exe="/usr/local/bin/qelectrotech" sig=6
okt 10 06:56:53 svarten kernel: audit: type=1701 audit(1476075413.331:758): auid=10702 uid=10702 gid=10790 ses=3 pid=2731 comm="qelectrotech" exe="/usr/local/bin/qelectrotech" sig=6

Is there some more metrics i can provide?

Can i run it in some debug mode to help catching the cause better?

label in front:  https://qelectrotech.org/bugtracker/view.php?id=87  <---- UPDATE: this is fixed now, thank you! nomicons/smile


ofset: https://qelectrotech.org/bugtracker/view.php?id=91