Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected crash #3730

Open
MysaaJava opened this issue Jul 12, 2024 · 5 comments
Open

Unexpected crash #3730

MysaaJava opened this issue Jul 12, 2024 · 5 comments

Comments

@MysaaJava
Copy link

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

  • TeXstudio: TeXstudio 4.8.1 (git 0.0.0++)
  • Qt: Using Qt Version 5.15.13, compiled with Qt 5.15.13 R
  • OS: Ubuntu 24.04 LTS -- Linux 6.8.0-38-generic LanguageTool errors not underlined #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • TeX distribution: texlive-full package (i think it is unrelated)

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
Copy link
Member

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

@MysaaJava
Copy link
Author

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
Copy link
Member

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
Copy link
Member

can you provide your complete files ?

@sunderme
Copy link
Member

sunderme commented Oct 1, 2024

I have found and fixed "a" crash.
Can you try out the latest dev build ? (https://github.com/texstudio-org/texstudio/actions/runs/11129741620)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants