Atmel.VsIde.AvrStudio.Utils.MemoryPressureReliever exception

Go To Last Post
28 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did a clean install of Atmel Studio 7.0.790 today, but whenever I try to do basically anything, I get an exception related to "Atmel.VsIde.AvrStudio.Utils.MemoryPressureReliever." Attempting to create a new blank C application is one such activity that triggers the exception:

Timestamp:	2016-03-27 01:35:19.970
Severity:		ERROR
ComponentId:	13000
StatusCode:	0

An error occurred in the AVRGCC Project Wizard. The wizard execution will be cancelled. The type initializer for 'Atmel.VsIde.AvrStudio.Utils.MemoryPressureReliever' threw an exception.

System.NullReferenceException: 
MethodName: .cctor

Oddly, creating an ASF project does *not* trigger the exception, but when I try to view any of the ASF components, the exception is triggered. So does going to Help > About Atmel Studio (which I attempted to do to get the actual build number of my installed version of Atmel Studio)

 

This is on Windows 10, build 14291. I have Visual Studio 2015 installed -- not sure if there's any weird conflicts going on there.

 

I've tried restarting the computer, and also doing a "repair" install. Any ideas?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"MemoryPressureReliever"

 

Is your OS running low on memory?

 

Other applications running consuming a lot of memory?

 

And as always: Do you run an antivirus-program, and have you (while taking wise precautions) tried to turn it off?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That was my first thought, too, but I don't have any anti-virus software running, and according to Task Manager, I have 10.2 GB of RAM free when I'm running Atmel Studio. 

 

The error itself has to do with a static initialization of a type in .NET, probably with a constructor that takes a reference to another class (since we're getting a null reference exception on the ctor method). But there's really nothing else I can glam from the error itself. I'm suspecting an incorrect assembly version of a library that it's trying to load (or something screwy like that), but I don't know where to even begin diagnosing that problem.

 

EDIT: I attached the VS Debugger to Atmel Studio to see if I could get any additional info. It's definitely a null reference in the MemoryPressureReliever constructor, as I'm getting an "Object reference not set to an instance of an object." Unfortunately, I'm not getting any additional exceptions that seem to relate to this. 

Last Edited: Sun. Mar 27, 2016 - 05:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmh....

 

public MemoryPressureReliever()
{
    // Don't relieve pressure if we've already done it.
    if (!outerMostInvocation)
        return;

    outerMostInvocation = false;

    removeMemoryPressureMethodInfo.Invoke(null, new object[] { bytesToRelieve });
    didReduceMemoryPressure = true;
}

So, only null here could be 

private static readonly MethodInfo removeMemoryPressureMethodInfo =
            typeof(BitmapImage).Assembly.GetType("MS.Internal.MemoryPressure").GetMethod("Remove", BindingFlags.NonPublic | BindingFlags.Static);

which sort of points that you probably want to do a repair of you .NET runtime (or at least dig out which version you have...)

 

 

 Could you create a memory dump at the exception and send it to me?

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's a dump file:

https://unl.box.com/s/ollq0fwdsmkq1wl5nepoxqaautvrg15v

 

By the way, this exact same problem is also present on Atmel Studio 7.0.634 running on a different machine with Windows 10 build 14291.

 

What are the chances of .NET Runtime installation issues on two different computers?

 

EDIT: Just upgraded to Win10 14295. Still no dice.

Last Edited: Mon. Mar 28, 2016 - 08:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What are the chances of .NET Runtime installation issues on two different computers?

Close to none... 

 

Looking at the dump I see a sort of funny view of the class... Could you try to swap out the Utilities.dll in <studioinstalldir>\Extensions\Application with the attached one? I'm just guarding for some impossible nulls now...

Attachment(s): 

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same issue with Atmel Studio 7.0.790 on Windows 10 Insider Preview 14295 with .NET Framework v4.6.1 (Build 394747). Using your new Utilities.dll the issue seems to be gone for me.

 

Btw., I also have Visual Studio 2015 Enterprise with Update 2 RC installed.

Last Edited: Tue. Mar 29, 2016 - 05:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup -- I, too, can confirm that using the attached Utilities.dll file eliminates the exception. I haven't done thorough testing, but things seem to be working fine, now.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Phew... I'll merge the fix for the next studio release then :) 

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

Phew... I'll merge the fix for the next studio release then :) 

I also had this problem with Insider version 14332.  Utilities.dll solved it for me as well.

 

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The August 2nd, 2016 Windows 10 "Anniversary" update caused the GCC Project Options and Configuration menu for my projects to stop working. Several of the tabs (Build, Toolchain, Device, etc.) displayed an error related to "Atmel.VsIde.AvrStudio.Utils.MemoryPressureReliever", which led me to this post. The Utilities DLL posted above fixed it; Thank you.

WHoooo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR 스튜디오 설치된 폴더 \Extensions\Application 여기에

위 첨부파일을 덮어쓰기 하면 위 문제가 해결됨.

GOOD

 

For the benefit of anyone who doesn't speak Korean, Google translate says:

 

AVR Studio installation folder \ Extensions \ Application Here
When writing the above attachments are covering up the problem resolved.

Last Edited: Mon. Aug 15, 2016 - 11:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was having the same problem, but the attached .dll file seems to be working just fine.  Thank you!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same problem today, and the DLL above fixed it. Here is my version info if it helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

W10 has just been updated, and I just had the same problem.

The file Utilities.zip and its dll has been resolved.
Thank you a lot !

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do I apply this dll file?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, as meolsen say, you have to swap out the Utilities.dll in <studioinstalldir>\Extensions\Application path.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I Just got hit by this exception after a Windows or AS update. Not a very skillful Windows user so I'm a bit stumped about applying Utilities.dll.

 

My installation appears to be C:\Program Files (x86)\Atmel\Studio\7.0\ which contains AtmelStudio version 7.0.0.3202 

 

There is an Extensions folder in this directory. Said folder contains Application, Atmel, Clarius, Percepio, WholeTomato, and Unused (a PKGDEF file).

 

    Applications folder contains Utilities.dll

    Atmel folder contains a bunch of other folders.

    Clarius folder contains a bunch of other folders and files

    Percipio folder contains \PercipioTrace\13.601\Utilities.dll

    WholeTomato contains a bunch of other folders and files

 

Is it the one in Applications that gets swapped out?

 

<EDIT> While waiting for someone to respond, I changed the exsting file in Applications to "xUtilities.dll" - Windows complained, of course. This gives me a fall back if the new one does not work. Then moved in the one provided by Morten. Works fine, though it takes bloody forever to create a new project. But it works, so should not complain too much.  The old file will be moved to an archive folder in Applications. Just in case. </EDIT>

 

Thanks

Jim

 

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

Last Edited: Fri. Oct 7, 2016 - 01:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just had the same issue after Windows 10 update. Here is the path to my install for reference.

C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you guys very much. I had the same problem as stated by original posting and replacing the .dll file solved the problem. yes

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

+1 here. 

 

Is there any reason why new Win10 update crashes AS?

my electronics stuff: www.helentronica.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had exactly the same issue, and the issue was solved by replacing the dll file. Thank you much!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Awesome work!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yay it worked for me too. I was supposed to uninstall Atmel studio since I saw this post and now it works.

Thank you ;)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for the fix.

I work on Win 7. I haven't playing with Atmel Studio for a couple of weeks and was surprised by this MemoryPressueReliever exception, as it never happened before (I have created over 100 projects on various chips).

It was some true luck googling up this forum within seconds... 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

We are using 7.0.1417 at the University of Southampton, we are getting this error on Win10 Creator (1703) but not in Win10 1511, I have tried the dll attached but it is not making any difference, can anyone confirm in our version of Atmel Studio is compatible with Win10 1703?? Or if there is a fix for the error for this version?

Thanks in advance.

Ta
Bulla80

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I'm running 7.0.594 on Windows 7.

 

All was well until our IT department pushed out some .NET updates last night.  Then, I was getting this error.

 

Replaced my Utilities.dll with the one posted by meolsen in post #6 above and I'm back up and running!

 

Thanks so much!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Had the same problem but your attached utilities.dll and now it's working. Thanks

 

Eugene