Bug 469001 - Not being able to save project in any directory
Summary: Not being able to save project in any directory
Status: ASSIGNED
Alias: None
Product: LabPlot2
Classification: Applications
Component: backend (show other bugs)
Version: 2.9.0
Platform: Snap Linux
: NOR grave
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
: 478507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-26 12:33 UTC by colfer2009
Modified: 2024-10-28 11:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of a bug (215.74 KB, image/png)
2023-04-26 12:33 UTC, colfer2009
Details
Bug on 2.10 (180.79 KB, image/png)
2023-05-05 09:52 UTC, colfer2009
Details

Note You need to log in before you can comment on or make changes to this bug.
Description colfer2009 2023-04-26 12:33:16 UTC
Created attachment 158446 [details]
Screenshot of a bug

SUMMARY
***
After installation of labplot2.9 from either Ubuntu Software or snap terminal package resulting installation of labplot is unable to do any writes always trying to use run/user/uid/doc folder as default and ignoring whatever directory you choose manually (be it in home directory or on mounted disk). Other snap apps work as expected saving and modifying files in any chosen directory (firefox, vscode). 
***

STEPS TO REPRODUCE
1. Install using Ubuntu software or in terminal using $sudo snap install labplot
2. Launch app, make any changes to created project, try to save

OBSERVED RESULT
Couldn't save the file '/run/user/1000/doc/f50b5fe/GaAs+In.lml'.

EXPECTED RESULT
Being able to save file in any chosen folder

SOFTWARE/OS VERSIONS

Linux: Ubuntu 20.04.6 LTS


ADDITIONAL INFORMATION
Version 2.7 that can be installed from ubuntu-focal-universe alongside 2.9 works fine saving and opening files as intended
Comment 1 Alexander Semke 2023-04-26 19:47:44 UTC
(In reply to colfer2009 from comment #0)
> Created attachment 158446 [details]
> Screenshot of a bug
> 
> SUMMARY
> ***
> After installation of labplot2.9 from either Ubuntu Software or snap
> terminal package resulting installation of labplot is unable to do any
> writes always trying to use run/user/uid/doc folder as default and ignoring
> whatever directory you choose manually (be it in home directory or on
> mounted disk). Other snap apps work as expected saving and modifying files
> in any chosen directory (firefox, vscode). 

We released 2.10 recently. Does the problem still exist in the last release?
Comment 2 colfer2009 2023-04-27 08:34:48 UTC
(In reply to Alexander Semke from comment #1)
> (In reply to colfer2009 from comment #0)
> > Created attachment 158446 [details]
> > Screenshot of a bug
> > 
> > SUMMARY
> > ***
> > After installation of labplot2.9 from either Ubuntu Software or snap
> > terminal package resulting installation of labplot is unable to do any
> > writes always trying to use run/user/uid/doc folder as default and ignoring
> > whatever directory you choose manually (be it in home directory or on
> > mounted disk). Other snap apps work as expected saving and modifying files
> > in any chosen directory (firefox, vscode). 
> 
> We released 2.10 recently. Does the problem still exist in the last release?

Hi, latest version available in snapstore at the moment is 2.9 dated 25th August 2022 https://snapcraft.io/labplot
Comment 3 Jonathan Riddell 2023-05-03 08:40:17 UTC
Ping @scar
Comment 4 Scarlett Moore 2023-05-03 13:08:31 UTC
Labplot has not been upgraded to core22. On my to-do list today. Thanks for the report.
Comment 5 Scarlett Moore 2023-05-04 16:07:27 UTC
Please test the latest version in the snap store ( 2.10 )
Comment 6 colfer2009 2023-05-05 09:52:00 UTC
Created attachment 158710 [details]
Bug on 2.10
Comment 7 colfer2009 2023-05-05 09:56:16 UTC
(In reply to Scarlett Moore from comment #5)
> Please test the latest version in the snap store ( 2.10 )

Unfortunately the error is still there. I can send info about my system/logs if it can help. Tell me if you need something.
Comment 8 Scarlett Moore 2023-05-05 11:59:13 UTC
Ok, so save-as works, but when I use just save I get a seg fault. It has something to do with snaps have there own /tmp and does not use the host /tmp ( confinement ). So I have to figure this one out still.
Comment 9 Scarlett Moore 2023-05-08 13:20:11 UTC
Please test the latest upload - I believe I have it fixed. Thanks!
Comment 10 colfer2009 2023-05-11 04:56:59 UTC
(In reply to Scarlett Moore from comment #9)
> Please test the latest upload - I believe I have it fixed. Thanks!

There was no update available when I checked Ubuntu Software, so I waited for it to be pushed but it didn't happen. So I just reinstalled the app from both available snap repositories (stable, candidate) and it didn't work. Waited a day, reinstalled and bug was still there. There were no changes in how program behaved.
Comment 11 Scarlett Moore 2023-05-11 10:50:37 UTC
Ok, please outline the  exact steps you take.  I was able to open an example, make a change, click save, a window popped up asking me where, I pointed to home, and it saved. Are you able to save-as? Sorry, I am really trying to resolve this.
Comment 12 colfer2009 2023-05-11 16:11:29 UTC
1. I install LabPlot from Ubuntu software (latest/stable channel). Installation asks for password and then it's automatic.

2. I open app through Ubuntu apps tab then it loads with dummy project open. When I press save button with floppy disk icon it opens standard ubuntu explorer window with my home directory (usually when fresh installed, after few cycles it opens /run/user/1000/doc/f50b5fe/). When I try to save anything in it (or any other location) I enter name (for example, 'test'), press enter and it shows the error window (from "screenshot of a bug" picture). When I press save button again no window opens and same error (with same name of file I entered) pops up. 

3. If I use after that "Save as" option in drop down menu, standard ubuntu save window shows again with home directory. I try to save file, but it errors. If I try Save as option few more times, instead of home directory it shows /run/user/1000/doc/f50b5fe/ folder. After this "Project - LabPlot" at top of the window changes to /run/user/1000/doc/f50b5fe/test.lml. 

4. While I was testing the app, it hanged on me once. Wasn't able to close it or do anything inside the window, but collapse worked fine. Probably unrelated.
Comment 13 Alexander Semke 2024-02-25 09:31:52 UTC
*** Bug 478507 has been marked as a duplicate of this bug. ***
Comment 14 Martin 2024-10-28 08:36:09 UTC
Can you try with the latest release?
Comment 15 colfer2009 2024-10-28 11:22:45 UTC
(In reply to Martin from comment #14)
> Can you try with the latest release?

My system have changed since creation of this ticket (I'm using kubuntu 20.04 now), so I won't be able to replicate situation in original bug report anymore. I tried Flatpak install of labplot 2.11.1 and it ran well, not exhibiting any problems with saving both in "Save" and "Save as" mode.