-
Notifications
You must be signed in to change notification settings - Fork 363
texstudio crashes when use internal view-pdf #4023
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
Comments
Without a test case, there is nothing we can do. |
I j
8000
ust did a lot of testing, the files used for the test are attached. The specific results are: |
Add a sentence: test0.tex is created in 4.3.7version, test1.tex is created in 4.8.5version, and document.tex is 4.8.6version. |
!A very important message: In test0.tex, there are two [figure] environment next to each other. Delete one or both of them then no crash. document.tex is the same. |
I think the crash depends on the number of pictures(or [figure] environment?): <=1, no crash; =2 carsh half the time; =3, almost crash every time, occasionally it won't crash. |
I see the crash on windows (test1.pdf) |
I have the same issue with one of my colleagues documents. As the document is rather large I did not find the exact part of the PDF that causes the crash. |
I am not seeing the crash any more on windows. No idea what changed. |
The crash still appear on my desktop, and the phenomenon is as the same. |
general update. |
Environment
This also happens to me. The weird part was the first crash happended when was trying to add a word to the dictionary, the it completely crashed. Had to remove lastsession information. Now the inbuilt pdf when i to try to oppen a pdf crashes... But the pdf oppens in external viewer. |
Please provide the pdf which causes the crash. |
The same happens to me. I've added an example. It looks like too many pdf figures inside the main file cause the problem. External viewer (Acrobat) works without the errors. Environment: TeXstudio 4.8.6 (git 4.8.6), Qt 6.8.2, Win 11, TexLive 2025 |
I don't see the crash anymore. |
It still crashes with 4.8.7beta2. |
please send the backtrace |
Can you provide some hints where the backtrace file resides or how to create it? I've checked c:\users\my_name\AppData\Local\Temp, but I've found nothing there. |
that is where it should be. |
Yes, there was a message. I've got also the respective dmb file in CrashDumps. |
Same problem texstudio 4.86 crashes trying to open PDF viewer. It seems to be caused by stale files in Program Files/texstudio. These may refer to earlier versions of Qt.
|
can the other reporters follow the steps above and check ? |
you can also try the installer from here: https://github.com/texstudio-org/texstudio/actions/runs/14500808920 It removes all dlls before copying the new ones. |
I've uninstalled TeXStudio, removed its entire folder, and then reinstalled the app (4.8.6). It still crashes when using pdfviewer for the files with many figures. BTW - I'm not completely sure, but the errors have started to appear after updating my tex from TexLive 2024 to 2025... |
When I encountered the problems with version 4.8.6, on my desktop computer, I tried 4.87 beta2, and 4.8.5 and the problems continued. Downgrading to 4.84 worked. I then realized that I had a working version of 4.8.6 on my laptop which continued to work properly on the same source file. I started comparing the installations and then noticed the date stamps on the files in the generic subfolder in the installation were older than the rest of the installation. That prompted me to suggest deleting the texstudio folder in Program Files. I will add that at some point I made sure that my MiKTeX installation was up to date, including running 'refresh the file name database', under the Tasks tab. Hope that helps. |
Version 4.8.4 works. All newer versions (including 4.8.7RC) crash when the internal pdfviewer is used for the output pdf file with many pdf figures embedded inside. However, 4.8.5 worked with TexLive 2024, so the problem is somehow related also to the new version of TexLive. I would like to help, but no log file can be found to point out the source of the error. Is there a way to force the creation of such a debug file? |
you can compile txs locally and try to run the debugger. See also https://github.com/texstudio-org/texstudio/wiki/Compiling |
As a first try I moved (drag&drop) test1.pdf to the windowed internal pdf-viewer and txs crashed. I tried also with no-session option or Open dialog from txs main window and pdf-viewer window. But I still couldn't find a procedure how to reproduce. Most of the time it works. I can switch the viewer from windowed to embedded, then enlarge and shrink the viewer. No direct issues here. Acrobat and pdf24 no issues. Environment info: Win 10 pro My builds always run with debug option and following messages appeared on loading the pdf: "Error: Couldn't find a font for 'Times-Roman', subst is 'Helvetica'" No crash information in the msys2 console. Since no information are available on how the tex file should be build, I didn't try that. Is the number of images really important? One of my tex documents I'm working on contains about 230 tikz images. These appear in several files (about 40) included from the main or included files. The final pdf has a size of about 8.6MB. The two eps images containded in test1.pdf have a size of less or equal to 100kB with about 6'000 lines each. This looks not very large to me. |
Win10 Enterprise Unfortunately, I cannot share the .pdf or .tex docs due to corporate data control but did want to say I am having the same issue. It started with 4.8.6 but has continued after installing 4.8.7. It doesn't happen all the time. Initially, I noticed that TeXstudio kept silently crashing when I was first invoking the app. It seemed to happen when attempting to load the .pdf in the built-in viewer. I went into user>AppData > Roaming > texstudio and deleted the lastSession.txss2 and was then able to start up. However, when I tried to load the session manually, it crashed again. I opened the root document and recompiled and it worked. I've been through this cycle several times and even with different documents. Did something change in 4.8.6? If I can contribute to trouble shooting in any way shy of sharing the documents (I know...), please let me know and I'll do my best. |
you can look if a backtrace is there. Or better compile txs with debug info and run it in a debugger. |
the original crash, I consider solved. |
is the problem fixed in version 4.8.8beta4? or any other version? |
Environment
Actual behavior
After I build a .tex file, I want to view it in the internal pdf-viewer(F7), then texstudio crashes. But the PDFfile has no problem because I can view it by external PDF-reader, such as Acrobat. I think the building is successful, but the internal pdf-viewer has some wrong.
More information: If change the Render Backend of internal pdf-viewer from Splash to Arthur, then no crash, but the PDF in the viewer only show Chinese character, any number and letter disappear, see attachment
. PDFfile is normal.
4.8.5version has the same problem.
How to reproduce
It only appear on my computer, I don't know how to reproduce.
The text was updated successfully, but these errors were encountered: