I use MaratisEditor from this website -> download,
and everything is ok.
And then I update from svn, and now I can't play sound anymore, from both of MaratisEditor or MaratisPlayer.
I'm using linux Fedora 15.
I used this command from terminal.
#./MaratisEditor
->(then I open my project that contains sound, I test ogg, and mp3)
#GL_VERSION : 2.1 Mesa 7.11.2
#ERROR Load Sound : unable to read /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Examples/test/sounds/spring.ogg file
#ERROR Load Sound : unable to read /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Examples/test/sounds/spring.mp3 file
(but MaratisEditor still open, but without sound when click "play")
so I try open wav format.
#./MaratisEditor
->(open project that contains wav format sound)
#GL_VERSION : 2.1 Mesa 7.11.2
#ERROR Load Sound : non supported format
#ERROR Load Sound : non supported format
it's still produce error.
when I open using MaratisPlayer:
#./MaratisPlayer ../Example/........./test.mproj
(for any format of sound, ogg, mp3, and wav that I test)
#Segmentation fault (core dumped)
then I use valgrind to detect error of MaratisPlayer:
#valgrind ./MaratisPlayer ../Example/......./test.mproj
output wrote:==2316== Memcheck, a memory error detector
==2316== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2316== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2316== Command: ./MaratisPlayer ../Examples/Door/Door.mproj
==2316==
==2316== Use of uninitialised value of size 4
==2316== at 0x80B893F: MWindow::create(char const*, unsigned int, unsigned int, int, bool) (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== by 0x80805BD: main (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316==
==2316== Use of uninitialised value of size 4
==2316== at 0x80B895C: MWindow::create(char const*, unsigned int, unsigned int, int, bool) (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== by 0x80805BD: main (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316==
==2316== Use of uninitialised value of size 4
==2316== at 0x80B8964: MWindow::create(char const*, unsigned int, unsigned int, int, bool) (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== by 0x80805BD: main (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316==
==2316== Invalid read of size 4
==2316== at 0x460CEB0F: XCreateWindow (in /usr/lib/libX11.so.6.3.0)
==2316== by 0x80B89D8: MWindow::create(char const*, unsigned int, unsigned int, int, bool) (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== by 0x80805BD: main (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== Address 0x105 is not stack'd, malloc'd or (recently) free'd
==2316==
==2316==
==2316== Process terminating with default action of signal 11 (SIGSEGV)
==2316== Access not within mapped region at address 0x105
==2316== at 0x460CEB0F: XCreateWindow (in /usr/lib/libX11.so.6.3.0)
==2316== by 0x80B89D8: MWindow::create(char const*, unsigned int, unsigned int, int, bool) (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== by 0x80805BD: main (in /home/jurgel/Downloads/Maratis-3.02cBeta-Linux_x86-32/Bin/MaratisPlayer)
==2316== If you believe this happened as a result of a stack
==2316== overflow in your program's main thread (unlikely but
==2316== possible), you can try to increase the size of the
==2316== main thread stack using the --main-stacksize= flag.
==2316== The main thread stack size used in this run was 8388608.
==2316==
==2316== HEAP SUMMARY:
==2316== in use at exit: 94,933 bytes in 69 blocks
==2316== total heap usage: 151 allocs, 82 frees, 257,876 bytes allocated
==2316==
==2316== LEAK SUMMARY:
==2316== definitely lost: 124 bytes in 1 blocks
==2316== indirectly lost: 0 bytes in 0 blocks
==2316== possibly lost: 48,098 bytes in 22 blocks
==2316== still reachable: 46,711 bytes in 46 blocks
==2316== suppressed: 0 bytes in 0 blocks
==2316== Rerun with --leak-check=full to see details of leaked memory
==2316==
==2316== For counts of detected and suppressed errors, rerun with: -v
==2316== Use --track-origins=yes to see where uninitialised values come from
==2316== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 35 from 8)
Segmentation fault (core dumped)
If I remove sound from my project, MaratisEditor and MaratisPlayer works flawlessly.
here it's some library version on my machine(using ldd)
#ldd MaratisPlayer
output wrote: linux-gate.so.1 => (0x00c76000)
libMEngine.so => ./libMEngine.so (0x00d96000)
libMCore.so => ./libMCore.so (0x00545000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x48979000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x47d3d000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x46095000)
libdl.so.2 => /lib/libdl.so.2 (0x45eb4000)
libopenal.so.1 => /usr/lib/libopenal.so.1 (0x45ec6000)
libsndfile.so.1 => ./libsndfile.so.1 (0x00110000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4638b000)
libm.so.6 => /lib/libm.so.6 (0x45e6c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00171000)
libc.so.6 => /lib/libc.so.6 (0x45cdf000)
libpthread.so.0 => /lib/libpthread.so.0 (0x45e98000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x461f0000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x465d7000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x46372000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x48a03000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x461d0000)
/lib/ld-linux.so.2 (0x45cbd000)
librt.so.1 => /lib/librt.so.1 (0x45ebb000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x4606f000)
I'm using libsndfile.so.1 (link to libsndfile.so) from Maratis too.
Thank you.
*edit
add error info when I use Maratis from Nistur.
I open MaratisEditor from terminal
#./MaratisEditor
(open project that have sound)
#Segmentation fault (core dumped)
I don't know why it's now showing GL version.