← All bug reports

FS#2179The use of 'Edit Block In-place' corrupts other open files to restore on boot in debugger mode.

Type
Bug
Status
Closed
Resolution
Out of Scope
Category
QCAD (main)
Severity
High
Priority
Low
Reported version
Development
Operating system
Windows 7
Reported
2021-01-15 by CVH
Closed
2021-01-15 by andrew

QCAD Professional
Win7 winInstaller 32bit
Version: 3.25.2.7 (3.25.2.7)
Internet: QCAD.org
Build Date: Dec 16 2020
Revision: e06f230
Qt Version: 5.13.2
Architecture: i386
Compiler: Unknown

Include file was open when using 'Edit Block In-place (BB)' in an other drawing.
Happend on 5/1/2021 just before 2:56 am
https://qcad.org/rsforum/viewtopic.php?&t=7945#p31055

'Edit Block In-place (BB)' is never used in this drawing.
There was never a Block in this file.
I might have switched focus.

Re-installed QCAD a dozen times meanwhile.
Wiped all what remained of QCAD twice.
Cleaned up the windows registry twice.
Lastly left out all kinds of my custom scripts.
Simply a bare install with the msi file.

How to replicate:
- Start QCAD in normal mode
- Load included file
- Set App.Prefs .. Startup .. Restore open files
- Close QCAD
- Start QCAD in debugger mode
(-rescan -enable-script-debugger -always-load-scripts)

Boot fails.

Every successive trial.

When booting in normal mode I see the BB options toolbar blink shortly.

3 Screengrabs in DebuggerModeError.zip in the same topic.
The blink I can't catch.

I can Boot with no file to retore on open in debugger mode and load the file.
I have several of those files, all were open that day at 2:56 am

CVH

Comments (1)

CVH 2021-01-15

That doesn't explain why this started on 5/1/2021 just before 2:56 am
and only for those files that were open at that time.

That doesn't explain why I see the Edit In-place option toolbar blink short with only those files in a restore on normal boot.

So, the advice is to redo those 17 files over new !?
Or all the files since 5/1/2021 ?
Without a single old one open !
I will be busy for a while.
I know, there is no guarantee.
CVH

Closure comment

Thanks. There are several problems in debugger mode caused by events not being triggered in the same order as they are sent. This is a known problem / effect of the Qt script debugger that cannot / will not be fixed on the the QCAD level.