Giter Site home page Giter Site logo

Comments (7)

V0rt3x667 avatar V0rt3x667 commented on May 23, 2024

I tested the Windows version from the Releases page and ran it under WINE. I can see the same error message in the terminal, however CDogs-SDL runs fine. For some reason the Linux version segfaults.

from cdogs-sdl.

cxong avatar cxong commented on May 23, 2024

this error occurs if the player templates file is missing - it should be normal since new players won't have this file. It should not segfault though. Will need more info about where exactly this segfault is happening.

from cdogs-sdl.

Furyspark avatar Furyspark commented on May 23, 2024

I am also experiencing a segfault when starting up the game on Arch Linux. When running the game from a terminal, I get the following output:

tijmen@abaddon ~> cdogs-sdl
C-Dogs SDL v1.5.0
SDL version 2.28.5
SDL_image version 2.6.3
SDL_mixer version 2.6.3
20240106-161259 INFO  [MAIN ] [files.c:669] SetupConfigDir(): Creating config dir /home/tijmen/.config/cdogs-sdl/...
20240106-161259 INFO  [MAIN ] [files.c:676] SetupConfigDir(): Config dir already exists.
Error loading config '/home/tijmen/.config/cdogs-sdl/options.cnf'
20240106-161259 INFO  [MAIN ] [cdogs.c:141] main(): Command line (1 args): cdogs-sdl
20240106-161301 INFO  [GFX  ] [grafx.c:119] GraphicsInitialize(): graphics mode(320x240 2x)
20240106-161301 INFO  [MAIN ] [cdogs.c:192] main(): data dir(/usr/share/cdogs)
20240106-161301 INFO  [MAIN ] [cdogs.c:193] main(): config dir(/home/tijmen/.config/cdogs-sdl/)
Error loading autosave '/home/tijmen/.config/cdogs-sdl/autosave.json'
20240106-161302 INFO  [INPUT] [joystick.c:60] JoyInit(): 0 controllers found
20240106-161302 ERROR [MAIN ] [player_template.c:128] PlayerTemplatesLoad(): loading player templates 'players.cnf'
20240106-161302 INFO  [MAIN ] [campaigns.c:186] LoadAllCampaigns(): Load campaigns from system...
20240106-161302 INFO  [MAIN ] [campaigns.c:190] LoadAllCampaigns(): Load campaigns from dir /usr/share/cdogs/missions...
20240106-161303 INFO  [MAIN ] [campaigns.c:195] LoadAllCampaigns(): Load dogfights from dir /usr/share/cdogs/dogfights...
20240106-161303 INFO  [MAIN ] [campaigns.c:199] LoadAllCampaigns(): Load quick play...
20240106-161303 INFO  [MAIN ] [cdogs.c:294] main(): Starting game
fish: Job 1, 'cdogs-sdl' terminated by signal SIGSEGV (Address boundary error)

Is there anything specific you'd want me to do to get you the information you need?

from cdogs-sdl.

cxong avatar cxong commented on May 23, 2024

Hi @MikauSchekzen your problem sounds like a different one - can you please open a separate issue
also, it would be helpful to have the following:

  • check if the error also exists in latest master
  • create a core dump and find the exact line of code that triggers this error

from cdogs-sdl.

V0rt3x667 avatar V0rt3x667 commented on May 23, 2024

I have attached a trace log. I hope that helps.
trace.log

from cdogs-sdl.

V0rt3x667 avatar V0rt3x667 commented on May 23, 2024

Same issue as #852

from cdogs-sdl.

V0rt3x667 avatar V0rt3x667 commented on May 23, 2024

Building sdl2_mixer with default options & linking statically to CDogs fixes the issue. As per #852 the issue is with the sdl2_mixer shipped by Arch Linux since version 2.6.3-2.

from cdogs-sdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.