Studio 5 Resets PC ?!

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

Three times now, in one afternoon, AVR Studio has seen the PC do a Hard reset, and the common element seems to be me typing in the Studio Editor.
This is not bulk typing, but comments from scope runs, so a few keystrokes is all.

This is not a 'not responding', or even a GPF, it is
an instant black screen & reboot. (yikes!)

Has anyone else seen this ?
Is it Studio 5, or something else ?

Connected Board is an XMega Explained, @ 32MHz, - I guess that is inside any USB limits ? ( & I've miss-probed before, with a 22R resistor, and nothing happened apart from a warm resistor... )

So I'm tending to avoid the editor, and using an external one, and Build and Download seem to be OK.

I've run a virus scan and clean, and save everything at short intervals..., but I think I'll pause AVR Studio use, as I've got the info from the scope I was mostly after...

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

Why dont you use AVR Studio 4 and wait until they get all the bugs out of AS5 before you start to rely upon it?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

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

larryvc wrote:
Why dont you use AVR Studio 4 and wait until they get all the bugs out of AS5 before you start to rely upon it?

That may yet be what I do. It took ages and GBs to install this monster, so I'm reluctant to discard it.

It's just happened again - I used an external editor, and Compiled fine from Studio, then with fingers crossed, I typed maybe 4 letters in Studio 5, before BOOM!.

Studio was running for maybe 60-90mins, but I was avoiding Editing ....
File is only a small test one, maybe 12KB.

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

What verision of Windows?

Back in the W9x days one could get an instant re-boot with a simple jump. I did not think this was possible from user space in NT/W2K/XP/Vista/W7. Sounds like a driver problem?

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

JohanEkdahl wrote:
What verision of Windows?

Back in the W9x days one could get an instant re-boot with a simple jump. I did not think this was possible from user space in NT/W2K/XP/Vista/W7. Sounds like a driver problem?

Windows XP. Runs other tool-chains fine.

Driver ? What special drivers can a Text Editor need ?
The CAD systems I have work fine, and they are more driver fussy.

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

Text editor? You said AVR Studio..

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

JohanEkdahl wrote:
Text editor? You said AVR Studio..

Correct : It is the Text editor part of AvrStudio that seems to be the trigger.
Sometimes, it only takes a few characters typed, and BOOM.

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

I've downloaded Studio4, and WinAVR-20100110, and done a quick pass thru the \examples, using PN and Studio.

All work fine (once I have the right targets), except stdiodemo seems to (rightly) complain of
lcd.c:86: error: too few arguments to function 'hd44780_wait_ready'

Looks significantly faster than Studio5, and zero crashes... - now I need to port my XMega project...

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

In another thread I think it was established that (for whatever reason) AS5 is doing direct graphics access using your machines video drivers. It could be a fault in those. As Johan says the protectioin modern Windows (like Linux) means that application space code cannot cause fatal errors - but kernel driver code can - so it's got to be an interaction between AS5 and SOME driver on your machine. The fact that it clearly doesn't happen for everyone suggests some localised driver on your machine and video drivers are often the most likely culprit. Try doing an upgrade check for your video drivers and see if your video card manufacturer has new drivers available (this is almost always true!).

Quote:

All work fine (once I have the right targets), except stdiodemo seems to (rightly) complain of
lcd.c:86: error: too few arguments to function 'hd44780_wait_ready'

I've seen that - it seems that a file has been updated without the accompanying ones also being updated. Change all calls to hd44780_wait_ready() to be hd44780_wait_ready(false).

Cliff

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

Since AS5 a highy integrated IDE I can imagine, just as an example, that it does all kinds of funku stuff when you at least expect it - e g suddenly talking to a driver for some currently selected ICE. Modern apps can be full of such stuff just because it is the easiest way for the programers to solve stuff - it apparently seems to work but in some specific circumstance (yours) it dives.

On one of my laptops, whenever I type "CD" quickly the speaker goes BEEP! For no apparent reason.. I always get reminded when I post in a LDC thead.. :-) Not related to any AVR Studio, but an example of how weird things can be. Perhaps BIOS-related, and maybe nly for a Swedish keyboard. Anyway, weird..

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

Quote:

whenever I type "CD" quickly the speaker goes BEEP!

The key matrix is not fully decoded so [Shift]+'C'+'D' actually generates an apparent Ctrl-G perhaps?

I have endless trouble with [Shift]+'R'+'T' on most PS/2 keyboards in fact. That sequence occurs a lot (consider PORTB) and at the speed I type the "RT" often meld into one another and produce either nothing or, sometimes, a different character.

I think all PC keyboards are subject to this in some way - holding down 3 keys at once produces the 4th one in that square of the matrix.

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

Quote:

In another thread I think it was established that (for whatever reason) AS5 is doing direct graphics access using your machines video drivers.

AVRStudio is built on top of Visual Studio 10, which itself uses the WPF framework for UI display. WPF is hardware accelerated, thus graphics card driver issues can cause artifacts in WPF applications that don't use the normal/legacy GDI subsystem.

OP: Try turning off the acceleration - untick the options in the Tools->Options window for graphics acceleration and restart Studio.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

abcminiuser wrote:

OP: Try turning off the acceleration - untick the options in the Tools->Options window for graphics acceleration and restart Studio.

Thanks - took me a while to find that, as it was greyed out, so I unticked Tools.Options,Environment.[Automatically adjust..] and restarted, and it now says "Visual studio is using software rendering"

After a short test, it seems more stable
[OOPs, nope... see below].

Microsoft Visual C++ runs fine. ALL the other Text Editor I have, work just fine without doing this.

I would say that defaulting ON Graphics Acceleration in a tool chain, is a rather strange decision.

Given how brutal the failure mode of this 'intelligence' is, it should default OFF, and brave users can try turning it on.

Cool : AvrFreaks remembered this incomplete post, as the PC rebooted again, twice...

After the change, it managed maybe 30 chars, so I thought it was ok, then I Compiled, moved a few lines, and typed
"while (i" - and BOOM.

Rebooted, and confirmed still has SW rendering, and typed again, and BOOM.

So the conclusion is NO, that has NOT helped.

I think I'll follow the the advice above, and shelve this 'virus' until it is more stable :(

{ Slow.Bloated.Unreliable : Yes, you can have all three. }

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

Who-me wrote:
I think I'll follow the the advice above, and shelve this 'virus' until it is more stable :(

{ Slow.Bloated.Unreliable : Yes, you can have all three. }

:) Eventually, it will be, all that it can be, in the...

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

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

Given the strategic point at which it broke, my next suspicion would be the Visual Assist X plugin. Try starting AVRStudio, then disable VAssistX from the VAssistX menu.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

abcminiuser wrote:
Given the strategic point at which it broke, my next suspicion would be the Visual Assist X plugin. Try starting AVRStudio, then disable VAssistX from the VAssistX menu.

You might be onto something ?

I toggled VAssistX off, and I was able to edit 20+ lines and save / build without any boom....

A case of Too much fluff ?

Meanwhile, I managed to port the AS5 directory-spagetti-soup project, onto AS4, and set up Pgm.

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

Do you have any crash dumps generated by Windows at the time of the reset in the C:\Windows\Minidump folder? If yes, can you attach one to help us take a deeper look?

As clawson pointed out, an user mode application cannot make the machine crash (unless AVR Studio exposed an OS vulnerability :)), so I suspect it's either a hardware or driver issue. Looking at the crash dump (if one was generated) will at least show the error code and the faulting module.

Regards

Senthil

 

blog | website

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

saaadhu wrote:
If yes, can you attach one to help us take a deeper look?

Yes, sent via PM.

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

I checked out the dumps, and all of them indicate that the crash occurred because of a divide by zero error in SiSGRV.dll, which happens to be Silicon Integrated Systems Corporation's video driver.

The process callstack (bottom) shows the crash occurred when Windows tried to service win32k!NtGdiGradientFill - which is a GDI function (not hardware accelerated).

Couldn't get any further information from the crash dumps. Short of upgrading the video driver (or using the standard Microsoft one), I'm out of ideas.

f0cbce34 80622f03 0000007f bf9dedab 00000000 nt!KeBugCheck+0x14
f0cbce8c 804df3d0 f0cbce98 f0cbcf38 bf9dedab nt!Ki386CheckDivideByZeroTrap+0x41
f0cbce8c bf9dedab f0cbce98 f0cbcf38 bf9dedab nt!KiTrap00+0x83
Unable to load image SiSGRV.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for SiSGRV.dll
*** ERROR: Module load completed but symbols could not be loaded for SiSGRV.dll
WARNING: Stack unwind information not available. Following frames may be wrong.
f0cbcf38 bf9df069 e1d88970 f0cbcf64 e19ea7e8 SiSGRV+0x9dab
f0cbd294 bf8b3fae 00000000 f0cbd32c 00000000 SiSGRV+0xa069
f0cbd2f0 bf87a6bd e3bbfbd8 f0cbd32c 00000000 win32k!WatchdogDrvGradientFill+0x55
f0cbd404 bf855ba3 e3b9e9c8 e19ea7e8 00000006 win32k!GreGradientFill+0x456
f0cbd454 804de7ec 440109d8 14f2c368 00000006 win32k!NtGdiGradientFill+0x18a
f0cbd454 7c90e4f4 440109d8 14f2c368 00000006 nt!KiFastCallEntry+0xf8
00123f84 00000000 00000000 00000000 00000000 0x7c90e4f4

Regards

Senthil

 

blog | website

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

me wrote:
video drivers are often the most likely culprit

Quote:

which happens to be Silicon Integrated Systems Corporation's video driver.

He shoots... he scores! :-) :-)

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

I'd probably swap to the Microsoft one, if the vendor one hasn't been updated for a while. I had a similar issue with an integrated Radeon laptop GPU a while back, where the MS one was more stable than the vendor supplied one.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

abcminiuser wrote:
I'd probably swap to the Microsoft one, if the vendor one hasn't been updated for a while. I had a similar issue with an integrated Radeon laptop GPU a while back, where the MS one was more stable than the vendor supplied one.

Revisiting this, How exactly do I swap for a Microsoft one ? Google gives sea of dodgy sounding 'free driver' sites, but not much info on Microsoft driver replacements, for cards.
Device manager asks to connect, then says 'nothing available' - but I'm not sure it really looked....

I think this PC's SiS graphics is a Generic motherboard model, and I want to be careful I don't break it more, trying to fix a side issue.

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

Quote:

Revisiting this, How exactly do I swap for a Microsoft one ?

Generally, you just completely uninstall the device (selecting the box when you remove it from the device manager to also remove any installed drivers) and reboot. Hopefully that should then force Windows to install a generic driver which will suit it -- worst comes to worst, you'll be stuck back at VGA resolution (which all cards support through a generic command set) until you re-install the vendor drivers.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

abcminiuser wrote:

Generally, you just completely uninstall the device (selecting the box when you remove it from the device manager to also remove any installed drivers) and reboot.

Did that with only partial success.
I'm not sure windows ever really fully removed it, even after 3 passes, but it did start in VGA mode and mess my icons placements....

So I found the newest driver I could, and that did help a 3D viewer which used to stall before, (but it was not something I ever missed...)

- but AS5, still goes BOOM if I have the VAssistX ON.
- and there, I think I can type many words in a comment area, but only a few chars in a CODE highlight area, before.. boom.

AS5 now wins the 'most driver paranoid package' on my PC, and this from a Dressed up Text Editor !?!

Do I thank Atmel, or Microsoft ?

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

Quote:

Do I thank Atmel, or Microsoft ?

Install VS2010 and you can tell.

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

clawson wrote:
Quote:

Do I thank Atmel, or Microsoft ?

Install VS2010 and you can tell.

:lol: - I am nowhere near brave enough to do that right now...

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

Here's what I would try... I've seen this behavior in Windows 7 a couple times. First do a clean boot, and don't start ANYTHING. Uninstall AVR Studio 5 completely. Download AVR Studio 5 again and place it in a safe place on your drive. Do another Reboot, and don't start ANYTHING. Disable your virus scanner (important), then re-install AVR Studio 5.

See if this sequence clears things up- you might be surprised.