notaz / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
290 stars 165 forks source link

Crash on startup (Debian Sid) #45

Closed kwyxz closed 7 years ago

kwyxz commented 7 years ago

Hello,

Trying to reproduce a bug I encountered with lr-picodrive from upstream, I was building the standalone emulator on Linux from git. The build goes well, but the resulting binary crashes on startup:

kwyxz:picodrive/ (master) $ ./PicoDrive                                                                                          [9:18:48]
plat_sdl: using 3840x1200 as fullscreen resolution
plat_sdl: overlay: fmt 59565955, planes: 1, pitch: 1280, hw: 1
input: new device #0 "sdl:keys"
input: new device #1 "sdl:Microsoft X-Box 360 pad"
input: async-only devices detected..
# drv probed binds name
0   0      y     y sdl:keys
1   0      y     y sdl:Microsoft X-Box 360 pad
using sdl audio output driver
libpng warning: iCCP: bad parameters to zlib
libpng error: bad parameters to zlib
[1]    6532 abort      ./PicoDrive

kwyxz:picodrive/ (master) $ ./PicoDrive --help                                                                                   [9:18:51]
plat_sdl: using 3840x1200 as fullscreen resolution
plat_sdl: overlay: fmt 59565955, planes: 1, pitch: 1280, hw: 1
input: new device #0 "sdl:keys"
input: new device #1 "sdl:Microsoft X-Box 360 pad"
input: async-only devices detected..
# drv probed binds name
0   0      y     y sdl:keys
1   0      y     y sdl:Microsoft X-Box 360 pad
using sdl audio output driver
libpng warning: iCCP: bad parameters to zlib
libpng error: bad parameters to zlib
[1]    6641 abort      ./PicoDrive --help

A quick Googling shows that it could be related to a problem between the system libpng and the provided zlib, but that's as far as it goes. Any idea what to do next? I also found an old reference to a trigger (but in the libretro Makefile, not the standalone one) to disable using the provided zlib but it's not there anymore anyway (deprecated?)

For information, currently installed zlib and libpng and the result of ./configure :

kwyxz:~/ $ dpkg -l | grep -e libpng -e zlib                                                                                      [9:21:41]
ii  libpng-dev:amd64                      1.6.28-1                             amd64        PNG library - development (version 1.6)
ii  libpng16-16:amd64                     1.6.28-1                             amd64        PNG library - runtime (version 1.6)
ii  libpng16-16:i386                      1.6.28-1                             i386         PNG library - runtime (version 1.6)
ii  zlib1g:amd64                          1:1.2.8.dfsg-5                       amd64        compression library - runtime
ii  zlib1g:i386                           1:1.2.8.dfsg-5                       i386         compression library - runtime
ii  zlib1g-dev:amd64                      1:1.2.8.dfsg-5                       amd64        compression library - development

kwyxz:picodrive/ (master) $ ./configure                                                                                          [9:23:11]
architecture        x86_64
platform            generic
sound drivers        oss alsa sdl
C compiler          gcc
C compiler flags     -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result
libraries           -L/usr/lib/x86_64-linux-gnu -lSDL -lasound -ldl -lpng  -lm
linker flags        
libavcodec (mp3)    yes

Thanks for your help!

kwyxz commented 7 years ago

Thank you, commit 325ee16 fixed the issue. Now trying to reproduce the problem I was having with lr-picodrive :-)