Status Line Crashes
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Status Line Crashes
I just found out that if you write to the status line at a high rate it will cause trueSpace to crash. It took a while to see it consistently because it takes some time to get to the unstable crash state. It happened for me while reading a text file that has more than 120,000 lines in it. I wrote the current line number to the status and it would randomly crash tS after about 30,000 lines, but I also got lucky sometimes and it crashed near the 100,000 line mark so it was a pretty wide range.
I reduced the number of updates to the status line and the mystery crashes have stopped. I need to do one more test with the file to 100% confirm it.
Edit:
confirmed, I was able to read the entire 120,000 line file without any crashes by reducing the number and frequency of status line updates.
I reduced the number of updates to the status line and the mystery crashes have stopped. I need to do one more test with the file to 100% confirm it.
Edit:
confirmed, I was able to read the entire 120,000 line file without any crashes by reducing the number and frequency of status line updates.
Re: Status Line Crashes
How do you write to the status line at a high rate?
How do you reduce the number and frequency of status line updates?
How do you reduce the number and frequency of status line updates?
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Status Line Crashes
Reading the file line by line and outputting something like "Now on line XXX" in the status. Crash after about 30000 lines.
Reduced by only setting the status for some of the lines of the file instead of all of the lines.
You might be able to see it by just writing to the status via a loop. Something like
Code: Select all
for(i=0;i<100000;i++) {
Node.Value("Status line", "Model") = "Now on line " + i;
}
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Status Line Crashes
Here's a sample.
Jump inside to run and set the "dontCrash" checkbox
dontCrash off and it crashes for me during the first or second run, it's random
dontCrash on it counts all 100000 but only updates the status oncce every 1000 times and hasn't crashed yet. Maybe it will crash if run a bunch of times.
Jump inside to run and set the "dontCrash" checkbox
dontCrash off and it crashes for me during the first or second run, it's random
dontCrash on it counts all 100000 but only updates the status oncce every 1000 times and hasn't crashed yet. Maybe it will crash if run a bunch of times.
- Attachments
-
- Crash Demo.RsObj
- (28.45 KiB) Downloaded 108 times
Re: Status Line Crashes
No crashes here
Defiantly put a strain on the UI
IE: Panel refresh
I even upped the Iteration count to 100000000, used physics, panel Editing, and tried using your plugin status line
// Node.Value("Status Line", "Model") = "Now on line " + current;
util.SetStatusMessage("Now on line " + current, 0)
Defiantly put a strain on the UI
IE: Panel refresh
I even upped the Iteration count to 100000000, used physics, panel Editing, and tried using your plugin status line
// Node.Value("Status Line", "Model") = "Now on line " + current;
util.SetStatusMessage("Now on line " + current, 0)
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Status Line Crashes
If you can get 100000000 with dontCrash unchecked your machine must be much more stable than mine.trueBlue wrote: ↑30 Oct 2021, 21:41 No crashes here
Defiantly put a strain on the UI
IE: Panel refresh
I even upped the Iteration count to 100000000, used physics, panel Editing, and tried using your plugin status line
// Node.Value("Status Line", "Model") = "Now on line " + current;
util.SetStatusMessage("Now on line " + current, 0)
Screenshot (20).png
Re: Status Line Crashes
I ran it about five times to 100000000 in one tS761.8 session
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Status Line Crashes
If you have any tips for a more stable trueSpace, I'm all ears. I think you mentioned that you run in compatibility mode? Could that be the reason?
Re: Status Line Crashes
No tips
I do run it in compatibility mode
Suggest running the "Run compatibility troubleshooter" on your shortcut that opens trueSpace
I do run it in compatibility mode
Suggest running the "Run compatibility troubleshooter" on your shortcut that opens trueSpace
- clintonman
- Captain
- Posts: 5428
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Status Line Crashes
I tried running in compatibility mode and the crashes stopped. The actual mode doesn't seem to matter, win8, win7 and vista all have the same effect of making it more stable. On my desktop computer it does show the status line writes happening at about 1/10th the speed, but I don't see any noticeable slowdown anywhere else.
I think I'll be running in compatibility mode from now on.
I think I'll be running in compatibility mode from now on.