Comments (7)
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.
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.
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.
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.
I have attached a trace log. I hope that helps.
trace.log
from cdogs-sdl.
Same issue as #852
from cdogs-sdl.
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)
- Shift to another hasmap implementation from the deprecated `c_hashmap` HOT 2
- Wrong blood animation HOT 3
- Original Release Campaign? HOT 7
- CVE-apply:In Nanopb before versions 0.3.9.8 and 0.4.5, decoding a specifically formed message can cause invalid `free()` or `realloc()` calls if the message type contains an `oneof` field, and the `oneof` directly contains both a pointer field and a non-pointer field. HOT 1
- Zig development HOT 2
- Assets revamp
- Compass arrow points just below objective HOT 1
- Fix ubuntu/clang release build
- Build error with tinydir inlining HOT 7
- Crash with invalid config HOT 1
- Feature request: Stable network ports HOT 3
- Problem running itch.io version on Ubuntu 22.04 HOT 1
- 2.0 64-bit builds are missing .dll's HOT 1
- List of linux package managers where C-Dogs SDL is available HOT 1
- Re-evaluate OARS categorization HOT 1
- Use single channel for actor voices
- Add mission briefing menu in pause menu
- Segfault on startup in PlayMusic HOT 9
- Disable deploy on create or publish tag trigger
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdogs-sdl.