texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.74k stars 342 forks source link

Unexpected crash #3730

Open MysaaJava opened 2 months ago

MysaaJava commented 2 months ago

I was just moving with the mouse between files. Four files were open "header.tex","M2Report.tex","header-test.tex","test.tex". I changed tab to "header.tex", and then i selected (with mouse) the line "\usepackage{autofe}". Then i pressed backspace to delete it, and crash.

Texstudio proposed to recover, i did recover and it crashed again when i tried to edit the second line. I recovered again, and modified other lines than the first or second, it worked. I modified the second line, it crashed.

I stopped texstudio and started it again, and it was not crashing anymore.

Environment

How to reproduce

I did not find how to reproduce it :(

I am joining the backtraces of the different crashes that happened. They all happened during the same texstudio session (no restart) texstudio_backtrace1.txt texstudio_backtrace2.txt texstudio_backtrace3.txt texstudio_backtrace4.txt texstudio_backtrace5.txt texstudio_backtrace6.txt

I can conduct other tests if you want. Here is the faulty file, converted to txt, and the recover file: header.txt header.tex.recover.bak~.txt

sunderme commented 2 months ago

any chance that "header.tex" was included in two open tex files ?

MysaaJava commented 2 months ago

I think it was opened in two files (M2report.tex and test.tex), and i removed the depedency from test.tex (i removed the include) and after the depedency was removed, i had the segfault

sunderme commented 1 month ago

I have played around with two root documents to the same header, but I get no crash. Can you try to reproduce the issue ?

sunderme commented 2 weeks ago

can you provide your complete files ?