Visio Guy

Visio Discussions => Visio Bugs (er...Issues) => Topic started by: vojo on March 20, 2022, 07:56:24 PM

Title: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 20, 2022, 07:56:24 PM
So have a bunch of drawings as recently as Febuary.
As of today, when I try to open them visio just crashes and kicks back to desktop

I have tried visio /safe
I have verified I can open the stencils in a new basic drawing.
I can open on web app
I can NOT open the template involved

Any ideas?
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 20, 2022, 08:02:40 PM
Could you post a drawing as an attachment, or email me if you want it private.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 20, 2022, 10:53:27 PM
big file...will send
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 20, 2022, 11:08:30 PM
its an 8MB file, how do I send
(attachment limit is 500K, the I cant figure out how to attach a file, your website wont allow file attachment)
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Visisthebest on March 21, 2022, 02:38:24 PM
Vojo you can create a free upload link via: https://wetransfer.com/

then post it here or send it privately to Paul!
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 21, 2022, 03:41:55 PM
My email address is in my profile.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: wapperdude on March 21, 2022, 03:58:21 PM
A couple years back, Paul helped me recover a couple files. 

As I recall, there had been a critical corruption of a couple of shapes.  Once eliminated, file was fine.  But, I did not have the situation where the file would crash Visio.

Some thoughts...
1) since Feb, have any Window / Office updates been installed?
2) have you tried reinstalling Visio?
3) any other recent install / updates to apps?  Perhaps introduced a corruption?
4) corruption due to where the files are physically stored.
5) have you tried opening file on a different PC?
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 21, 2022, 04:49:11 PM
Actually, email address NOT shown in profile or message....just your handle
if you want to send me a private email with your email address, I will send something point to point to you).

Anyway....
1 yes mandatory updates....the beauty of 365 is that since its a cloud play, you get updates
   Also, since MS has changed the behavior of visio 365 before (layout of home panel changed), they could have changed
   it again.
2 Reinstalling...yes...no difference
3 Well, PyCharm (and a couple Python packages) but I doubt that corrupted drawings....no other new apps.
   (obviously get the preverbal MS security updates...I guess I can try to back them out).
4 I dont think so since I can upload as is to 365 cloud and open successfully up there
   Also, various file converters can open the file as well and present the diagram....those converters seem to crash when
   downloading down to me (drawing as VSDX ==> PDF or Word or PPT).   I am skeptical about trying to Libre office since
   last time I checked (couple of years ago, it could only accept very simple visio drawings).
5 I can try (need to add device to the 365 license and then install latest visio).   
   This will take time, will need get that old laptop set up for this
   
If I can send you 1 file and you can confirm you can open, I believe that will be quicker and more productive
(either the file opens or it crashes for you was well). 

Also,
- I am able to open stencils used to create this drawing....and use them in some new simple diagrams
  (the file is 8MB and probably has about 200 shapes or so).

Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 21, 2022, 05:03:36 PM
but you emailed me from your gmail account!
support@paulherber.co.uk
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: wapperdude on March 21, 2022, 05:58:41 PM
@Vojo:  Sure.  Happy to try.  My email is listed in my profile.  An alternative might be upload to Dropbox (or whatever) and send link to Paul, me, whomever and we can download.  Either way is fine.  Or you can send PM via the forum as 3rd option.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 21, 2022, 07:10:40 PM
Hi Ted, fine here, opens ok. A bit slow but it does get there. I shall time it ... 18 seconds.

Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 22, 2022, 11:02:06 AM
Another thought, have you tried opening the file from within Visio using Open on the ribbon?
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 22, 2022, 06:25:53 PM
Paul:  Thank you very much for helping me out!!!

All:  Yes it appears the last update to visio has some sort of limit on the size of the file it will load (~5mB)
       Whole multipage drawing of ~8MB appears to time out the load (loading fine as of Febuary)
       drawing broken into individual pages (largest is about ~3MB) loads just fine.

       16MB file created in around 2010 using visio 2013, does not load.
       current 8MB loads fine in the viewer

        my current system is
         
        Version 2108 build 14326.20852
        365 plan 2 with desktop
   
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 22, 2022, 07:10:53 PM
Pleased to be able to help, and to find a limitation in the online version.
I crave a constant desktop environment, without "improvements" being pushed on me without my say so.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: wapperdude on March 22, 2022, 07:17:01 PM
Hmmm.  That doesn't seem right. 

Granted, I'm running Visio 2019 Pro, but I have no problem with an 181.7 Mb file, consisting of 170 pages.

Microsoft® Visio® 2019 MSO (Version 2202 Build 16.0.14931.20118) 32-bit
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Paul Herber on March 22, 2022, 07:20:16 PM
Yeah but, that's the desktop version, probably not &^%£ed around with improved as much as the online version.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 22, 2022, 08:41:18 PM
I am running on 64bit windows 10 pro....19043.1503....16GB of memory....476GB of Storage (330GB free).
(nothing changed between Febuary and now RE OS, memory, storage). 

I did try to remove 64bit visio and install 32 bit visio, install failed because I guess 64 bit OS does not like 32 bit apps
(that seemed odd to me...but I decided not to become some sort of windows OS guru).

In plan 2, there is an option to download to desktop / only view in the cloud....I did that because security concerns around possibility of MS looking at work product....and....ability to work offline

I tried opening from within visio...no luck
All drawings that were at most 4MB, opened fine....all drawings 6MB or larger just kick out...so estimated around 5 MB limit

I did try using drawing.io to open...they opened but
1) it blew up 8MB drawing to 48MB drawing
2) drawing IO processes shapes to get visuals...but it does not create detailed shapesheet...just an image shapesheet
3) drawing.io ==> export ==> VSDX really gives a collection of images ...1 per shape

Since no messages when this happens, loading bar never moves...my guess is there is some timeout involved.
(could write a custom "drawing opener" with VBA...but not convinced it would be productive...I would not know how to make a "verbose" open macro that gave any sort of status codes or messages)

Again...thx to paul for help me out.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 23, 2022, 02:53:13 AM
So all, I have to eat my words.

Basically, some of the previous posts questioned my 5MB statement.  So I started to look at error codes.
That got me to refresh the OS
(Generally well thought out tool in the security panel....but BTW says you keep your data...but just blows away your apps that are needed to use your data).

I did the windows 10 refresh.  Lo and behold, after 5 hours of struggling, got most of the apps reinstalled.

So the moment of truth:  I used visio to open that big file...it now opens.

Thx for the education guys ;-)

so going back thru things, the only thing I added in the last month was PyCharm IDE.
not sure this caused the problem but not reinstall.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 23, 2022, 03:55:18 AM
well...it came back....I give up
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: wapperdude on March 23, 2022, 03:00:15 PM
I feel your pain and frustration.  That OS refresh scenario is worse than going to the dentist!  Then, after all of that, to have the problem solved, and then re-appear.  All that time and effort.  Not a process you want to ever do again.

Between the time that it was working and when the problem returned,
   > I presume no other apps were added.
   > was the PC powered on/off one or more times?
   > was Visio the last app installed?
   > can you disable some of the Startup apps that automatic begin when Windows launches?

Hardware related:
    > presumably, you have plenty of RAM
    > the system uses "harddrive" to augment RAM by doing active read/writes for running program
    > might there be regions with bad / damaged bits?

It may be, that you have to uninstall all the apps one more time.  Then run hard drive optimizer to check for bad sectors.  i vaguely recall needing to clean out some "caches" too.   Follow this with reinstall of Office followed by Visio.  Then, do several PC power on cycles to verify everything is working.  Presumably, Visio is working fine at this point.  If not, perhaps one more Windows refresh. 

Also, are your app data files/documents backed up in separate location?  It maybe there is corruption or virus in one of them???  Just asking to cover all possible bases.

So, in the subsequent reinstalling of apps, just do one at a time.  Each time followed by multiple power on/off cycles and verification of Visio.  Hopefully, this traps the offending step.  It will probably extend that 5 hours. 

I merely offer the above as a possible, incremental methodology. 
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 23, 2022, 06:03:19 PM
Appreciate the words of encouragement!!

I kept at and I think I am on to something.  So in essence, after taking 5 hours to rebuild my system last night, I was pretty discouraged.   Slept some (still tired).  So in between meetings, tried a few things.   Finally, I said "what about DRAM allocation?" So went to system settings...notice the page cache size was a min = 1GB and max = 3GB.   Figured lets just
take a shot in the dark   min = 4GB  max = 8GB.

Guess what:  I have successfully opened the file 10 times with no problem!!!!

Lets hope it continues to work....but at least if some windows service changes it so that visio no longer open large files, I
know where something that changes visio behavior is.

Not declaring victory yet...but keeping finger crossed. 
(surprised windows does not adjust...something like "if cache is 80% filled, maybe should grow cache by 1.2X on next boot"
or "if RAM is X, then allocation 0.5X to cache")
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: wapperdude on March 23, 2022, 09:22:06 PM
Very cool!   Hopefully that is the solution!!! 😀😀😀
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Surrogate on March 28, 2022, 06:19:31 PM
Today my colleague encountered such a problem!
Lenovo laptop, the document contains Cisco stencils etc.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 28, 2022, 06:56:12 PM
my fix still works

control panel ==> system & maintenance ==>system ==>advanced system settings ==> performance options ==>advanced settings ==>Virtual memory ==> custom cache size.


Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Surrogate on March 28, 2022, 09:03:25 PM
Symptoms at my side
Today I also encountered this situation: when trying to open one of the documents, Visio closed at some point during the opening of the file.
Attempting to open any other file also causes the application to close. This is because the previous session of the Visio application was not closed correctly.
Visio tries to open the last file opened, after which the application closes again abnormally. And everything goes in a circle :wall:
How to break this vicious circle ?
Make the problem file inaccessible:
Opening regular documents
I was lucky after I made the problem file inaccessible other documents started to open :mrgreen:
But my colleague was not so lucky, on forums there is an advice - to disable optimization of extended metafile.
File -> Options -> Advanced -> Display -> Disable advanced metafile optimization.
Putting a checkmark in this item did not help. We did the same thing by adding a parameter in the Windows registry.
\HKEY_CURRENT_USER/SOFTWARE\Microsoft\Office\16.0\Visio\Application\
Key Name : DisableEMFOptimizations
Value : 1
How to fix problem file
The mentioning of EMF optimization gave me an idea how to fix the problem file:
Opened the problem vsdx file with the IZArc archiver (https://www.izarc.org/)
Opened the subfolder "media" and there was an emf-file about 20MB !

After deleting it, vsdx document became possible to open!
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 28, 2022, 11:09:24 PM
FWIW, I have a media directory as well...about 17MB...I can still open 8MB visio drawings with the cache fix
Not saying your fix is wrong...more saying I dont think my problem is same as yours.
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Surrogate on March 30, 2022, 11:10:33 AM
Quote from: vojo on March 28, 2022, 06:56:12 PMcontrol panel ==> system & maintenance ==>system ==>advanced system settings ==> performance options ==>advanced settings ==>Virtual memory ==> custom cache size.
Today i get new file from my boss.
I set Maximum paging file size to 8000 and reload notebook. After these actions, the file still would not open
I open it in IZArc application (https://www.izarc.org/).

Еhis time the problem was with two Visio files in the folder embeddings. After deleting them the document started to open !
Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: vojo on March 30, 2022, 02:31:22 PM
my drawing in question was 8 MB in size.   What is yours?
My page cache settings was min=4000 (4GB)  Max = 8000 (8GB).....max is roughly half the DRAM I have in the system.
all I can say is you may want to try to up the max number to say 12000 and see.

Since MS community has, as usual, no clue, I wouldnt expect a solution from MS any time soon
(definitely, one group of programmers who deserve a refund from their respective alma maters   >:(  )

Title: Re: Visio no longer opens drawings ==>crashes with no msgs
Post by: Surrogate on March 30, 2022, 02:41:03 PM
Quote from: Surrogate on March 30, 2022, 11:10:33 AM
I set Maximum paging file size to 8000 and reload notebook. After these actions, the file still would not open
I overlooked in the option Disable advanced metafile optimization is not checked again.
My DRAM is 8Gb...