Increased stability Torque3D: unit-tests running without a crash. #594
Conversation
|
I will give this a test tonight! Thanks for the clean up. |
|
So the unit tests run fine (706,000 sub-tests??) - there are expected to be some failures at this point, right? - but when I close the engine I get a crash in EDIT: Just remembered I made some changes to the script template I was testing with. Will re-run with just Full. EDIT: Happens with stock Full template, Debug build. The line that causes the crash is this:
|
|
It seems that there is a problem during global ThreadPool destuctor. Fixed using a local ThreadPool for the test. I create an issue #599 to investigate the problem later. |
|
Okay, I merged this into the latest |
I will try to reproduce the problem.
I'm working on solve this. |
|
Not convinced I'll be able to reproduce the Journal break for you, but I'll give it a go. It hung up in a couple of different places in the Windows platform code. |
Fix crash on exit T3D when build with CMake. #628
I'll check tomorrow. |
|
I have merged with development branch + #628 and i get a crash when execute the unit tests (after test are finished or at app exit).
So far I could not find the cause ... I have to dedicate more time. |
…the console.log after ran unitTest_runTests( "", true ). @signmotion
| @@ -52,5 +52,7 @@ CreateUnitTest(TestingProcess, "Journal/Process") | |||
| for(S32 i=0; i<30; i++) | |||
| test(Process::processEvents(), "Should quit after 30 ProcessEvents() calls - not before!"); | |||
| test(!Process::processEvents(), "Should quit after the 30th ProcessEvent() call!"); | |||
|
|
|||
| Process::remove(this, &TestingProcess::process); | |||
LuisAntonRebollo
May 25, 2014
Author
Contributor
Forgot to remove TestingProcess::process form Process's signal. This cause Process notify a deleted object and corrupt memory.
Forgot to remove TestingProcess::process form Process's signal. This cause Process notify a deleted object and corrupt memory.
|
I think i have fixed the problem, not related to ThreadPool (reverted changes... i need to close #599).
Anyone can verify that everything is working properly? |
|
Seems to be working. |
Increased stability Torque3D: unit-tests running without a crash.
feec367
into
GarageGames:development
See the console.log after ran unitTest_runTests( "", true ). Based on a @signmotion PR #562
I added small changes to make all unit test working.