The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Phystam on March 23, 2019, 06:20:08 PM

Title: Tunnel SEGV
Post by: Phystam on March 23, 2019, 06:20:08 PM
Hello,

When using tunnel slope tool, immediately simutrans crashes. This error seems to be caused when calling calc_image().
(https://cdn.discordapp.com/attachments/514739526330220547/559077943419207739/62c287f2a9afcab6.PNG)
back trace:
(https://cdn.discordapp.com/attachments/514739526330220547/559078347393597450/backtrace.png)
The dat file is as follows:

obj=tunnel
name=tunnel_track_concrete
waytype=track
copyright=Gobanboshi
intro_year=1945
intro_month=1
cost=28070200
maintenance=7020
topspeed=100
max_weight=14
icon=> ../images/track-concrete-tunnel.0.0
cursor=../images/track-concrete-tunnel.0.1
backimage[N]=../images/track-concrete-tunnel.1.0
backimage[S]=../images/track-concrete-tunnel.1.2
backimage[E]=../images/track-concrete-tunnel.1.3
backimage[W]=../images/track-concrete-tunnel.1.1
frontimage[N]=../images/track-concrete-tunnel.2.0
frontimage[S]=../images/track-concrete-tunnel.2.2
frontimage[E]=../images/track-concrete-tunnel.2.3
frontimage[W]=../images/track-concrete-tunnel.2.1
Title: Re: Tunnel SEGV
Post by: jamespetts on March 25, 2019, 09:48:22 PM
Thank you for the report. The problem was that no slope graphics were defined. However, the game should not crash in this instance: I have fixed the tendency to crash (now, no tunnel specific image will be shown when there is no slope graphic), but I suggest that you might want to add slope graphics.

Incidentally, these tunnel images are intended to be used for tunnel interiors, not track: the track image is the normal track image.
Title: Re: Tunnel SEGV
Post by: Phystam on March 26, 2019, 12:04:57 PM
Thank you so much, I confirmed that the problem is now fixed.