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
TeXstudio crashes trying save a file #3
Comments
I can't reproduce this. Can you use the bundled terminal (tools > open terminal) to copy the backtrace e.g. to ~ and upload it? |
The bundled terminal doesn't show me any output when texstudio crashes, even though it stays open. I could upload the files collected by abrt as I don't find the "/tmp/texstudio_backtrace2.txt" file. Also I'm using Fedora 28 with a Gnome desktop. |
You can run cp /tmp/texstudio_backtrace1.txt ~ in the bundled terminal. |
@Alexander-Wilms , Does TexStudio include the MiKTeX / TeXLive in its package? |
It includes TeX Live 2018 |
@Alexander-Wilms, Where is it installed? Yet on some files which worked on Windows (TeXStudio + MiKTeX) doesn't work now (Those which includes Any idea how to access TeXLive installed in this package and configure? |
Have you tried compiling it with the TeX Live packaged by your distribution? I remember that pdflatex doesn't work with eps unless one uses the eps2pdf package. You can get the path of the installed application with Edit: Just tried to compile a document containing an .eps and it failed due Ghostscript not being available. I'll try to fix this. |
Also, When I press Is it launched with |
@Alexander-Wilms I attached the backtrace files you asked for. |
Thanks. Another thing you could try is installing org.texstudio.TeXstudio.Debug, running |
So something isn't working well. It crashes when:
Which I thought is related to be able to access its folder (Maybe it is not configured as Also the GUI of TeX Live isn't working (Trying to launch
I wonder if you can switch to |
|
I'm new to Linux. I have Linux Mint 18.3 if it assists with inferring the issue. I will remove it and reinstall to see if it works now. |
Can you try |
I removed and reinstall.
So, the most important is 1 as all might be because I'm not on your latest version. Can you share your document which works with Regarding |
Here's an example document, I compiled it with this eps file and lualatex
No, org.kde.Plaform is a special flatpak, which provides a lot of common dependencies. xdg-desktop-portal-kde is a reguler non-flatpak package, which allows Flatpak apps to communicate with the host system via portals. |
I have
As you can see, GhostScript isn't configured.
|
Hm, I've uninstalled xdg-desktop-portal-kde, instead using xdg-desktop-portal-gtk, and opening as well as saving files still works. So the portal actually doesn't make a difference. I currently don't know what else could cause the crash. Maybe the Flathub mirrors near you haven't received that update yet. You can try building it yourself, though:
The |
I have found something. Is there any information I can supply to assist with the Also, is there a place the version is written? Should it be able to find GhostScript automatically? |
I can add environment variables during the build. Does lualatex stop working after running You can install TeXstudio from the Linux Mint repos (should be version 2.12.8 as well) and test if the crash happens there as well. For version information, you can run
Apparantly, I can't yet update the version installed from Flathub either, since this commit does not yet include Ghostscript.
I think TeXstudio should find Ghostscript automatically, I didn't change any preferences. |
This is the output of
If we go by commit, we have the same commit. If the commit is one to one identifier (Which is strange as it doesn't match the commit of GitHub) on my system it doesn't find GhostScript. Could you share the configuration of GhostScript in TexStudio? Indeed, without the |
I currently have 2 versions of TeXstudio installed:
You'll just need to wait, until a mirror near you has been updated. I didn't configure Ghostscript at all, TeXstudio found it automatically. Do you have LC_ALL set on your host system? |
OK, So let's wait for the update for GhostScript. But what can we do about the By default on my system |
Not sure. I think the backtrace in the OP is just TeXstudio's crash recovery. I found another way to trigger another crash and that contains more information: In the pdf viewer, one needs to click the
|
OK, Unfortunately, |
What's the output when you run the command |
No. I don't want to set it system wide. If we do that and solve the Though I still wish for a variant with MiKTeX instead of TeXLive. |
If you run And does |
After exporting the locale I can run lualatex within the sandboxed terminal but within Texstudio lualatex still fails to compile the document. |
Is a log shown in TeXstudio? Does specifying the environment variable via |
Specifying the environment variable like
got lualatex working for me. You want to check it yourself? |
I currently can't use my computer, but I'll push this change in a minute. |
I miraculously got the lualatex issue fixed on my laptop without exporting the environment variable but unfortunately I don't know any more how it was done. But I'm very certain that there is also another way. I just can't reproduce it. |
I don't know enough about the inner workings of flatpak to say whether that could be the reason. People in the #flatpak IRC channel might know more. If you use the VM only for testing, could you install KDE and test if TeXstudio still crashes when using KDE? I'm using Fedora 28 KDE as well, so that could help narrow down the problem. |
@Alexander-Wilms , On my system So only solving |
concerning the portals and flatpak itself, It might be of interest what exact version of flatpak is installed. |
Running |
Nice find. Can you open an issue against https://github.com/flatpak/flatpak regarding the locale issue? Also, I use flatpak 0.11.7-1. Which versions do you use, @JakobJakobson, @RoyiAvital? |
I use the latest on Flatpak PPA - |
@RoyiAvital mm so its probably not caused by this old flatpak bug |
Maybe this change to the KDE Sdk fixes this: KDE/flatpak-kde-runtime@4c54d20 |
@Alexander-Wilms , |
First the Sdk needs to be rebuilt, then TeXstudio. The org.kde.Platform runtime is a subset of the org.kde.Sdk and automatically installed, yes. |
Can you update and test if the issue is now resolved? |
@Alexander-Wilms , Now it seems the Appreciate your efforts! |
The only issue is that the |
Doesn't it remember the last location? You could file a bug report against xdg-desktop-portal-kde. |
|
Since the other issues don't mention
, you could create a new one. You can file issues with the portal here: https://bugs.kde.org/enter_bug.cgi?product=xdg-desktop-portal-kde&Bugzilla_restrictlogin=on&GoAheadAndLogIn=Log%20in |
@RoyiAvital Does the issue still occur wihout setting LC_ALL=C? |
I will have a look and report. |
@RoyiAvital ping |
@Alexander-Wilms , Tried on the latest release. The only caveat I find is that when the user chose "Save As" the dialog starts at |
And does lualatex work if you unset LC_ALL? |
No. |
Dear developers,
I installed TeXstudio on my PC but I ran into the following issue:
TeXstudio is blank and has no opened file,
, then I create a new file and try to save it. But by clicking on "save" or "save as" texstudio crashes.
If I start texstudio via the terminal I get the following output;
An existing existing file, I can open, edit and save without problems.
The text was updated successfully, but these errors were encountered: