Jump to content

[Resolved] Out of Memory Issue on VIPM Desktop (Nov 15, 2022)


Jim Kring

Recommended Posts

Issue

Over the past 24 hours there was a VIPM issue where the client was showing out of memory errors. This has been resolved.

How to Fix

Please try restarting VIPM Desktop and refreshing your package list (the refresh button) a couple times.

If you still have problems, try deleting the “C:\ProgramData\JKI\VIPM\cache” folder and restart VIPM.


Background

The problem was on the vipm.io server — the the repository index file had grown exponentially large due to a character encoding bug that was causing one special character of a certain package name to get duplicated on every package release (and the duplications kept getting duplicated). The repository index file grew to ~64 MB (it was growing in powers of 2... 4, 8, 16, 32, 64) and then caused all the VIPM Desktop clients to have out of memory errors! 😅

Some Lessons Learned

The littlest bug can sometimes cause big problems — like a mosquito when you’re trying to sleep.

Exponential Growth sneaks up on you and then gets out of control very fast.

The out of memory error in VIPM Desktop showed several places in the codebase that could be further optimized as the total number of packages continues to grow.

The LabVIEW Configuration File (INI) VIs don’t handle extremely large files well.

Parallel For Loops allow work to be done on large arrays much faster (operating on elements in parallel), but it also takes more memory. There is a trade off.

We are looking into a build of VIPM in 64-bit LabVIEW to make more memory available, when needed.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.