double click drawing "A" and drawing "X" opens

Started by perry59, February 18, 2025, 10:12:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

perry59

Ok, visio has been doing something very weird lately. I often double click drawing files to open them for editing.  Almost every day now when I open a drawing, let's say "drawing A" a completely different drawing (drawing x) opens! In one case it opened a months old version of "drawing x" that does not even exist anymore! Where the hell did it get that !?! It will say "drawing A" in the title bar but the graphics will be that of "drawing x". (It will also say "recovered" in the title bar, but there is nothing wrong with the drawing)
What makes this especially bad is that my custom addin uses a backend access database which tracks a lot of things, one of those being any pages that belong to the current drawing so what happens is that when I open "drawing A" it adds all the page names of "drawing x" to drawing A's sheet table and I have to manually open the database to delete them. It is not just with "drawing A", it will happen with other drawings and it is not consistent, I can open "drawing A" later on and it will be just fine.
Needless to say, this is VERY bad behavior, has anything like this happened to anyone else? Any hints what could be going on?
what, me worry?

wapperdude

Quotevisio has been doing something very weird lately.

Has there been a recent change to your system that might correspond to when this began to happen?  Say a Windows update.  New add-on to Visio?

Does this happen with all files that you double click to launch?

Have you tried saving a new, simple file, and then try to dbl click launch it?  How about several new simple files in same directory?
Visio 2019 Pro

Nikolay

#2
This looks like auto-recovery issue. Do not experience that myself.
Could be an add-in crashing when closing Visio. Have you tried to start it from Visual Studio?
Also, I would check the system event log.

You could also try turning off the auto-recovery as a simple solution (Save => Auto-Recovery)

If the add-in crashes on unload, you could try something like this (in ThisAddIn_Shutdown):
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
GC.WaitForPendingFinalizers();

Croc

"You could also try turning off the auto-recovery..."
I would recommend additionally cleaning out the folder where Visio stores autosave files.
%userprofile%\Local Settings\Application Data\Microsoft\Visio

Yacine

#4
Same problem here.
This is a so dangerous bug.
If you inadvertently save that document, you overwrite the file you actually wanted to open.

I have this issue for years.
No addins installed.
Happens sporadically, but more often after having edited several docs in parallele.
Yacine

perry59

Quote from: Nikolay on February 19, 2025, 12:03:46 AMThis looks like auto-recovery issue. Do not experience that myself.
Could be an add-in crashing when closing Visio. Have you tried to start it from Visual Studio?
Also, I would check the system event log.

You could also try turning off the auto-recovery as a simple solution (Save => Auto-Recovery)

If the add-in crashes on unload, you could try something like this (in ThisAddIn_Shutdown):
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
GC.WaitForPendingFinalizers();

I don't think my addin is crashing when exiting visio, nothing seems out of the ordinary. The weirdness happens during opening files
what, me worry?

perry59

Quote from: Croc on February 19, 2025, 05:49:18 AM"You could also try turning off the auto-recovery..."
I would recommend additionally cleaning out the folder where Visio stores autosave files.
%userprofile%\Local Settings\Application Data\Microsoft\Visio
I'm  going to try this and see what happens. Wow, there was a ton of files in the auto-save folder!
what, me worry?

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 270 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1156KB.
Tokens: post-login.
Cache hits: 13: 0.00153s for 26,588 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]