Hi,
my settings are:
Linux Mageia 2,
TeXstudio 2.5.1 (SVN 3484) Using Qt Version 4.8.2, compiled with Qt
4.8.2 D, as stipulated from Help -> About TXS... But TXS was in
fact compiled from TXS SVN #3564.
TXS takes a very long time to start:
$ time texstudio real 1m13.770s user 1m4.176s sys 0m1.330s
and eats a lot of CPU:
$ pidstat 5 -p 7569 Linux 3.3.8-desktop-2.mga2 (localhost.localdomain) 14/12/2012 _i686_ (4 CPU) 09:55:28 PID %usr %system %guest %CPU CPU Command 09:55:33 7569 98,20 1,40 0,00 99,60 0 texstudio 09:55:38 7569 98,80 1,00 0,00 99,80 0 texstudio 09:55:43 7569 98,20 1,00 0,00 99,20 0 texstudio 09:55:48 7569 88,20 1,40 0,00 89,60 0 texstudio 09:55:53 7569 97,60 1,00 0,00 98,60 0 texstudio 09:55:58 7569 97,40 1,00 0,00 98,40 0 texstudio 09:56:03 7569 98,60 1,20 0,00 99,80 0 texstudio 09:56:08 7569 97,40 1,40 0,00 98,80 0 texstudio 09:56:13 7569 96,40 1,40 0,00 97,80 0 texstudio 09:56:18 7569 88,40 2,20 0,00 90,60 1 texstudio 09:56:23 7569 2,40 0,00 0,00 2,40 3 texstudio 09:56:28 7569 0,20 0,00 0,00 0,20 3 texstudio 09:56:33 7569 0,00 0,00 0,00 0,00 3 texstudio 09:56:38 7569 0,00 0,00 0,00 0,00 3 texstudio 09:56:43 7569 0,00 0,00 0,00 0,00 3 texstudio ...
Maybe related: when starting TXS from CLI without any texstudio.ini file, I get the message:
Format encoding version mismatch : [found] != [expected]1.0
I don't know how to debug this trouble.
Jan Sundermeyer
2012-12-14
did you compile txs yourself ?
Do you see a self-test at start-up ?
Do you restore a lot of files ?
(you can remove ~/.config/texstudio/texstudio.ini), assuming you have not changed many settings in txs, in order to get rid of the message.
Denis Bitouzé
2012-12-14
did you compile txs yourself ?
Yes, by:
make clean sh BUILD.sh
and by accepting all the default options.
Do you see a self-test at start-up ?
Yes and, indeed there are some harm failed tests (I always get failed tests because of non English language settings so I didn't pay attention to them):
********* Start testing of StructureViewTest ********* Config: Using QTest library 4.8.2, Qt 4.8.2 PASS : StructureViewTest::initTestCase() FAIL! : StructureViewTest::script(add Label) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(add Label2) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(add Label3) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change Label) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change Label2) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change Label3) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(remove line) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(remove lines2) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(add section) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(add section2) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change section) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change section2) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change section3) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2 Loc: [tests/structureview_t.cpp(215)] FAIL! : StructureViewTest::script(change section4) Compared values are not the same Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1 Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1 Loc: [tests/structureview_t.cpp(215)] RESULT : StructureViewTest::benchmark():"single line text": 0.059 msecs per iteration (total: 61, iterations: 1024) RESULT : StructureViewTest::benchmark():"labels1": 0.11 msecs per iteration (total: 59, iterations: 512) RESULT : StructureViewTest::benchmark():"labels2": 0.10 msecs per iteration (total: 54, iterations: 512) RESULT : StructureViewTest::benchmark():"labels3": 0.12 msecs per iteration (total: 62, iterations: 512) RESULT : StructureViewTest::benchmark():"sections": 0.096 msecs per iteration (total: 99, iterations: 1024) RESULT : StructureViewTest::benchmark():"sections with many children": 0.10 msecs per iteration (total: 55, iterations: 512) PASS : StructureViewTest::benchmark() PASS : StructureViewTest::cleanupTestCase() Totals: 3 passed, 14 failed, 0 skipped ********* Finished testing of StructureViewTest ********* Time: 2175 ms
Do you restore a lot of files ?
I don't understand what you mean by this.
(you can remove ~/.config/texstudio/texstudio.ini), assuming you have not changed many settings in txs, in order to get rid of the message.
In fact, I moved this file to a backup one:
mv -f ~/.config/texstudio/texstudio.ini ~/.config/texstudio/texstudio-old.ini
Jan Sundermeyer
2012-12-14
So to clear up some things:
1) you are not talking about the self-test when talkimg about large cpu
consumption ?
2) did the removal of texstudio.ini change anything ?
3) restore files/ restore session: txs loads the files which had open
when closing txs at start-up if "restore session" is activated.
Obviously, if you had many files open, that might take some time.
By the way during the large cpu consumption, can you work with txs or is
it blocked ?
Jan
On 14.12.2012 12:03, "Denis Bitouzé" wrote:
did you compile txs yourself ?Yes, by:
make clean
sh BUILD.shand by accepting all the default options.
Do you see a self-test at start-up ?Yes and, indeed there are some harm failed tests (I always get failed
tests because of non English language settings so I didn't pay
attention to them):* Start testing of StructureViewTest *
Config: Using QTest library 4.8.2, Qt 4.8.2
PASS : StructureViewTest::initTestCase()
FAIL! : StructureViewTest::script(add Label) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(add Label2) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(add Label3) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change Label) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change Label2) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change Label3) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(remove line) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(remove lines2) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(add section) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(add section2) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change section) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change section2) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change section3) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2
Loc: [tests/structureview_t.cpp(215)]
FAIL! : StructureViewTest::script(change section4) Compared values are not the same
Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
Loc: [tests/structureview_t.cpp(215)]
RESULT : StructureViewTest::benchmark():"single line text":
0.059 msecs per iteration (total: 61, iterations: 1024)
RESULT : StructureViewTest::benchmark():"labels1":
0.11 msecs per iteration (total: 59, iterations: 512)
RESULT : StructureViewTest::benchmark():"labels2":
0.10 msecs per iteration (total: 54, iterations: 512)
RESULT : StructureViewTest::benchmark():"labels3":
0.12 msecs per iteration (total: 62, iterations: 512)
RESULT : StructureViewTest::benchmark():"sections":
0.096 msecs per iteration (total: 99, iterations: 1024)
RESULT : StructureViewTest::benchmark():"sections with many children":
0.10 msecs per iteration (total: 55, iterations: 512)
PASS : StructureViewTest::benchmark()
PASS : StructureViewTest::cleanupTestCase()
Totals: 3 passed, 14 failed, 0 skipped
* Finished testing of StructureViewTest *
Time: 2175 msDo you restore a lot of files ?I don't understand what you mean by this.
(you can remove ~/.config/texstudio/texstudio.ini), assuming you have not changed many settings in txs, in order to get rid of the message.In fact, I moved this file to a backup one:
mv -f ~/.config/texstudio/texstudio.ini ~/.config/texstudio/texstudio-old.ini
[bugs:#660] http://sourceforge.net/p/texstudio/bugs/660/ TXS takes
a very long time to start and eats a lot of CPUStatus: open
Created: Fri Dec 14, 2012 09:05 AM UTC by Denis Bitouzé
Last Updated: Fri Dec 14, 2012 09:59 AM UTC
Owner: nobodyHi,
my settings are:
*
Linux Mageia 2,*
TeXstudio 2.5.1 (SVN 3484) Using Qt Version 4.8.2, compiled with Qt 4.8.2 D, as stipulated from Help -> About TXS... But TXS was in fact compiled from TXS SVN #3564.TXS takes a very long time to start:
$ time texstudio
real 1m13.770s
user 1m4.176s
sys 0m1.330sand eats a lot of CPU:
$ pidstat 5 -p 7569
Linux 3.3.8-desktop-2.mga2 (localhost.localdomain) 14/12/2012 i686 (4 CPU)09:55:28 PID %usr %system %guest %CPU CPU Command
09:55:33 7569 98,20 1,40 0,00 99,60 0 texstudio
09:55:38 7569 98,80 1,00 0,00 99,80 0 texstudio
09:55:43 7569 98,20 1,00 0,00 99,20 0 texstudio
09:55:48 7569 88,20 1,40 0,00 89,60 0 texstudio
09:55:53 7569 97,60 1,00 0,00 98,60 0 texstudio
09:55:58 7569 97,40 1,00 0,00 98,40 0 texstudio
09:56:03 7569 98,60 1,20 0,00 99,80 0 texstudio
09:56:08 7569 97,40 1,40 0,00 98,80 0 texstudio
09:56:13 7569 96,40 1,40 0,00 97,80 0 texstudio
09:56:18 7569 88,40 2,20 0,00 90,60 1 texstudio
09:56:23 7569 2,40 0,00 0,00 2,40 3 texstudio
09:56:28 7569 0,20 0,00 0,00 0,20 3 texstudio
09:56:33 7569 0,00 0,00 0,00 0,00 3 texstudio
09:56:38 7569 0,00 0,00 0,00 0,00 3 texstudio
09:56:43 7569 0,00 0,00 0,00 0,00 3 texstudio
...Maybe related: when starting TXS from CLI without any texstudio.ini
file, I get the message:Format encoding version mismatch : [found] != [expected]1.0
I don't know how to debug this trouble.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/texstudio/bugs/660/To unsubscribe from further messages, please visit
https://sourceforge.net/auth/prefs/
Denis Bitouzé
2012-12-14
So to clear up some things:
1) you are not talking about the self-test when talkimg about large cpu consumption ?
Yes, it seems to be the case only during startup (before/during self-tests in case of no texstudio.ini file).
2) did the removal of texstudio.ini change anything ?
Maybe starting time is shorter but is long anyway and large cpu consumption arises.
3) restore files/ restore session: txs loads the files which had open when closing txs at start-up if "restore session" is activated. Obviously, if you had many files open, that might take some time.
The trouble arises also without any texstudio.ini file so without anything to restore.
By the way during the large cpu consumption, can you work with txs or is it blocked ?
I can't work with it because it arises during starting time.
Another point: when loading a profile, in fact the following profile:
[texmaker] Editor\Completion%20Files=amsmath.cwl, amsthm.cwl, booktabs.cwl, glossaries.cwl, graphicx.cwl, hyperref.cwl, latex-document.cwl, latex-mathsymbols.cwl, libertine.cwl, listings.cwl, longtable.cwl, lscape.cwl, ltxtable.cwl, menukeys.cwl, nameref.cwl, siunitx-special.cwl, siunitx.cwl, tabularx.cwl, tex.cwl, txs.cwl, varioref.cwl Macros\0=TXS La&TeX code fragment, \xa3%|\xa3, , ttt Macros\1=TXS &JavaScript code fragment, \xa9%|\xa9, , jjj Macros\2=TXS &Neutral code fragment, \xae%|\xae, , nnn Macros\3=TXS \"&Labels\" code fragment, \xa7%|\xa7, , lll Macros\4=TXS &Escaping to LaTeX, \xb6%|\xb6, , eee Tools\Commands\user0="xelatex -recorder -synctex=1 -interaction=nonstopmode usermanual.tex" Tools\Commands\user1=latexmk % Tools\Commands\user2=htxelatex usermanual \"txs-html\" Tools\Commands\user3=htxelatex usermanual \"txs-html\" | makeglossaries usermanual | htxelatex usermanual \"txs-html\" Tools\Display%20Names=(TXS) PDF (&xelatex), (TXS) updated PDF (latexm&k), (TXS) HTML (&htxelatex), (TXS) &updated HTML Tools\User%20Order=user0,user1,user2,user3,user4
TXS also eats a lot of CPU and it is (sometimes as well as my system), completely unusable.
Benito van der Zander
2012-12-14
The trouble arises also without any texstudio.ini file
Well, at the first start without a texstudio.ini it starts slower, since
it does the tests and searches the path for the latex commands...
If you have a debug version you can call it with
valgrind --tool=callgrind ./texstudio
and get exact profiling information where most time is spent
On my computer most of the time was actually spent loading the system
theme icons, you might want to try to disable that option
Editor\Completion%20Files=amsmath.cwl, amsthm.cwl, booktabs.cwl, glossaries.cwl, graphicx.cwl, hyperref.cwl, latex-document.cwl, latex-mathsymbols.cwl, libertine.cwl, listings.cwl, longtable.cwl, lscape.cwl, ltxtable.cwl, menukeys.cwl, nameref.cwl, siunitx-special.cwl, siunitx.cwl, tabularx.cwl, tex.cwl, txs.cwl, varioref.cwl
Perhaps it does some cwl file parsing there??
Denis Bitouzé
2012-12-14
Well, at the first start without a texstudio.ini it starts slower, since it does the tests and searches the path for the latex commands...
Before I encountered this trouble since some SVN commits, TXS used to start within 2 seconds. Now, it takes more than 1 minute and eats lot (> 95 %) of CPU: I'm sure something is going wrong.
If you have a debug version you can call it with
valgrind --tool=callgrind ./texstudio
and get exact profiling information where most time is spent
Well, I started it in the trunk directory (is it OK) but nothing happens: TXS doesn't start and I only get the following in the terminal:
[bitouze@localhost trunk]$ valgrind --tool=callgrind ./texstudio ==22972== Callgrind, a call-graph generating cache profiler ==22972== Copyright (C) 2002-2011, and GNU GPL'd, by Josef Weidendorfer et al. ==22972== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==22972== Command: ./texstudio ==22972== ==22972== For interactive control, run 'callgrind_control -h'.
On my computer most of the time was actually spent loading the system theme icons, you might want to try to disable that option
OK but, once again, it is not just a matter of impatience :) Something is really going wrong. BTW, IMHO, loading the system theme icons should be disabled by default.
Perhaps it does some cwl file parsing there??
Maybe but, once again, so such trouble some commits ago.
Benito van der Zander
2012-12-14
Well, I started it in the trunk directory (is it OK) but nothing
happens: TXS doesn't start and I only get the following in the terminal:Then something has happened :)
It does not crash, and your cpu usage increases, doesn't it?
valgrind causes it too run really slowly, perhaps 10 times slower,
so you have to wait 10min, if it needs 1min without valgrind
Jan Sundermeyer
2012-12-14
If you pinpoint which commit caused the problem,it may be helpful.
You can checkout older versions and try them and see which commit causes
the mess...
Jan
On 14.12.2012 15:09, "Denis Bitouzé" wrote:
Well, at the first start without a texstudio.ini it starts slower, since it does the tests and searches the path for the latex commands...Before I encountered this trouble since some SVN commits, TXS used to
start within 2 seconds. Now, it takes more than 1 minute and eats lot
(> 95 %) of CPU: I'm sure something is going wrong.If you have a debug version you can call it with valgrind --tool=callgrind ./texstudio and get exact profiling information where most time is spentWell, I started it in the trunk directory (is it OK) but nothing
happens: TXS doesn't start and I only get the following in the terminal:[bitouze@localhost trunk]$ valgrind --tool=callgrind ./texstudio
==22972== Callgrind, a call-graph generating cache profiler
==22972== Copyright (C) 2002-2011, and GNU GPL'd, by Josef Weidendorfer et al.
==22972== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==22972== Command: ./texstudio
==22972==
==22972== For interactive control, run 'callgrind_control -h'.On my computer most of the time was actually spent loading the system theme icons, you might want to try to disable that optionOK but, once again, it is not just a matter of impatience :) Something
is /really/ going wrong. BTW, IMHO, loading the system theme icons
should be disabled by default
[bugs:#660] http://sourceforge.net/p/texstudio/bugs/660/ TXS takes
a very long time to start and eats a lot of CPUStatus: open
Created: Fri Dec 14, 2012 09:05 AM UTC by Denis Bitouzé
Last Updated: Fri Dec 14, 2012 01:54 PM UTC
Owner: nobodyHi,
my settings are:
*
Linux Mageia 2,*
TeXstudio 2.5.1 (SVN 3484) Using Qt Version 4.8.2, compiled with Qt 4.8.2 D, as stipulated from Help -> About TXS... But TXS was in fact compiled from TXS SVN #3564.TXS takes a very long time to start:
$ time texstudio
real 1m13.770s
user 1m4.176s
sys 0m1.330sand eats a lot of CPU:
$ pidstat 5 -p 7569
Linux 3.3.8-desktop-2.mga2 (localhost.localdomain) 14/12/2012 i686 (4 CPU)09:55:28 PID %usr %system %guest %CPU CPU Command
09:55:33 7569 98,20 1,40 0,00 99,60 0 texstudio
09:55:38 7569 98,80 1,00 0,00 99,80 0 texstudio
09:55:43 7569 98,20 1,00 0,00 99,20 0 texstudio
09:55:48 7569 88,20 1,40 0,00 89,60 0 texstudio
09:55:53 7569 97,60 1,00 0,00 98,60 0 texstudio
09:55:58 7569 97,40 1,00 0,00 98,40 0 texstudio
09:56:03 7569 98,60 1,20 0,00 99,80 0 texstudio
09:56:08 7569 97,40 1,40 0,00 98,80 0 texstudio
09:56:13 7569 96,40 1,40 0,00 97,80 0 texstudio
09:56:18 7569 88,40 2,20 0,00 90,60 1 texstudio
09:56:23 7569 2,40 0,00 0,00 2,40 3 texstudio
09:56:28 7569 0,20 0,00 0,00 0,20 3 texstudio
09:56:33 7569 0,00 0,00 0,00 0,00 3 texstudio
09:56:38 7569 0,00 0,00 0,00 0,00 3 texstudio
09:56:43 7569 0,00 0,00 0,00 0,00 3 texstudio
...Maybe related: when starting TXS from CLI without any texstudio.ini
file, I get the message:Format encoding version mismatch : [found] != [expected]1.0
I don't know how to debug this trouble.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/texstudio/bugs/660/To unsubscribe from further messages, please visit
https://sourceforge.net/auth/prefs/
Denis Bitouzé
2012-12-14
If you pinpoint which commit caused the problem,it may be helpful.
You can checkout older versions and try them and see which commit causes the mess...
Could you please remind me what's the command line to use in order to get a given version? Currently, here is what I use to get the latest one:
svn checkout --username=denisbitouze svn+ssh://denisbitouze@svn.code.sf.net/p/texstudio/code/trunk trunk
BTW, each time I use it, I have to give my password twice :(
Denis Bitouzé
2012-12-14
If you pinpoint which commit caused the problem,it may be helpful.
You can checkout older versions and try them and see which commit causes the mess...
Well, I started from SVN #3570, came to the latest one (#3585) and now everything is OK. Sorry for the noise (I can nevertheless provide the callgrind file if desired): I guess the bug can be closed.