On FAF client launch: "Errors occurred" -- FreeImage problem

Tournaments announces and results.

Moderators: FtXCommando, Stups

On FAF client launch: "Errors occurred" -- FreeImage problem

Postby Retnut » 03 Jun 2013, 09:01

Hi folks,

I recently started playing FA again and when I found out about the FAF community I was pretty stoked. Unfortunately, I've been unable to get the client to launch.

I am running Win 7 x64. When I run FAF I get the following error dialog on startup:
Image
It reads: Errors occurred
See the logfile 'C:\Program Files (x86)\Forged Alliance Forever\FAForever.exe.log' for details

Logfile
Here is a pastebin of the logfile: http://pastebin.com/gyr7y8Fc
And here is an excerpt from the end:
...
C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\library.py:92: FunctionNotFound: Error on bind FreeImage_FindNextMetadata.
C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\library.py:92: FunctionNotFound: Error on bind FreeImage_FindCloseMetadata.
C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\library.py:92: FunctionNotFound: Error on bind FreeImage_IsLittleEndian.
Error in sys.excepthook:
Traceback (most recent call last):
File "main.pyc", line 56, in excepthook
NameError: global name 'logger' is not defined

Original exception was:
Traceback (most recent call last):
File "main.py", line 44, in <module>
File "util\__init__.pyc", line 557, in <module>
File "util\crash.pyc", line 24, in <module>
File "fa\__init__.pyc", line 82, in <module>
File "fa\maps.pyc", line 39, in <module>
File "C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\__init__.py", line 35, in <module>
File "C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\FreeImagePy.py", line 84, in __init__
File "C:\Program Files (x86)\Forged Alliance Forever\FAForever.lib\FreeImagePy\library.py", line 95, in __init__
AttributeError: 'internlLibrary' object has no attribute 'lib'

The problem seems to be that the FreeImagePy library is unable to load the FreeImage dll. I have verified this by editing library.py within FAForever.lib to output error messages to the log at various points during execution.

Problem Research
Troubleshooting thus far
  • Disabled antivirus (Microsoft Security Essentials) / Result: no change
  • Downgraded to older version of FreeImagePy / Result: no change
  • Downgraded FreeImage dll / Result: no change
    note: I have been unable to find a 3.9.x dll as suggested by Hervé. I have also been unable to find a 3.7.x dll which is listed as a requirement in the FreeImagePy readme. I can compile these from source if there is a reason to believe this would be worthwhile, but this bug has been in the wild for a year and I've already downgraded to a 2-year-old release of FreeImage.
  • Installed FAF on a new user profile / Result: no change
  • Reinstalled FA and SupCom (original install was GPG/retail disc, new install is Steam) / Result: no change
  • Played around with FreeImagePy lib to diagnose the dll loading issue / Result: diagnostic
  • Reinstalled FAF (multiple times) / Result: no change
  • Run as administrator / Result: no change
My VC++ runtime is up to date.
System Restore is not an option as I've never had a working FAF install.

I'm technically inclined and willing to hack at this if the problem is tractable, but I don't know enough about this library's history and dependencies to go much further at present. The next "troubleshooting" step as I see it is to reinstall Windows. I have a Win 8 key I could install but it'll be a week or so before I have time to sit down and get it done. Any advice as to how to proceed would be very much appreciated!

Thanks folks,
Retnut
Retnut
Crusader
 
Posts: 45
Joined: 03 Jun 2013, 07:55
Has liked: 3 times
Been liked: 4 times

Re: On FAF client launch: "Errors occurred" -- FreeImage pro

Postby Ze_PilOt » 03 Jun 2013, 10:14

I'm not really sure what is happening as it work on 99% of the PCs.

I will try to swap the library to openImageIO soon.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: On FAF client launch: "Errors occurred" -- FreeImage pro  Topic is solved

Postby Kalessin » 21 Jun 2013, 19:43

I had the same issue and after scouring my PC for other copies of freeimage.dll I found a copy in my install of the PythonXY IDE, which was on my system path. Removing this fixed the problem, you could try a search to see if you have any copies of this dll on your path elsewhere.
Kalessin
 
Posts: 1
Joined: 21 Jun 2013, 19:38
Has liked: 0 time
Been liked: 0 time
FAF User Name: Kalessin


Return to Tournaments

Who is online

Users browsing this forum: No registered users and 1 guest