From few SVN revisions (I'd say >= #3663, but I don't know the exact one), I got a crash at starting:
$ texstudio Format encoding version mismatch : [found] != [expected]1.0 terminate called after throwing an instance of 'St9bad_alloc' what(): std::bad_alloc Abandon
does it happen still happen if there is no texstudio.ini? (temporarily rename it)
Does your ini contain
version=1.0
in the formats section?It was the first thing I tested and, unfortunately, yes, it happens with and without texstudio.ini.
Yes.
BTW, the message:
appears only without texstudio.ini.
Just checked: The format warning appears always if there is no texstudio.ini. But it's harmless (maybe I'll change later) and does not have anything to do with the crash.
Can you run it in debug mode and post the stack trace and/or figure out which exact revision caused this?
Could you remind me how to run it in debug mode?
Actually that format warning has always been there, from the very first
release...
gdb ./texstudio
in command line and then type "run". And "bt" when it has crashed.
When it was compiled as debug version
OK. Could be somewhere on the TXS wiki...
AFAIK, it is the case by default, no? Anyway, it is the case when building with:
Very strange.
What does it print if you insert
qDebug() << str << " " << config;
between line 809 and 810 in latexcompleter.cpp?
With, at lines 809-811 of
latexcompleter.cpp
:I get:
Then you have other line numbers than I...
Which svn revision do you use? Did you change something?
3692
As far as I can remember, no and I even tried with a fresh install. But I will try again with a fresh install and let you know what happens.
Just noticed: I did not have the latest version
So what does it print if you insert it before line 816?
So, same trouble with a fresh install and with this addition at line 816, I get:
It is not printing anything.
Did you compile it after adding it?
Hum! Sorry, I forgot to do that. BTW, on which "
texstudio
" file am I supposed to run:on the one in
.../trunk
or in/usr/local/bin/texstudio
?The one in trunk, if it is the newest one
OK, that's what I did from the beginning.
Here is what I get (long):
What happens if you remove the wordCount.usage file?
(do not delete it, we might need it for testing)
Then everything is okay!
Last edit: Denis Bitouzé 2013-01-11
It's the same issue as with that slow starting...
Can you send me that file?
I'm afraid I can't:
Holy shit, what is going wrong with your file?
It is 2 KB on my computer...
Perhaps you can compress it with bzip
Exactly what I did after I had a look inside it and see it was mostly empty: it is now only 70K and is attached.
Are you using \dd often?
How do you insert it?