kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
485 stars 28 forks source link

r340+ crashes on startup #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download current version of mingw and msys
2. Fetch r340 and compile (just "make" in the klystrack dir)
3. exec: ./bin.debug/klystrack.exe

What is the expected output? What do you see instead?
klystrack window appears, then program crashes

Best I can tell this is for all versions > 339.  r339 works.

Debug says:
[DEBUG] Setting screen mode (scale = 1)
[DEBUG] init
[DEBUG] init done

What version of the product are you using? On what operating system?
r340 on Vista SP2

Please provide any additional information below.

Starting program: C:\msys\1.0\code\klystrack/./bin.debug/klystrack.exe

Program received signal SIGSEGV, Segmentation fault.
0x004099e8 in draw_view (views=0x41c5e0, _event=0x1fe510) at src/view.c:54
54                      memcpy(&mused.console->clip, &view->position,
sizeof(view->position));

backtrace
#0  0x004099e8 in draw_view (views=0x41c5e0, _event=0x1fe510) at src/view.c:54
#1  0x00406ee1 in main (argc=1, argv=0x3c2a78) at src/main.c:316

Original issue reported on code.google.com by samw3office on 29 Oct 2009 at 5:46

GoogleCodeExporter commented 9 years ago
Oh! Here's my gcc version info..

Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java 
--disable-win32-registry
--disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt
--without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)

I should also note that, in the Makefile, I had to change the following to get 
it to
compile:

CFLAGS = $(MACHINE) -ftree-vectorize

to

CFLAGS = $(MACHINE) 

-ftree-vectorize throws an unsupported option error

Original comment by samw3office on 29 Oct 2009 at 5:52

GoogleCodeExporter commented 9 years ago
Hmm, I think it doesn't find the resource file since there's no font loading 
stuff in
the debug output (and so mused.console is NULL). Can you check if the res 
directory
contains anything at all?

Original comment by kometb...@gmail.com on 29 Oct 2009 at 7:17

GoogleCodeExporter commented 9 years ago
Oh, do a svn update since I added some debug messages to the theme loader that 
should
show the theme path.

Original comment by kometb...@gmail.com on 29 Oct 2009 at 7:24

GoogleCodeExporter commented 9 years ago
there is a res dir and it contains this one file:

Sam@SW /code/klystrack/res
$ ls -l
total 34
-rw-r--r-- 1 Sam Administrators 34157 Oct 29 03:22 Default

Original comment by samw3office on 29 Oct 2009 at 7:25

GoogleCodeExporter commented 9 years ago
hmm.. I'm not seeing anything new. I'm at r358 now. Still crashes.

Sam@SW /code/klystrack
$ ./bin.debug/klystrack.exe
[DEBUG] Setting screen mode (scale = 1)
[DEBUG] init
[DEBUG] init done

Sam@SW /code/klystrack
$ ls res
Default

Sam@SW /code/klystrack
$

Original comment by samw3office on 29 Oct 2009 at 7:38

GoogleCodeExporter commented 9 years ago
Ok, try the latest commit. I think the reason was that you didn't have the 
.klystrack
file at all, thus the config loader never applied even the default config, and 
so
never loaded the default theme. Etc. Probably something I wrote half-asleep.

Original comment by kometb...@gmail.com on 29 Oct 2009 at 10:36

GoogleCodeExporter commented 9 years ago
That did it :)  Thanks!

Original comment by samw3office on 29 Oct 2009 at 2:26

GoogleCodeExporter commented 9 years ago
Great :)

Original comment by kometb...@gmail.com on 29 Oct 2009 at 5:50