Problem with ags amd64 on Debian

Started by watakwa, Sat 07/07/2012 19:23:06

Previous topic - Next topic

watakwa

I recently purchased Resonance and was looking to play it on Debian, since that is my main operating system. I have been attempting to compile from the git repository the most recent commit, and after a bit of tweaking I was able to get it to compile and to run. However, I am running into some troubles...

At first, running
Code: AGS
ags ./Resonance.exe
didn't work and would always fail with the following error:
Code: AGS
AGS: Starting game
An internal error has occurred. Please note down the following information.
If the problem persists, post the details on the AGS Technical Forum.
(ACI version 3.21.1115)

Error: Error running function 'game_start':
Error: Pointer cast failure: the object being pointed to is not in the managed object pool

AGS: ***** ENGINE HAS SHUTDOWN


I commented out the D3D lines from the acsetup.cfg file, and it ran for a moment. I started a new game, and got to the first interactive screen. After clicking on an object, it gave me this error:
Code: AGS
AGS: Loading room 1
An internal error has occurred. Please note down the following information.
If the problem persists, post the details on the AGS Technical Forum.
(ACI version 3.21.1115)

Error: Error running function 'repeatedly_execute_always':
Error: Pointer cast failure: the object being pointed to is not in the managed object pool

AGS: ***** ENGINE HAS SHUTDOWN


I assume that the program didn't compile correctly on my machine, but I also followed the instructions provided on the readme so I'm not sure what the problem could be specifically. Any insight?

Calin Leafshade

Thats almost certainly due to the scripting engine not being able to cast pointers properly in a 64bit environment.

You need to compile it for a 32 bit environment.

watakwa

I tried to compile the 32-bit version before I tried the 64 bit, but I couldn't install it on my computer because my computer won't accept liballegro4.4:i386 and libaldmb1:i386. I think that because of the way Debian is starting to handle multi-arch and that not every package supports it creates a problem and I can't finish compiling it. I followed the instructions to create the 32-bit AGS, and created the package, but both gdebi and apt-get -f would not let me install, saying the package is uninstallable.

JJS

This is a known issue with the 64 bit branch. On some PCs it always crashes like this and it seems to be related to where the system decides to place the heap memory. I cannot at all reproduce this on my computer unfortunately. Interestingly the other PC that exhibits this problem is also running Debian (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=46152.msg622619#msg622619). Though I cannot reproduce it with Debian either.
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

watakwa

Quote from: JJS on Sun 08/07/2012 08:55:14
This is a known issue with the 64 bit branch. On some PCs it always crashes like this and it seems to be related to where the system decides to place the heap memory. I cannot at all reproduce this on my computer unfortunately. Interestingly the other PC that exhibits this problem is also running Debian (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=46152.msg622619#msg622619). Though I cannot reproduce it with Debian either.

Have you or BigMc been able to find a reliable fix for it?

JJS

Unfortunately no. The reason is completely unclear.
Ask me about AGS on PSP, Android and iOS! Source, Daily builds

watakwa

Quote from: JJS on Mon 09/07/2012 07:42:47
Unfortunately no. The reason is completely unclear.

If there's anything I can do to help, let me know. I can provide crash reports, or debug, or whatever you need. I would love to be able to play Resonance without having to run it in an emulator or using Windows directly.

watakwa

So I attempted to get the 32 bit version working again, and this time it worked! I guess the dependencies that wouldn't work last week were updated and I could fully install the 32 bit version of AGS. Unfortunately, it didn't have sound when I started, and since it wasn't available in the repos I was using, I had to manually install lib32asound2-plugins. It is available on the Debian website.

For anyone using Debian Wheezy 64 bit, I can confirm that installing the 32 bit version on 64 bit Wheezy worked for me. Hope this is helpful for anyone who was having issues before.

SMF spam blocked by CleanTalk