| Author |
Message |
Keef

Joined: 20 Dec 2007 Posts: 433 Location: Staffordshire
|
Posted: Thu 20 Sep 2012, 12:39 Post_subject:
|
|
No joy on Wary 5.3:
| Code: | *** OpenTTD Crash Report ***
Crash at: Thu Sep 20 16:19:40 2012
In game date: 0-01-01 (0)
Crash reason:
Signal: Segmentation fault (11)
Message: <none>
OpenTTD version:
Version: 1.2.1 (0)
NewGRF ver: 12185ef2
Bits: 32
Endian: little
Dedicated: no
Build date: Sep 19 2012 09:29:51
Stacktrace:
Not supported.
Operating system:
Name: Linux
Release: 2.6.32.59
Version: #2 Sun Apr 15 00:26:20 BST 2012
Machine: i686
Compiler: GCC 3.4.3 "3.4.3"
Configuration:
Blitter: 8bpp-optimized
Graphics set: none (4294967295)
Language: /usr/local/share/games/openttd/lang/english.lng
Music driver: none
Music set: none (4294967295)
Network: no
Sound driver: none
Sound set: none (4294967295)
Video driver: sdl
AI Configuration (local: 0):
Libraries:
FreeType: 2.4.10
LZMA: 5.0.4
LZO: 2.06
PNG: 1.2.46
SDL: 1.2.15
Zlib: 1.2.5
---- gamelog start ----
---- gamelog end ----
*** End of OpenTTD Crash Report ***
|
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Thu 20 Sep 2012, 14:41 Post_subject:
|
|
TheYoungOne & Keef: Thanks for testing and reporting.
I am posting from Wary 5.3 now running Xorg with generic Nvidia driver.
openttd runs ok but if I remove content of
~/.openttd/content_download/baseset
(contain OpenGFX-0.4.4.tar which hold all the graphics) I get exactly same crash-report as you Keef...
From xorg.conf:
| Code: | Driver "nv" #card0driver
VendorName "nVidia Corporation"
BoardName "NV44A [GeForce 6200]" |
|
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 433 Location: Staffordshire
|
Posted: Thu 20 Sep 2012, 15:24 Post_subject:
|
|
Yes, that did it. The directory was empty, so it didn't copy over. Actually I know why. I'd tested the binary in its unpacked directory to see if it worked. Doing that generates the .openttd directory, but without the graphics file - I never checked the contents fully after that.
I tried it on Slacko and found it works ok.
TheYoungOne: I have been trying to attach a pet for you to try, but the forum is not having it at the moment for some reason.
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Fri 21 Sep 2012, 09:52 Post_subject:
|
|
Nice...
The segfault when graphics not found is not default openttd behavior. The default is to offer download of graphics but I have not been able to get that working in the static build - and thats the main reason that the archive is shipped with graphics included.
|
|
Back to top
|
|
 |
TheYoungOne

Joined: 11 Feb 2012 Posts: 40
|
Posted: Fri 21 Sep 2012, 10:19 Post_subject:
|
|
Hey Keef that's a shame. Do you reckon you could send it to my e-mail ? I can PM you it if it's alright with you.
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Fri 21 Sep 2012, 11:44 Post_subject:
|
|
Added the possibility to download as a pet.
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Fri 28 Sep 2012, 00:42 Post_subject:
|
|
OSOpenBrowser is called in openttd.cpp
it exists in os/unix/unix.cpp and calls the url with:
"/usr/bin/xdg-open"
try putting a symlink there (puppy uses either my Rox wrapper possibly with jemimah's URI fixes in /usr/local/bin for xdg-open, or a hacky nest of if-thens in a script)
for reference:
| Code: | #!/bin/bash
case "$1" in
'') exit
;;
*://*) exec rox -U "$1"
;;
*@*.*) exec rox -U "mailto:${1}"
;;
*) exec rox "$1"
;;
esac |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Sat 29 Sep 2012, 07:37 Post_subject:
|
|
technosaurus; Thx for looking into this. The call to xdg-open seems to affect the "Visit website"-button when in the "Content Downloading"-window after choosing a package to download. If not present/functioning nothing happens using that button but if xdg-open present and working it opens the webpage in the browser.
Attached an image of the default behavior of openttd if no graphics found. This window is dependent on some Freetype fonts from the main system which does not work in the static build. Seems that the Freetype - although present - does not work correctly. If build without Freetype the game does not crash but gives a message - but you wont see it unless game is started from prompt (image below).
Game seems to work fine without Freetype and it reduce size from 4744K to 4364K unpacked.
Maybe one could change the failure-code in bottom of bootstrap_gui.cpp to use Xdialog (if present) to inform the user about what is wrong...Maybe reconstruct the dialog with offer of download is also possible...
 |
| Description |
default behavior if graphics not found and compiled WITHOUT Freetype |
| Filesize |
6.81 KB |
| Viewed |
268 Time(s) |

|
| Description |
default behavior if graphics not found and compiled with Freetype |
| Filesize |
4.06 KB |
| Viewed |
273 Time(s) |

|
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Sat 29 Sep 2012, 15:20 Post_subject:
|
|
I'll be honest, I only downloaded the sources because it sounded like a problem I could find in 5 minutes ... I was wrong, it took less than 1 (grep "tp://" * */* */*/* and follow it back), but I never compiledit From your image it appears to have builtin dialog capabilities - seems a better choice than an external dialog. (btw if you recompile, just remove the path to xdg-open and it will use the existing xdg-open wrapper without symlinks as long as it is somewhere in the path)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
|