[Workaround] Restore open files at startup not working

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

[Workaround] Restore open files at startup not working

Post by Relic » Sun Nov 21, 2021 4:53 pm

Hi,
I just upgraded to QCAD Pro 3.26.4.13, set the preference to open the last opened file at startup but it doesn't work. Any hint?
Schermata 2021-11-21 alle 16.47.45.png
Schermata 2021-11-21 alle 16.47.45.png (106.68 KiB) Viewed 8255 times

Thanks in advance

Massimo


QCAD Pro 3.26.4.13
MacOS 10.13.6


Update: filed bug report https://qcad.org/bugtracker/index.php?d ... sk_id=2318
Last edited by Relic on Fri Feb 10, 2023 2:04 pm, edited 2 times in total.

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Restore open files at startup not working

Post by andrew » Mon Nov 22, 2021 1:17 pm

I cannot reproduce a problem with this feature.

To make sure, we're on the same page: The idea is that you don't close the drawing(s) you are working on but quit the QCAD application. On the next start, QCAD will then open the file(s) that were still open when QCAD was quit.

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

Re: Restore open files at startup not working

Post by Relic » Tue Nov 23, 2021 12:44 pm

Hi Andrew,
yes I followed the procedure you described but on startup QCAD opened a new empty drawing instead of the last one that I was working on. I deleted the preferences as described in the FAQs and repeated the test, no success. Created a new test drawing and saved it before quitting QCAD, no success.

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Restore open files at startup not working

Post by andrew » Tue Nov 23, 2021 9:59 pm

Could you attach your QCAD3.ini file after quitting QCAD with a file open? Thanks.

User avatar
J-J
Moderator
Posts: 501
Joined: Tue Mar 24, 2009 9:48 pm

Re: Restore open files at startup not working

Post by J-J » Wed Nov 24, 2021 7:17 am

It works with Windows, may-be Macs have their own ways
JJ Win7 pro-64

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

Re: Restore open files at startup not working

Post by Relic » Wed Nov 24, 2021 10:34 am

@andrew: ini file attached, last opened file is "test reopen.dxf"

@J-J: I get the same behavior on XP 32-bit
Attachments
QCAD3.ini.zip
(14.59 KiB) Downloaded 353 times

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Restore open files at startup not working

Post by andrew » Wed Nov 24, 2021 10:43 am

Odd. I cannot reproduce on any system (macOS, Windows XP, Windows 10, Linux). Can you save any other preferences? Otherwise it might be a permissions problem.

Anyway, I'll have to leave it at that for now as I cannot reproduce the problem here.

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

Re: Restore open files at startup not working

Post by Relic » Wed Nov 24, 2021 12:21 pm

AFAICS I can set/unset other preferences and they are remembered. I tried changing permissions of the .ini file to everyone read/write but it doesn't work.


edit: later I noticed that the StatusBar flag is always set to "false" when QCAD quits, then I have to manually switch it on every time. Annoying.
Last edited by Relic on Wed Nov 24, 2021 10:46 pm, edited 1 time in total.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Restore open files at startup not working

Post by petevick » Wed Nov 24, 2021 3:49 pm

Have you checked the folder permissions that the ini file resides in?
FYI the section in the ini file that should be saving the last file open is named [OpenFile] and it is the first two lines, ActiveFile= and OpenFiles=. I assume it's the same for all OS's
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

Re: Restore open files at startup not working

Post by Relic » Wed Nov 24, 2021 4:40 pm

@petevick :
Folder permissions are correct, read/write for the owner and read only for everyone else. I already looked at the settings you mention, first line is empty and the other line has an invalid argument no matter what file I was working on upon quitting QCAD. Writing manually the file name I wish QCAD to reopen does nothing. To disappoint of my iMac (and mine too), this option works smoothly on Windows 10 :(

[OpenFile]
ActiveFile=
OpenFiles=@Invalid()


Cheers

Massimo

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Restore open files at startup not working

Post by petevick » Wed Nov 24, 2021 4:56 pm

Relic wrote:
Wed Nov 24, 2021 4:40 pm
OpenFiles=@Invalid()
That line is usually the same as the first line. I have no idea why that has been generated.
Just a totally wild shot, and it's the only thing I can come up with, have you tried saving a file without any spaces in the file name ?.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4942
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Restore open files at startup not working

Post by Husky » Wed Nov 24, 2021 8:03 pm

Hi,

I checked your ini on Win too. First launch with QCAD will open new empty drawing. Loaded a test drawing - closed QCAD - relaunched QCAD - it will open the last open drawing without any problems ...
Relic wrote:
Sun Nov 21, 2021 4:53 pm
I just upgraded to QCAD Pro 3.26.4.13,
Did you mix different QCAD versions in the same folder?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
Relic
Active Member
Posts: 28
Joined: Sun Aug 26, 2018 4:02 pm

Re: Restore open files at startup not working

Post by Relic » Wed Nov 24, 2021 9:25 pm

petevick wrote:
Wed Nov 24, 2021 4:56 pm
[...] have you tried saving a file without any spaces in the file name ?
Yes, sorry no good news.

Husky wrote:
Wed Nov 24, 2021 8:03 pm
[...] Did you mix different QCAD versions in the same folder?
Hi Husky,
I trashed the previously installed QCAD-Pro executable before installing 3.26.4.13. Didn't delete old .ini file contextually so couldn't say if it caused a misbehavior of the executable, by the way I deleted it afterwards then repeated the test (create a new drawing, save without closing it, check reopen last file preference, quit QCAD and relaunch) with no success. I created a new user account and got the same results.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Restore open files at startup not working

Post by petevick » Wed Nov 24, 2021 9:36 pm

I think the only way forward for you is to totally uninstall Qcad, making sure that the ini file has been removed, then reinstall Qcad.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4942
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Restore open files at startup not working

Post by Husky » Wed Nov 24, 2021 10:03 pm

Relic wrote:
Wed Nov 24, 2021 9:25 pm
Hi Husky,
I trashed the previously installed QCAD-Pro executable before installing 3.26.4.13. Didn't delete old .ini file contextually so couldn't say if it caused a misbehavior of the executable, by the way I deleted it afterwards then repeated the test (create a new drawing, save without closing it, check reopen last file preference, quit QCAD and relaunch) with no success. I created a new user account and got the same results.
I'm not a MAC'ler and I'm running out of options ...

However - please try two things before I quit ... :oops:
1. If you open QCAD and it doesn't load the last opened drawing can you open the drawing manually over Menu/File/Open ... without any error messages?

2. Open QCAD, Un-tick "Restore open files" in Application Preferences. close QCAD.
Open QCAD again, Tick "Restore open files", close QCAD.
Open QCAD, load a drawing and test what happens after closing / re-opening QCAD. You already know the drill ...
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Post Reply

Return to “QCAD Troubleshooting and Problems”