Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTL: Music is not correct #1

Closed
ptitSeb opened this issue Mar 2, 2019 · 7 comments
Closed

FTL: Music is not correct #1

ptitSeb opened this issue Mar 2, 2019 · 7 comments

Comments

@ptitSeb
Copy link
Owner

ptitSeb commented Mar 2, 2019

While the game loads fine (but after a long time), the music is not playing correctly. Difficult to say if it's only the music or if sounds are also affected.
box86_14

@rajdakin
Copy link
Contributor

rajdakin commented Mar 2, 2019

On Linux Mint 19.1 using kernel 4.15.0-45 (64 bits), FTL runs with sound when using the native x86 version, but when using box86 (55e0e55) here is what is printed:

$ BOX86_LD_LIBRARY_PATH=x86/lib ~/Sources/Git/box86/build/box86 x86/bin/FTL
BOX86_LD_LIBRARY_PATH: x86/lib/
Using default BOX86_PATH: ./:bin/
Counted 56 Env var
Looking for x86/bin/FTL
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using emulated /usr/lib/i386-linux-gnu/libstdc++.so.6
Using emulated /lib/i386-linux-gnu/libgcc_s.so.1
Error: Symbol R_386_JMP_SLOT not found, cannot apply _ZGTtnaj @0xf7ac7198 (0x6b4d6)
Error: Symbol R_386_JMP_SLOT not found, cannot apply _ZGTtdlPv @0xf7ac7474 (0x6c046)
Using emulated x86/lib/libbassmix.so
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_GetVersion @0xf7924eec (0x114a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_GetConfigPtr @0xf7924ef0 (0x115a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_MusicFree @0xf7924ef4 (0x116a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelRemoveSync @0xf7924f04 (0x11aa)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_StreamCreate @0xf7924f0c (0x11ca)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_GetDevice @0xf7924f20 (0x121a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelIsActive @0xf7924f34 (0x126a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelSetAttribute @0xf7924f40 (0x129a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_GetInfo @0xf7924f48 (0x12ba)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_StreamFree @0xf7924f50 (0x12da)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetData @0xf7924f54 (0x12ea)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelUpdate @0xf7924f60 (0x131a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetAttribute @0xf7924f64 (0x132a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ErrorGetCode @0xf7924f68 (0x133a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelSetPosition @0xf7924f6c (0x134a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetInfo @0xf7924f74 (0x136a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetLevel @0xf7924f78 (0x137a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetLength @0xf7924f7c (0x138a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_GetConfig @0xf7924f80 (0x139a)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelSeconds2Bytes @0xf7924f84 (0x13aa)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelSetSync @0xf7924f88 (0x13ba)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_SetDevice @0xf7924f8c (0x13ca)
Error: Symbol R_386_JMP_SLOT not found, cannot apply BASS_ChannelGetDevice @0xf7924f9c (0x140a)
Using emulated x86/lib/libbass.so
Using native(wrapped) libdl.so.2
Using emulated x86/lib/libILUT.so.1
Using emulated x86/lib/libpng12.so.0
Using native(wrapped) libz.so.1
Using emulated x86/lib/libIL.so.1
Using emulated x86/lib/libILU.so.1
Using native(wrapped) libGL.so.1
Using native(wrapped) libGLU.so.1
Using emulated x86/lib/libfreetype.so.6
Using native(wrapped) libSDL-1.2.so.0
Segmentation fault

@rajdakin
Copy link
Contributor

rajdakin commented Mar 3, 2019

FTL now runs fine using box86 (f439a40) without any sound problem, even though the loading phase is way slower than on native run.

@ptitSeb
Copy link
Owner Author

ptitSeb commented Mar 3, 2019

@rajdakin : only version 1.5.13 (probably all prior to 1.6.1) sound fine I guess. The newer verison, using SIL, are still sounding badly I assume.

@rajdakin
Copy link
Contributor

rajdakin commented Mar 3, 2019

Here is the output for version 1.6.1:

Using default BOX86_LD_LIBRARY_PATH: ./:lib/
Using default BOX86_PATH: ./:bin/
Counted 56 Env var
Looking for ./FTL.x86
Using native(wrapped) libGL.so.1
Using native(wrapped) libX11.so.6
Using native(wrapped) libasound.so.2
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Error: Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0x85e51c8 (0x804e736)
Error: Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0x85e53f4 (0x804efe6)
Warning, Ignoring sigaction(0x01, 0xf7bcf014, (nil))
Warning, Ignoring sigaction(0x02, 0xf7bcf014, (nil))
Warning, Ignoring sigaction(0x03, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x04, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x05, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x06, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x07, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x08, 0xf7bcf0a0, (nil))
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring sigaction(0x0B, 0xf7bcf0a0, (nil))
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring sigaction(0x0F, 0xf7bcf014, (nil))
Warning, Ignoring sigaction(0x10, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x18, 0xf7bcf0a0, (nil))
Warning, Ignoring sigaction(0x19, 0xf7bcf0a0, (nil))
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring signal(0x01, 0xf7cc73a7)
Warning, Ignoring sigaction(0x1F, 0xf7bcf0a0, (nil))
Using native(wrapped) libXi.so.6
Using native(wrapped) libXinerama.so.1
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXxf86vm.so.1
lib/SIL/src/sysdep/posix/time.c:82(sys_time_init): Using CLOCK_MONOTONIC as time source
Version: 1.6.9
Loading settings
Initializing Crash Catcher...
Warning, Ignoring sigaction(0x0B, 0xf7bcba00, (nil))
Starting up
Loading text
Initializing Video
Video: 1280x720, windowed
Warning, no wrapper for glDebugMessageCallback
Warning, no wrapper for glDebugMessageCallbackARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:418(dyngl_init): Warning: Failed to get address of required function glDebugMessageCallback
Warning, no wrapper for glBindTextureUnit
Warning, no wrapper for glBindTextureUnitARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:432(dyngl_init): Warning: Failed to get address of required function glBindTextureUnit
Warning, no wrapper for glCreateFramebuffers
Warning, no wrapper for glCreateFramebuffersARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:436(dyngl_init): Warning: Failed to get address of required function glCreateFramebuffers
Warning, no wrapper for glCreateProgramPipelines
Warning, no wrapper for glCreateProgramPipelinesARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:437(dyngl_init): Warning: Failed to get address of required function glCreateProgramPipelines
Warning, no wrapper for glCreateRenderbuffers
Warning, no wrapper for glCreateRenderbuffersARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:438(dyngl_init): Warning: Failed to get address of required function glCreateRenderbuffers
Warning, no wrapper for glCreateTextures
Warning, no wrapper for glCreateTexturesARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:439(dyngl_init): Warning: Failed to get address of required function glCreateTextures
Warning, no wrapper for glInvalidateNamedFramebufferData
Warning, no wrapper for glInvalidateNamedFramebufferDataARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:443(dyngl_init): Warning: Failed to get address of required function glInvalidateNamedFramebufferData
Segmentation fault

@rajdakin
Copy link
Contributor

rajdakin commented Mar 3, 2019

Ran again using box86 (756a7fd), here is the output:

$ ~/Sources/Git/box86/build/box86 ./FTL.x86 
Using default BOX86_LD_LIBRARY_PATH: ./:lib/
Using default BOX86_PATH: ./:bin/
Counted 56 Env var
Looking for ./FTL.x86
Using native(wrapped) libGL.so.1
Using native(wrapped) libX11.so.6
Using native(wrapped) libasound.so.2
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Error: Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0x85e51c8 (0x804e736)
Error: Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0x85e53f4 (0x804efe6)
Warning, Ignoring sigaction(0x01, 0xf7baf024, (nil))
Warning, Ignoring sigaction(0x02, 0xf7baf024, (nil))
Warning, Ignoring sigaction(0x03, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x04, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x05, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x06, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x07, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x08, 0xf7baf0b0, (nil))
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring sigaction(0x0B, 0xf7baf0b0, (nil))
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring sigaction(0x0F, 0xf7baf024, (nil))
Warning, Ignoring sigaction(0x10, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x18, 0xf7baf0b0, (nil))
Warning, Ignoring sigaction(0x19, 0xf7baf0b0, (nil))
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring signal(0x01, 0xf7ca73a7)
Warning, Ignoring sigaction(0x1F, 0xf7baf0b0, (nil))
Using native(wrapped) libXi.so.6
Using native(wrapped) libXinerama.so.1
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXxf86vm.so.1
lib/SIL/src/sysdep/posix/time.c:82(sys_time_init): Using CLOCK_MONOTONIC as time source
Version: 1.6.9
Loading settings
Initializing Crash Catcher...
Warning, Ignoring sigaction(0x0B, 0xf7baba10, (nil))
Starting up
Loading text
Initializing Video
Video: 1280x720, windowed
Warning, no wrapper for glDebugMessageCallback
Warning, no wrapper for glDebugMessageCallbackARB
lib/SIL/src/sysdep/opengl/dyngl-funcs.h:418(dyngl_init): Warning: Failed to get address of required function glDebugMessageCallback
Segmentation fault

EDIT: it immediately crashes, the loading bar doesn't even show up.

@ptitSeb
Copy link
Owner Author

ptitSeb commented Mar 3, 2019

Crash is probably linked to the missing glDebugMessageCallback function pointer, but properly implementing it is a bit tricky, so will not be done for now.

@ptitSeb
Copy link
Owner Author

ptitSeb commented Mar 21, 2019

Finaly fixed with ba44d9c

@ptitSeb ptitSeb closed this as completed Mar 21, 2019
@ghost ghost mentioned this issue Jul 23, 2020
ptitSeb pushed a commit that referenced this issue Jan 8, 2021
ptitSeb pushed a commit that referenced this issue Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants