DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

CPU runaway

Started by Dr PR, January 24, 2014, 03:46:52 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

Win 7 Pro 64
i7-3930 @3.2 GHz

This is mainly for DT.

I just encountered a strange problem. I was working on a 199 Mbyte file (large). I had just pasted in about 20 Mbytes from another file, and then saved the file.

I dragged to select a large collection of objects and the program slowed to a crawl. At the same time CPU temperature shot up from the normal 35C to 60C! The fans were howling and the liquid cooler control program showed the liquid to be getting hotter and hotter.

I could see new objects being added to the selection, but VERY slowly. Task Manager showed one process (#10) pegged at 100% of CPU time - other processes were active but only at 6-8%. Another process (#9) occasionally showed 60-70% useage. Apparently that core (one of six in the CPU) was getting really hot. There was also some disk drive activity on drive C: (where the program is) and drive D: (where the file is).

I have seen the temperature rise to nearly 40C before when I was editing large images in Photoshop, but DesignCAD has never caused a significant heating problem.

Fortunately, the i7 line of processors from Intel has thermal protection built in - it is almost impossible to fry them. If a core overheats the CPU periodically interrupts the clock, and if that doesn't work it drops the voltage to the core. It all else fails the CPU just shuts down. In this case it ran at 100% and 58-60C for about half an hour before I killed DesignCAD.

****

I tried this several times, with the same results, and terminating DesignCAD with Task Manager. Then I just opened the file without trying to select anything. The CPU stayed at 35C. Then I saved the file - I saw the "Packing Solid IDs" message on the status bar - it took quite a while to finish and then save the file.

I closed the program and restarted DesignCAD. Then I opened the file and repeated the drag selection. This time it is running OK. It still is VERY slow making the selection - it's been running more than half an hour now - but the CPU temperature is just 38C, which is about normal when the CPU is busy. Task 9 is running at about 50% of CPU time and task 10 about 20%. Task Manager says DesignCAD has eight threads running and only 8% total CPU time is being used.

****

It is pretty strange for a core to remain pegged at 100% of CPU time for so long. When the fans started howling I thought the cooler had failed!

Phil
DesignCAD user since 1987

Dempsey

#1
There was obviously something fishy going on with the solid numbers that caused DesignCAD to go in some kind of infinite loop.

If you still have the initial files (and are allowed to share them) then DT/programmers might be able to use it to trace what is going on.

I just did a Phong with transparency on and had 4 threads going for a total CPU of 12%. Never seen DesignCAD using more than 4 threads.
Dempsey

Dr PR

Dempsey,

It would appear to be associated with something that is "corrected" by saving the file and closing DesignCAD. The "Packing Solid IDs" may not have anything to do with it.

Now I have the problem that if I select the objects that were pasted into the original file the program hangs. I let it run an hour and it never finished the selection process. Some of the objects were selected very quickly (2-3 seconds), then  over a 30 minute period most of the rest were selected, but the remaining parts (about 20% of the total) were never selected.

I saved the file immediately after the initial "Paste" so I do not have a file without the problem. I have been working on this file for about two years. I do have an earlier version from DC V22 (I always start a new data file when a new version of DesignCAD comes along just in case there is a non-recoverable bug that the program puts in the files) that has most of the work in it.

I tried opening the file in V22 and it hangs just like V23. I'll keep trying in earlier versions (V19 and V15) to see if I can flush out the problem.

****

This reminds me of the HCF (Halt And Catch Fire) instruction on the Motorola MC6800 (0xDD). It put the processor into an infinite loop cycling through all addresses. This caused heat buildup in the CPU which was reported (rumor?) to cause the silicon to melt. Normally a program would not have this instruction byte, but if the Program Counter became pointed into a block of data it was possible to execute a 0xDD data byte as a program instruction.

I guess it is a good thing it happened on the i7 with it's overheating self protection features. A processor that didn't have these self-preservation features might have been destroyed.

NOTE: I am not overclocking. All BIOS settings are the Intel defaults.

****

I have seen up to 11 of the 12 processes (two per core) running on my i7-3930 and I think DesignCAD was running at the time. This was right after I built the Win 7 machine and I was checking for multi-thread operation.

Phil
DesignCAD user since 1987

JJG

Quote from: Dr PR on January 25, 2014, 01:59:11 AM

I saved the file immediately after the initial "Paste" so I do not have a file without the problem.
Yes, of course you have one !!! = the .bak-one

I met this kind of selection problems when I went from V18.35  (french) to v21.15 (french) : Selecting some parts (which contained groups with improper solid inside) led to the same symptoms you are describing above.
A corrected v21.2 (french) was provided to me, with whom I am still working.
I thought V23 did not have this kind of problem ...

Dr PR

JJG,

Unfortunately, the backup has also changed. I saved once after the paste (the original was changed), and after opening the file again (main file and backup were changed). So I do not have a copy of the original file before the paste.

I suspect I have saved the file several times in all. The current backup file does cause one core to run at about 85-90% and the CPU heats up to 56C. The cooler handles this easily with only a slight speed up of the fans. It doesn't peg the core at 100% and cause the CPU to heat to 60C with all the fans screaming like the original file after the Paste did.

I am going to try to recreate that file so it can be used for testing, but I am not optimistic. The earlier version was saved in October 2012, and I have made several modifications to it since them. I probably can't recreate the exact sequence of operations.

Phil
DesignCAD user since 1987

SciGraphics

Phil:
  A little humor is needed here.

  The Lucas Co. in Great Britain is famous for failure of it's electrical auto parts. It's said that a Lucas switch only has two positions:

  Off and Smoke.

Jim A.

Bob P

Or the other classic:

Why do the British drink warm beer?

Lucas refrigerators.

I deal with "Lucas" stuff all the time.  What is even worse is that many OEM switches are no longer made.  The repros are typically done in the Far East, and their quality is even worse.  In one batch of simple toggle switches, 20% were junk out of the box.  >:(

magic

Hi all,

Here is another Lucas reference http://forum.designcad.com/index.php?topic=5364.0, if you please.
It's a kind of magic!




Dr PR

Wasn't Lucas known as the "Lord of Darkness?"

Phil
DesignCAD user since 1987

Dr PR

Well,

Whatever caused the problem I seem to have cured it.

I selected each part of the last pasted items one by one, or a few at a time, and deleted them. Each selection took only a second or two, instead of 30+ minutes that the whole collection took.

Then I repeated the paste operation - but this time I grouped the objects to be cut/pasted in the smaller file where the pasted objects were created, and moved them to a layer that was unused in the larger file.

After the paste the selection of the pasted groups was nearly instantaneous, and I am seeing no unusual delays in the resulting composite file (nothing unusual for a 200 Mbyte file, that is). Some things take quite a while in a large file like that. It took 22 minutes to render it using Gouraud shading with graphics acceleration enabled. Rotating the entire file view is pretty slow and jerky, but useable.

During all of this the CPU occasionally reached 50C, but the temperature dropped back to about 38C quickly without the fans reving up.

****

I may delete the pasted items again and repeat the original paste to see if I can replicate the overheating problem. It would be good to have a test file for this problem.

Phil
DesignCAD user since 1987

Dr PR

The thermal runaway that I reported here has nothing to do with DesignCAD. It has happened with other programs active, and even after boot-up with no programs other than Windows 7 running.

See this thread:

http://forum.designcad.com/index.php?topic=4771.30

Phil
DesignCAD user since 1987