1 (edited by Mike 2021-11-25 15:02:29)

Topic: It takes too long time to open a file *.qet

Dear friends,

Opening time of a file .qet became extremely long.
Now it take hours for "Opening the project ... Creation of folios".
The project contains 46 folios, but it looks that QElectroTech wants to open 138 pages. See the attached picture.
Last version of QElectroTech-0.90-DEV is used.
It seems all works OK when the project is open.
But it requires hours to open.

Please advice.
Thank you very much,
Mike

Post's attachments

dwm_CjbBYaK9RG.png, 8.28 kb, 402 x 142
dwm_CjbBYaK9RG.png 8.28 kb, 113 downloads since 2021-11-25 

Re: It takes too long time to open a file *.qet

Hi Mike,

could you share this project to check it out?
You have a lot of pictures in this project?

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

Re: It takes too long time to open a file *.qet

Hello Scorpio810,

It has got few small pictures.
Below is a link to the project:
https://dietzautomation.com/download/Pu … ct%201.zip

Thank you!
Mike

Re: It takes too long time to open a file *.qet

Your project contain a lot of


 patterns .... cat sleep on your keyboard ....?
delete this items.

Laurent

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

Re: It takes too long time to open a file *.qet

Laurent,

Should I use a text editor like Notepad for that?

Mike

Re: It takes too long time to open a file *.qet

Hello Laurent,

The patterns 

 were removed (with Notepad.exe).
The file size is three times less now, and it works much ... much faster.

No idea how these patterns were inserted.
Maybe that was really a cat who likes to sleep here.

Thanks a lot!
Sincerely,
Mike

P.S. May it contains some other unnecessary characters/patterns?

Re: It takes too long time to open a file *.qet

Hello Mike,

happy to solve your problem,

thanks for feedback ,
Laurent

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

Re: It takes too long time to open a file *.qet

Good evening Laurent,

Unfortunately, it was not so simple. I had to feed my cat very well, because I was not right that when I thought bad about him. nomicons/smile

It seems the problem appears when use "QET Terminal Block Generator v1.2.5".
The link below contains two files:
https://dietzautomation.com/download/Pu … st%202.zip


Test 1.qet - the project where the patterns 

 are eliminated.
Test 2.qet - the same project but with generated X1 terminal block.

Test 1.qet - opening time - 35sec
Test 2.qet - opening time -  ∞

Please suggest a solution.
Thank you.
Mike

Re: It takes too long time to open a file *.qet

Good morning Mike

I removed empty line in your project file with sed on Linux machine:

sed '/^$/d' Test1.qet > test_sed.qet

Now launch so fast, but if run qet_tb_generator 1.3.0 is break XML and QET can't open file :

The file /media/backup6/download/test_sed_clean.qet does not appear to be a QElectroTech project file. Thus it cannot be opened.

Fix the XML of .qet with xmllint:

[07:25:29] laurent@debian:/media/backup6/download$ xmllint --recover test_sed_clean.qet > new_sedtest.qet
test_sed_clean.qet:5: parser error : StartTag: invalid element name
            <
             ^

Now project is fixed.
Very nice project  Mikhail  ;-)
http://dietzautomation.com/download/Man … nglish.pdf

Post's attachments

Attachment icon Fix-sed_emty_line_xml.zip 6.22 mb, 187 downloads since 2021-11-26 

Attachment icon qet-tb-generator.txt 103.86 kb, 119 downloads since 2021-11-26 

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

Re: It takes too long time to open a file *.qet

Mike wrote:

Laurent,

Should I use a text editor like Notepad for that?

Mike

Hmm, not!
patterns &#xd;&#xd; was remplaced by empty lines in your project.. ;-)
sed, awk, perl, etc ..
https://www.baeldung.com/linux/delete-l … -from-file
https://www.theunixschool.com/2014/08/s … -file.html

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

Re: It takes too long time to open a file *.qet

With terminals in folio.

Post's attachments

Attachment icon Fix-sed_emty_line_xml2.zip 6.25 mb, 133 downloads since 2021-11-26 

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

Re: It takes too long time to open a file *.qet

Hello Laurent,

Thank you so much!
It looks perfect now, but I did not understand what did you use to generate (and insert to the file) the terminal blocks.
"qet-tb-generator 1.3.0" did not work, and I've used an older version - 1.2.5 which made the problem.

To use the "sed" command a Windows Subsystem for Linux (WSL) was installed.

Thank you!

Sincerely,
Mike

The current project will be an upgrade of the the following test equipment:
https://dietzautomation.com/download/Pu … 08.1.1.jpg

Re: It takes too long time to open a file *.qet

Hello Mike,

I used qet-tb-generator 1.3.0 but it break XML format, I fixed XML with xmllint --recover command.
I send an email to Raul about this bug in qet-tb-generator.


QET on Linux machine is 20 X faster than on Windows.

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

Re: It takes too long time to open a file *.qet

Hello Laurent,

Definitely I have to try the Linux version.

Thank you!

Re: It takes too long time to open a file *.qet

On Linux launching QET is < 2 secondes
On Windows sometimes is >75 secondes

Depend on setup SSD and big CPU with many threads is faster.

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

Re: It takes too long time to open a file *.qet

On My Debian machine

14:15:48.103 Info: Start-up 
14:15:48.157 Info: debugging enabled: false 
14:15:48.158 Info: Qt library version: 5.15.2 
14:15:48.158 Info: Qt library location default prefix: "/usr" 
14:15:48.158 Info: Qt library location documentation: "/usr/share/qt5/doc" 
14:15:48.158 Info: Qt library location headers: "/usr/include/x86_64-linux-gnu/qt5" 
14:15:48.158 Info: Qt library location libraries: "/usr/lib/x86_64-linux-gnu" 
14:15:48.158 Info: Qt library location executables: "/usr/lib/x86_64-linux-gnu/qt5/libexec" 
14:15:48.158 Info: Qt library location Qt binaries: "/usr/lib/qt5/bin" 
14:15:48.158 Info: Qt library location Qt plugins: "/usr/lib/x86_64-linux-gnu/qt5/plugins" 
14:15:48.158 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/imports" 
14:15:48.158 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/qml" 
14:15:48.158 Info: Qt library location dependent Qt data: "/usr/lib/x86_64-linux-gnu/qt5" 
14:15:48.158 Info: Qt library location independent Qt data: "/usr/share/qt5" 
14:15:48.158 Info: Qt library location translation: "/usr/share/qt5/translations" 
14:15:48.158 Info: Qt library location examples: "/usr/lib/x86_64-linux-gnu/qt5/examples" 
14:15:48.158 Info: Qt library location Qt testcases: "/usr/tests" 
14:15:48.158 Info: Qt library location Qt settings: "/etc/xdg" 
14:15:48.158 Info: "QElectroTech V 0.90-DEV+f08811acab0a58100c957a06d79751d3" 
14:15:48.158 Info: "Compilation: GCC 11.2.0" 
14:15:48.158 Info: "Built with Qt 5.15.2 - Date : Nov  7 2021 : 11:58:58" 
14:15:48.158 Info: "Run with Qt 5.15.2 using 48 thread(s)" 
14:15:48.158 Info: "CPU : model name\t: AMD Ryzen Threadripper 3960X 24-Core Processor\n" 
14:15:48.158 Info: "RAM Total : 64193 MB" 
14:15:48.158 Info: "RAM Available : 59416 MB" 
14:15:48.158 Info: "GPU :  Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c7)\n" 
14:15:48.158 Info: "GPU RAM : @ToDo" 
14:15:48.158 Info: "OS : linux  - x86_64 - Version : Debian GNU/Linux bookworm/sid - Kernel : 5.15.4-vanilla" 
14:15:48.158 Info: *** Qt screens *** 
14:15:48.158 Info: "( 1 : 3840 x 2160 )" 
14:15:48.158 Info: "( 2 : 1920 x 1080 )" 
14:15:48.412 Info: Elements collection reload 
14:15:48.701 Info: Elements collection finished to be loaded 

./count_elements.sh
7820 elements dans 1039 categories (soit 8859 fichiers)


14:15:48.103 Info: Start-up
14:15:48.412 Info: Elements collection reload
14:15:48.701 Info: Elements collection finished to be loaded

7820 elements loaded in 0.3 seconds .... 0.6 seconds after click to launch QET is ready.

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

Re: It takes too long time to open a file *.qet

Hello Laurent,

There were some problems to install Linux with GUI under my Windows PC. Perhaps, it would be better to install Linux on an different SDD, or use an other PC. Maybe later.

By the way, the version 1.2.4 of the QET Block Generator works properly. I.e. there were no problem to generate the terminal blocks.

Thank you again for your support.
QElectroTech is a really nice software!

Mike

Re: It takes too long time to open a file *.qet

Thanks Mike,

Laurent

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

19 (edited by unalcalde 2021-11-27 12:35:29)

Re: It takes too long time to open a file *.qet

The problem is: "xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 5, column 13"

There are a '<' simbol alone. I remove it and QET can open the diagram.

Later I'll check why append.

Post's attachments

Screenshot1.png, 245.39 kb, 1208 x 766
Screenshot1.png 245.39 kb, 115 downloads since 2021-11-27 

Re: It takes too long time to open a file *.qet

Hello Unalcalde,

I've also played with "Terminal manager".
A structure was made, but it disappeared after corrections suggested by Laurent.
Now all terminals belong to "Independent terminals" block.
Could the "Terminal manager" responsible for the problem?

Thank you,
Mike

Post's attachments

qelectrotech_6Jq1WvO2te.png, 27.73 kb, 827 x 412
qelectrotech_6Jq1WvO2te.png 27.73 kb, 118 downloads since 2021-11-27 

Re: It takes too long time to open a file *.qet

Terminal Managment saves it info under the "<terminal_strips>" XML tag.

The QET TB Generator saves its info in the "Function" property of every terminal element.

Re: It takes too long time to open a file *.qet

New version 1.3.1 is available as pip package and as Linux Portable (https://github.com/raulroda/qet_tb_gene … aster/dist)

The windows portable version is cooming.

Re: It takes too long time to open a file *.qet

Hello Mike,
Actually the terminal manager is in development and should not be used for real project, prefer use unalcalde's QET TB Generator witch work very well.
Of course you can test the terminal manager and report bugs, ideas/something you want to have for this functionality, in this topic  https://qelectrotech.org/forum/viewtopic.php?id=1957 the topic is in french but you can write a post in English.

PS : I take a look at your website, I'm very impressed a company like your (High precision valve test) use our modest software.
I'm always (probably Laurent and all contribs of QET) very interested and content to see real use case of QET.

Développeur QElectroTech

24 (edited by Mike 2021-11-28 15:05:15)

Re: It takes too long time to open a file *.qet

Hello Joshua,

It is 100% clear that the "Terminal manager" is under development. That is why I said "played" with this software.

P.S.
1. QElectroTech is a simple in use tool, in compare with monsters like EPLAN or SolidWorks Electrical. So, it  saves time to design simple projects, which I consider current project is.
That is why I started to test QElectroTech (first project).
We are a "one-man" company and could use any software.
For example I use free KiCad to design electronic boards, and
LaTeX is used to prepare the most of manuals/documents/letters.
https://www.kicad.org/
https://www.latex-project.org/

2. Since, we are a very small company, our customers ask a very detailed documentation with a possibility to redesign in a future.
Open Source software is ideal for that (to be 100% transparent).

3. Perhaps, I will use QElectroTech to make documentation of my home electric/water/heating systems.

Re: It takes too long time to open a file *.qet

unalcalde wrote:

New version 1.3.1 is available as pip package and as Linux Portable (https://github.com/raulroda/qet_tb_gene … aster/dist)

The windows portable version is cooming.


New version 1.3.1 is now available as Debian deb package for Debian Sid and bullseye and also for Ubuntu Bionic Focal, Hirsute, and for Flatpak in my repo and also for Snap Ubuntu.

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