Crash/freeze (sometimes) when casting spells
issueid=4028 11-18-2015 11:21 PM
Junior Member
Number of reported issues by rkaid: 5
Crash/freeze (sometimes) when casting spells
The game sometimes (rarely) crashes/freezes upon casting an offensive spell

I've experienced this at least 3 times now in the Steam version of the game on Arch Linux 64-bit.
Here's what happens:
I cast an offensive spell, the sound is played, but the animation is not. The first square in the direction I'm casting the spell gets a red overlay on the tile, and then the game stops there. No keys do anything - except left shift which shows the little tooltip above characters.
The mouse doesn't work either, but I haven't tried clicking any of the icons on the far right hand side of the screen.
I haven't been able to reproduce this bug with any consistency, neither have I seen a pattern, so I don't know any possible cause, but it has so far only happened with offensive spells (bolt spells, magic missile).
I believe I have only had this happen with spells set to a quickmark, but I usually always have offensive spells quickmarked, so that may or may not be a part of the problem.

As said, when this happens I can't do anything and have to kill the process and start over at previous (auto)save.
I'll add to this report if I find out anything more.

Edit: I see this message: "anim_id isn't set for anchor != location, anchor = being" in my adom.log

Edit: See other comments/replies here, this is happening to several other people, and might be Linux specific. Happens with and without quickmarks. Changed priority to 1 - highest.
I just completely lost a new character because of this bug (on R63), apparently I hadn't played long enough for an autosave to kick in (character was Gray Elf Wizard, was only a few levels into the druid dungeon, so no big loss, but still.)
Issue Details
Issue Number 4028
Project ADOM (Ancient Domains Of Mystery)
Category Linux (Steam)
Status Fixed
Priority 1 - Highest
Affected Version ADOM r63 (v2.0.2)
Fixed Version ADOM r64 (v2.0.3)
Milestone Potential work pipeline
Users able to reproduce bug 1
Users unable to reproduce bug 0
Assigned Users jt, Zeno
Tags (none)




11-19-2015 02:29 PM
Ancient Member
If it helps, I haven't quickmarked any spells and in roughly 1 hour of playing a wizard I haven't seen this, should be Win 64 steam version.

11-20-2015 02:16 PM
Junior Member
I got this issue also on R62/2.0.1. Never experienced it before. No spells are quickmarked. CPU usage is becoming very high after the crash. Playing on Ubuntu 64bit derivate. I consider this bug gamebreaking and should be rated priority rank 1. I play currently a druid in story mode.

11-21-2015 01:50 PM
Junior Member
Same here with 2.0.1 in Ubuntu 15.10 64bit, Steam version, NotEye enabled. Casting a Magic Missile caused the crash. Game was stuck flashing a light rectangle on the monster. The UI somewhat reacted to mouse movements but clicking didn't do anything. Had to manually kill the game process to be able to close Steam.

It's a showstopper for playing magic classes.

11-25-2015 10:30 AM
Junior Member
I'm having this issue whenever a monster does a ranged attack, not only spells. Seems like it's an old bug that was fixed before and regressed in this release.
If it helps: I'm using Arch Linux, steam version (R63).

11-26-2015 09:19 PM
jt jt is offline
Administrator
Please check issue 3985 for a link to a new binary with debug symbols. Hopefully this gives us some hints about the problem.

11-27-2015 12:58 AM
Junior Member
So I downloaded the binary with debug symbols. Have played with it for a couple of hours. About an hour ago the bug seemed to happen, but this time didn't crash the game, instead the spell animation moved super slowly, like 1 tile every 1-2 seconds (fire bolt spell). When it eventually finished, the game seemed to be back to normal, so I saved and quit, and found this in adom.log which seems related to the problem:

<2015-11-27 00:01:25> INFO : Suspicious endtime, clock = -2135.764188 time = 2113.636194 endtime = 2113.736194
<2015-11-27 00:01:27> INFO : Suspicious endtime, clock = -2134.080799 time = 2113.636194 endtime = 2113.736194
<2015-11-27 00:01:30> INFO : Suspicious endtime, clock = -2132.440401 time = 2113.636194 endtime = 2113.736194
<2015-11-27 00:01:32> INFO : Suspicious endtime, clock = -2130.723062 time = 2113.636194 endtime = 2113.736194
<2015-11-27 00:01:34> INFO : Suspicious endtime, clock = -2129.073307 time = 2113.636194 endtime = 2113.736194
<2015-11-27 00:01:36> INFO : Suspicious endtime, clock = -2127.263545 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:38> INFO : Suspicious endtime, clock = -2125.592127 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:40> INFO : Suspicious endtime, clock = -2123.939829 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:42> INFO : Suspicious endtime, clock = -2122.283175 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:44> INFO : Suspicious endtime, clock = -2120.639951 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:46> INFO : Suspicious endtime, clock = -2118.910227 time = 2113.636194 endtime = 2113.636194
<2015-11-27 00:01:48> INFO : Suspicious endtime, clock = -2117.242678 time = 2113.636194 endtime = 2113.636194
Then, about an hour later, the same thing happened again, this time when a monster (ankheg) breathed acid at me. In the log file there was entries similar to the one above, but with different numbers, so it seems to be relevant.

11-29-2015 02:07 PM
Junior Member
I can add that once the slowing down as described above happens, it seems to happen every time I or a monster cast a spell or throw/fire something. After I save, quit and reload, it's all back to normal.
The log messages about suspicious endtime are present every time.
Several times it has happened quite shortly after gaining/unlocking an achievement, but I'm not sure if that's been the case every time.
Also, it seems to happen after having played roughly 45-50 minutes, which might be relevant since it seems to have something to do with timers/timing.
I can make a video showing what's happening if you want/need.

12-03-2015 05:04 AM
Junior Member
I've experienced the same issue.

When enemies throw projectiles or cast spells, the game displays the cast or throw, but in a remarkably slower time frame. After completion of the cast or throw, the game catches up. For instance, I ran into a fire lizard in cave along with a whole gang of white worms. Game play aside from the fire lizard breathing fire is fine. Each subsequent time the fire is breathed, the aforementioned issue occurs.

Linux Fedora 23, 64 bit. ADOM R64.

12-04-2015 06:15 PM
Junior Member
I've experienced similar with Linux Ubuntu 14.04 64bit. In R63 Adom would hang randomly when a range attack (missile or spell) was cast. I actually noticed that it frequently happened at the first range attack after loading a saved game. I've been playing R64 solid for a few days and not hot any crashed. But, every range attack takes a long time to hit - about 3 seconds per square. Things are definitely moving in the right direction and the game is quality! First played this in 2000 so I was well excited to see this finally on steam! Well done everyone involved!

12-07-2015 08:46 PM
jt jt is offline
Administrator
Zeno replaced all os.clock() calls with getticks(). This should fix the problems on Linux.

+ Reply