Jump to content

[FreeBSD] Java script error


JBERT
 Share

Recommended Posts

Hello,

I'm trying to use 0ad on a FreeBSD workstation (diskless, i7-4470, 16 GB, intel GPU).

pythagore:[~] > uname -a
FreeBSD pythagore 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

0ad crashes in maps initialization with a segfault (and a lot of Javascript errors):

TIMER| common/sprites.xml: 1.43288 ms
TIMER| common/styles.xml: 456.91 us
TIMER| gamesetup/setup.xml: 4.5437 ms
TIMER| gamesetup/styles.xml: 509.713 us
TIMER| gamesetup/gamesetup.xml: 501.15 ms
TIMER| common/global.xml: 1.1055 ms
ERROR: JavaScript error: simulation/helpers/Damage.js line 22
missing ( after for
  launchGame@gui/gamesettings/GameSettings.js:128:11
  launchGame@gui/gamesetup/Controllers/GameSettingsController.js:273:18
  onPress@gui/gamesetup/Pages/GameSetupPage/Panels/Buttons/StartGameButton.js:60:52
Writing replay to /home/benedicte/.local/share/0ad/replays/0.0.25/2022-01-09_0002
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
ERROR: CXeromyces: Parse error: in_memory_buffer:1: Element choice is empty
TIMER| loading/sprites.xml: 2.53587 ms
TIMER| loading/loading.xml: 67.4134 ms
ERROR: JavaScript error: simulation/helpers/Player.js line 31
cmpPlayerManager is null
  LoadPlayerSettings@simulation/helpers/Player.js:31:19
Setting biome fields_of_meroe/dry.
Generating Fields of Meroë of size 256 and 2 players.
Creating river... 0.218174s.
Creating cataracts... 1.199805s.
...
Total map generation time: 7.973253s.
Total entities: 2963, Terrain entities: 382, Textures: 11.
TIMER| ParseTerrain: 31.7193 ms
ERROR: RelaxNGValidator: No grammar loaded
ERROR: Failed to validate entity template 'actor|props/flora/reeds_pond_lush_a.xml'
Segmentation fault

Of course, I have checked that I only have one javascript engine on this system:

root@pythagore:~ # pkg info | grep spider
spidermonkey78-78.9.0_4        Standalone JavaScript based from Mozilla 78-esr
root@pythagore:~ # pkg info | grep 0ad
0ad-0.0.25b_5                  Real-time strategy (RTS) game of ancient warfare
root@pythagore:~ # 

If I remember, old 0ad releases ran like a charm. I suppose I have done a mistake somewhere. Help will be welcome.

Regards,

JB

Link to comment
Share on other sites

48 minutes ago, JBERT said:

Hello

Hello

48 minutes ago, JBERT said:
ERROR: JavaScript error: simulation/helpers/Damage.js line 22

The file Damage.js is not in  the release version.

This file removed 5 years ago
Probably installed old mods? Try run with default mods:
 

0ad '-conf=mod.enabledmods:mod public'

or check $PATH (probably old binary file)
 

$ 0ad -version
Pyrogenesis 0.0.25

 

Edited by nwtour
  • Like 1
Link to comment
Share on other sites

Thanks a lot for your answers. I have deleted 0ad package and some files were not delete in share/0ad. Now, I have purged these files and I'm trying to reinstall 0ad (but with my 4 Mbps internet connection, it takes a while ;-) ).

Regards,

JB

Link to comment
Share on other sites

OK. I have reinstalled 0ad and it runs as expected. Next problem, it runs without sound. On Linux side, it seems to use alsa. On my FreeBSD, I use pulseaudio (as motherboard has two integrated sound adapters) but alsa-plugin is not loaded when 0ad is launched.

Regards,

JB

Link to comment
Share on other sites

21 minutes ago, JBERT said:

On Linux side, it seems to use alsa

No. 0 A.D. uses OpenAL

[general]
## drivers: (global)
#  Sets the backend driver list order, comma-seperated. Unknown backends and
#  duplicated names are ignored. Unlisted backends won't be considered for use
#  unless the list is ended with a comma (e.g. 'oss,' will try OSS first before
#  other backends, while 'oss' will try OSS only). Backends prepended with -
#  won't be considered for use (e.g. '-oss,' will try all available backends
#  except OSS). An empty list means to try all backends.
# drivers =

Try create ~/.config/alsoft.conf with content

[general]
drivers = pulse

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...