Giter Site home page Giter Site logo

c1's People

Contributors

wurlyfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

c1's Issues

Segmentation fault error thrown upon running when compiled on Linux Mint 21.2

When I attempted to compile it on Linux Mint 21.2 it successfully compiled but did not run. Instead, it gave a Segmentation fault (core dumped) error. Here is what GDB output from the executable and core dump:

Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/devon/src/c1/c1...

warning: Can't open file /memfd:pulseaudio (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:xshmfence (deleted) during file-backed mapping note processing
[New LWP 1075928]
[New LWP 1075932]
[New LWP 1075930]
[New LWP 1075933]
[New LWP 1075934]
[New LWP 1075941]
[New LWP 1075951]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `./c1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf747986b in fseek () from /lib/i386-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0xf65087c0 (LWP 1075928))]

Failing to build on Manjaro Linux

Hey there I just wanted to report a issue building this on Manjaro Linux.

gcc ./src/ext/lib/cimgui/imgui/backends/imgui_impl_opengl2.o ./src/ext/lib/cimgui/imgui/backends/imgui_impl_sdl.o ./src/ext/lib/cimgui/imgui/imgui_draw.o ./src/ext/lib/cimgui/imgui/imgui_tables.o ./src/ext/lib/cimgui/imgui/imgui_widgets.o ./src/ext/lib/cimgui/imgui/imgui.o ./src/ext/lib/cimgui/cimgui.o src/ns.o src/pad.o src/math.o src/audio.o src/midi.o src/cam.o src/solid.o src/slst.o src/level.o src/misc.o src/gfx.o src/gool.o src/pbak.o src/title.o src/main.o src/pc/init.o src/pc/math.o src/pc/pad.o src/pc/time.o src/pc/gfx/tex.o src/pc/gfx/soft.o src/pc/gfx/gl.o src/pc/sound/util.o src/pc/sound/midi.o src/pc/sound/audio.o src/util/list.o src/util/tree.o src/ext/lib/gui.o src/ext/lib/refl.o src/ext/gui.o src/ext/refl.o src/ext/disgool.o -o c1 -g -fplan9-extensions -m32 -lSDL2 -lGL -lfluidsynth -lm -lstdc++ -DCFLAGS_GFX_SW_PERSP -DCFLAGS_DRAW_EXTENSIONS -DCFLAGS_GUI -DCFLAGS_GOOL_DEBUG
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libfluidsynth.so when searching for -lfluidsynth
/usr/bin/ld: skipping incompatible /usr/lib/libfluidsynth.so when searching for -lfluidsynth
/usr/bin/ld: cannot find -lfluidsynth: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../libfluidsynth.so when searching for -lfluidsynth
/usr/bin/ld: skipping incompatible /usr/lib/libfluidsynth.so when searching for -lfluidsynth
collect2: error: ld returned 1 exit status
make: *** [Makefile:81: c1] Error 1

I have fluidsynth 2.3.4-1 installed

Couldn't run on Ubuntu 22.04 VM, got 'Segmentation Fault' on line 64 of midi.c

The compilation seemed to go through okay, however there were some warnings about midi.o, specifically:
src/pc/sound/midi.c: In function ‘SwMidiInit’:
src/pc/sound/midi.c:163:14: warning: passing argument 3 of ‘fluid_sfloader_set_callbacks’ from incompatible pointer type [-Wincompatible-pointer-types]
163 | mem_open,mem_read,mem_seek,mem_tell,mem_close);
| ^~~~~~~~
| |
| int (*)(void *, int, void )
In file included from /usr/include/fluidsynth.h:102,
from src/pc/sound/midi.c:4:
/usr/include/fluidsynth/sfont.h:174:40: note: expected ‘fluid_sfloader_callback_read_t’ {aka ‘int (
)(void *, long long int, void )’} but argument is of type ‘int ()(void *, int, void )’
174 | fluid_sfloader_callback_read_t read,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
src/pc/sound/midi.c:163:23: warning: passing argument 4 of ‘fluid_sfloader_set_callbacks’ from incompatible pointer type [-Wincompatible-pointer-types]
163 | mem_open,mem_read,mem_seek,mem_tell,mem_close);
| ^~~~~~~~
| |
| int (*)(void *, long int, int)
In file included from /usr/include/fluidsynth.h:102,
from src/pc/sound/midi.c:4:
/usr/include/fluidsynth/sfont.h:175:40: note: expected ‘fluid_sfloader_callback_seek_t’ {aka ‘int (
)(void , long long int, int)’} but argument is of type ‘int ()(void , long int, int)’
175 | fluid_sfloader_callback_seek_t seek,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
src/pc/sound/midi.c:163:32: warning: passing argument 5 of ‘fluid_sfloader_set_callbacks’ from incompatible pointer type [-Wincompatible-pointer-types]
163 | mem_open,mem_read,mem_seek,mem_tell,mem_close);
| ^~~~~~~~
| |
| long int (*)(void *)
In file included from /usr/include/fluidsynth.h:102,
from src/pc/sound/midi.c:4:
/usr/include/fluidsynth/sfont.h:176:40: note: expected ‘fluid_sfloader_callback_tell_t’ {aka ‘long long int (
)(void )’} but argument is of type ‘long int ()(void *)’
176 | fluid_sfloader_callback_tell_t tell,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
`

And when I run 'c1' in gdb I get this
Thread 1 "c1" received signal SIGSEGV, Segmentation fault.
0x566313fb in mem_read (buf=0xffffcc8c, count=8, handle=0x0) at src/pc/sound/midi.c:64
`64 memcpy(buf, stream->p, count);

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.