Opened 9 years ago

Closed 9 years ago

#2958 closed defect (invalid)

Test Job Fails, Visual C++ 2010 Express

Reported by: Blake Owned by:
Priority: Must Have Milestone:
Component: Build & Packages Keywords: test visual c++ 2010 express windows 7 x64
Cc: Patch:

Description

I'm trying to run the test job and it fails.

The build instructions say:

To run the automated tests, run the "test" project. (Right click on "test" and "set as StartUp Project" and F5; or right click, "Debug", "Start new instance"). In VS's debug output window, ignore any "first-chance exception" messages; it should say ".......OK!" if it succeeded.

Instead, the test job opens a command window which has a series of errors and closes before there is time to mark it.

The build output displays:

http://pastebin.com/5Eg7fAQQ

Change History (8)

comment:1 by leper, 9 years ago

Did the build succeed fully?

ERROR: DllLoader: dlopen(Collada_dbg.so) failed: module not found; dlopen(Collada.so) failed: module not found;

indicates that it did not and that is the reason why tests are failing.

comment:2 by Blake, 9 years ago

Did the build succeed fully?

I don't normally use an IDE, so my best indication would have been the last line,

The program '[3728] test_dbg.exe: Native' has exited with code 6 (0x6).

Which I assume means no, the build didn't succeed fully.

indicates that it did not and that is the reason why tests are failing.

It seems you are right. pyrogenesis runs properly but announces many COLLADA errors while rendering. Perhaps someone is familiar with Collada issues?

comment:3 by leper, 9 years ago

Try building the collada project. And post error messages.

comment:4 by Blake, 9 years ago

Log Output:

1>------ Build started: Project: Collada, Configuration: Debug Win32 ------ 1> precompiled.cpp 1> XMLFix.cpp 1> StdSkeletons.cpp 1> PSAConvert.cpp 1> PMDConvert.cpp 1> Maths.cpp 1> GeomReindex.cpp 1> DLL.cpp 1> Decompose.cpp 1> CommonConvert.cpp 1> Generating Code... 1> Creating library ..\..\..\binaries\system\Collada_dbg.lib and object ..\..\..\binaries\system\Collada_dbg.exp 1>LINK : warning LNK4199: /DELAYLOAD:libiconv.dll ignored; no imports found from libiconv.dll 1> Creating library ..\..\..\binaries\system\Collada_dbg.lib and object ..\..\..\binaries\system\Collada_dbg.exp 1>LINK : warning LNK4199: /DELAYLOAD:libiconv.dll ignored; no imports found from libiconv.dll 1> Collada.vcxproj -> C:\Users\Blake\workspace\0ad\build\workspaces\vc2010\..\..\..\binaries\system\Collada_dbg.dll ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Then, a windows-style alert is launched:

Unable to start program 'C:\Users\Blake\workspace\0ad\build\workspaces\vc2010\..\..\..\binarie s\system\Collada_dbg.dll'

comment:5 by leper, 9 years ago

Could you try renaming Collad_dbg.dll to Collada.dll? (Or building a release build of Collada?)

(Note that debug build are just slow and don't help a lot as release build do have symbols)

comment:6 by Blake, 9 years ago

I ran the release build and it worked. I repeated the debug build and it worked as well. I repeated the test build in debug mode and that also worked.

I'm not sure what to tell you. If you have any ideas about why this happened it might be worth documenting, but my personal problem seems to have fixed itself.

comment:7 by leper, 9 years ago

Does Collada_dbg.dll actually exist? It seems that the debug lib didn't get built (and no release build was done either), so the game failed to load any of those.

Could you try to do a clean build again? (Also delete binaries/system before doing that, then svn up)

Sounds like a build failure somewhere, as Collada is built by default on Windows.

comment:8 by historic_bruno, 9 years ago

Keywords: test, visual c++ 2010 express, windows 7, x64 → test visual c++ 2010 express windows 7 x64
Milestone: Backlog
Resolution: invalid
Status: newclosed

VS2010 is no longer supported, if you still have the issue with VS2013 and latest SVN, please open the ticket.

Note: See TracTickets for help on using tickets.