Iris2.de
http://iris2.de/forum/

Crash while playing
http://iris2.de/forum/viewtopic.php?f=18&t=1426
Page 1 of 1

Author:  josemdark [ Sat Jul 04, 2009 9:34 pm ]
Post subject:  Crash while playing

Hello

I'm using Ubuntu 9.04, I compiled iris from source, I play normally, and sometimes, the client crash, I'm using 3D mode. It is more frequently when I use the recall spell to go to another place.

The server is runuo, and here is the stacktrace.log:

:: Sat Jul 4 23:28:48 2009

SegFault Detected
lugre/src/lugre_main.cpp:221:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
lugre/src/lugre_scripting.cpp:263:LuaCall
lugre/src/lugre_scripting.cpp:187:PCallWithErrFuncWrapper
lugre/src/lugre_scripting.ogre.cpp:520:l_Client_RenderOneFrame
lugre/src/lugre_game.cpp:37:RenderOneFrame
lugre/src/lugre_ogrewrapper.cpp:630:RenderOneFrame
PrintLuaStackTrace:
LuaStackTrace:

[C]: in function `Client_RenderOneFrame'
../lua/main.lua:643: in function `MainStep'
../lua/main.lua:465: in function <../lua/main.lua:362>

PD: 32 bit system

PD 2: didn't use the bugtracker because I think that I've done something wrong.

Author:  ghoulsblade [ Sun Jul 05, 2009 1:37 am ]
Post subject: 

hard to tell from the stacktrace, it's deep within the renderloop.
i can't think of anything to find the error better in this case, so i can just suggest to update the gfx driver, and maybe try both iris stable and unstable version and take which works best.

you could also try to update your ogre version,
if you installed from package repos, which is outdated, i'd suggest compiling the newest ogre version instead.

Author:  josemdark [ Sun Jul 05, 2009 11:03 am ]
Post subject:  Compilation failed

Well, I downloaded the unstable version (svn co http://iris.schattenkind.net/svn/trunk/) and I tried to compile it (./premakelinux.sh), but i get this error (look at the end)

./josem@josem-laptop:~/iristrunk/trunk$ ./premakelinux.sh
3
>>> disabled asserts (NDEBUG)
sound: fmod
OIS platform: linux (lugre)
AddLugreDeps: fmod in defines: true
searching for /usr/local/lib64//libfmodex.so/.a false false
searching for /usr/local/lib//libfmodex.so/.a true false
custom lib fmodex found at /usr/local/lib/
using /usr/local/include/fmodex as fmodex include path
2.8.9
AddLugreDeps: fmod in defines: true
searching for /usr/local/lib64//libfmodex.so/.a false false
searching for /usr/local/lib//libfmodex.so/.a true false
custom lib fmodex found at /usr/local/lib/
using /usr/local/include/fmodex as fmodex include path
2.8.9
Generating GNU makefiles:
...lugrelua
...lugreois
...md5lib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
==== Building lugreois ====
==== Building md5lib ====
OISForceFeedback.cpp
lopcodes.c
lopcodes.c
ldump.c
ldump.c
ltm.c
ltm.c
lstate.c
lstate.c
print.c
print.c
OISInputManager.cpp
lstrlib.c
lstrlib.c
lundump.c
lundump.c
loadlib.c
loadlib.c
lmathlib.c
lmathlib.c
loslib.c
lgc.c
OISJoyStick.cpp
loslib.c
lgc.c
OISKeyboard.cpp
luac.c
luac.c
OISException.cpp
lcode.c
lcode.c
OISObject.cpp
OISEffect.cpp
lmem.c
ltable.c
lmem.c
ltable.c
LinuxForceFeedback.cpp
EventHelpers.cpp
ldo.c
ldo.c
lbaselib.c
lbaselib.c
lua.c
En el fichero incluído de lugre/lib/lua-5.1.4//src/lua.h:16,
de lugre/lib/lua-5.1.4//src/lua.c:15:
lugre/lib/lua-5.1.4//src/luaconf.h:275:31: aviso: readline/readline.h: No existe el fichero ó directorio
lugre/lib/lua-5.1.4//src/luaconf.h:276:30: aviso: readline/history.h: No existe el fichero ó directorio
lugre/lib/lua-5.1.4//src/lua.c: En la función ‘pushline’:
lugre/lib/lua-5.1.4//src/lua.c:182: aviso: la asignación crea un puntero desde un entero sin una conversión
lua.c
lparser.c
En el fichero incluído de lugre/lib/lua-5.1.4//src/lua.h:16,
de lugre/lib/lua-5.1.4//src/lua.c:15:
lugre/lib/lua-5.1.4//src/luaconf.h:275:31: aviso: readline/readline.h: No existe el fichero ó directorio
lugre/lib/lua-5.1.4//src/luaconf.h:276:30: aviso: readline/history.h: No existe el fichero ó directorio
lugre/lib/lua-5.1.4//src/lua.c: En la función ‘pushline’:
lugre/lib/lua-5.1.4//src/lua.c:182: aviso: la asignación crea un puntero desde un entero sin una conversión
LinuxMouse.cpp
lparser.c
ldblib.c
LinuxInputManager.cpp
ldblib.c
llex.c
llex.c
linit.c
ldebug.c
linit.c
ldebug.c
lzio.c
lzio.c
lobject.c
lobject.c
lstring.c
lstring.c
ltablib.c
ltablib.c
lvm.c
LinuxJoyStickEvents.cpp
lvm.c
liolib.c
lauxlib.c
liolib.c
lauxlib.c
lfunc.c
lapi.c
LinuxKeyboard.cpp
lfunc.c
md5.c
lapi.c
Linking md5lib
Linking lugrelua
==== Building caelumlib ====
SkyDome.cpp
TypeDescriptor.cpp
Linking lugreois
CaelumScriptTranslator.cpp
PointStarfield.cpp
GeometryFactory.cpp
CaelumPlugin.cpp
BrightStarCatalogue.cpp
Sun.cpp
FlatCloudLayer.cpp
CaelumDefaultTypeDescriptorData.cpp
CaelumPrecompiled.cpp
ImageStarfield.cpp
CameraBoundElement.cpp
DepthComposer.cpp
Astronomy.cpp
PrecipitationController.cpp
Moon.cpp
GroundFog.cpp
SkyLight.cpp
CloudSystem.cpp
CaelumSystem.cpp
ImageHelper.cpp
UniversalClock.cpp
Linking caelumlib
==== Building lugrelib ====
lugre_sound_openal.cpp
lugre_meshbuffer_L.cpp
lugre_beam_L.cpp
lugre_main.cpp
lugre_camera_L.cpp
lugre/src/lugre_main.cpp: In function ‘void Lugre::PrintOgreExceptionAndTipps(Ogre::Exception&)’:
lugre/src/lugre_main.cpp:207: aviso: el formato ‘%d’ espera el tipo ‘int’, pero el argumento 2 es de tipo ‘long int’
lugre_RobRenderableOverlay.cpp
lugre_widget.cpp
lugre_caelum_L.cpp
lugre_sound_L.cpp
lugre_meshloader.cpp
lugre_profile.cpp
lugre_game.cpp
lugre_random_L.cpp
lugre_bitmask_L.cpp
lugre_bitmask.cpp
lugre_spritelist_L.cpp
lugre_luaxml.cpp
lugre_timer.cpp
lugre_BorderColourClipPaneOverlay.cpp
lugre_CompassOverlay.cpp
lugre_widget_L.cpp
lugre_scripting.general.cpp
lugre_shell.cpp
lugre_findpath.cpp
lugre_viewport_L.cpp
lugre_rendertexture_L.cpp
lugre_sound.cpp
lugre_gfx3D.cpp
lugre_listener.cpp
lugre_robrenderable.cpp
lugre_paged_geometry_L.cpp
lugre_fifo_L.cpp
lugre_texatlas_L.cpp
lugre/src/lugre_fifo_L.cpp: In static member function ‘static int Lugre::cFIFO_L::ReadFromFile(lua_State*)’:
lugre/src/lugre_fifo_L.cpp:500: aviso: se descarta el valor de devolución de ‘size_t fread(void*, size_t, size_t, FILE*)’, se declaró con el atributo warn_unused_result
lugre_robstring.cpp
lugre_input.cpp
lugre_commondialog.cpp
lugre/src/lugre_commondialog.cpp: In function ‘bool Lugre::FileUniDialog(const std::string&, const std::string&, const std::string&, std::string&, bool)’:
lugre/src/lugre_commondialog.cpp:219: aviso: se descarta el valor de devolución de ‘char* getcwd(char*, size_t)’, se declaró con el atributo warn_unused_result
lugre/src/lugre_commondialog.cpp:221: aviso: se descarta el valor de devolución de ‘int chdir(const char*)’, se declaró con el atributo warn_unused_result
lugre/src/lugre_commondialog.cpp:261: aviso: se descarta el valor de devolución de ‘int chdir(const char*)’, se declaró con el atributo warn_unused_result
lugre_SortedOverlayContainer.cpp
lugre_thread.cpp
tinystr.cpp
lugre_gfx2D.cpp
tinyxmlerror.cpp
lugre_fastbatch.cpp
lugre_sound_openal2.cpp
lugre_ColourClipTextOverlay.cpp
tinyxml.cpp
lugre_spritelist.cpp
lugre_image_L.cpp
lugre_meshbuffer.cpp
lugre_random.cpp
lugre_ode_L.cpp
lugre_material_L.cpp
lugre_meshshape.cpp
lugre_beam.cpp
lugre_scripting.cpp
lugre_md5_L.cpp
lugre_thread_L.cpp
lugre_gfx2D_L.cpp
lugre/src/lugre_thread_L.cpp: In function ‘int Lugre::MyThreadSleepMilliSeconds(int)’:
lugre/src/lugre_thread_L.cpp:148: error: ‘boost::this_thread’ no se ha declarado
lugre/src/lugre_thread_L.cpp:148: error: ‘boost::posix_time’ no se ha declarado
lugre/src/lugre_thread_L.cpp: In member function ‘void Lugre::cLuaThread::LockMutex()’:
lugre/src/lugre_thread_L.cpp:170: error: ‘class boost::mutex’ no tiene un miembro llamado ‘lock’
lugre/src/lugre_thread_L.cpp: In member function ‘void Lugre::cLuaThread::UnLockMutex()’:
lugre/src/lugre_thread_L.cpp:171: error: ‘class boost::mutex’ no tiene un miembro llamado ‘unlock’
lugre/src/lugre_thread_L.cpp: In member function ‘void Lugre::cLuaThread::Interrupt()’:
lugre/src/lugre_thread_L.cpp:172: error: ‘class boost::thread’ no tiene un miembro llamado ‘interrupt’
lugre/src/lugre_thread_L.cpp: In static member function ‘static int Lugre::cLuaThread_L::Threads_GetHardwareConcurrency(lua_State*)’:
lugre/src/lugre_thread_L.cpp:254: error: ‘hardware_concurrency’ no es un miembro de ‘boost::thread’
make[1]: *** [obj/Release/lugre_thread_L.o] Error 1
make[1]: *** Se espera a que terminen otras tareas....
make: *** [lugrelib] Error 2

I have ogre 1.6.2, installed from this repository (http://ppa.launchpad.net/andrewfenn/ppa/ubuntu) (http://ppa.launchpad.net/andrewfenn/ppa/ubuntu) that I found running installdepsubuntu.sh, and I also have nvidia-cg toolkit 2.1, with nvidia-cg toolkit 2.0 the client crashed for other reason. Finally I have nvidia 180 drivers, the lastest drivers in the driver selection window of ubuntu.

Author:  ghoulsblade [ Sun Jul 05, 2009 11:37 am ]
Post subject: 

for "unstable" version, try installing
libboost-thread1.37-dev
should also be in the installdeps.ubuntu.sh

Author:  josemdark [ Sun Jul 05, 2009 1:41 pm ]
Post subject: 

I compiled the unstable version and while playing same error :S

:: Sun Jul 5 15:34:58 2009

SegFault Detected
lugre/src/lugre_main.cpp:221:Lugre_Run
lugre/src/lugre_game.cpp:19:Run
lugre/src/lugre_scripting.cpp:264:LuaCall
lugre/src/lugre_scripting.cpp:188:PCallWithErrFuncWrapper
lugre/src/lugre_scripting.ogre.cpp:581:l_Client_RenderOneFrame
lugre/src/lugre_game.cpp:37:RenderOneFrame
lugre/src/lugre_ogrewrapper.cpp:715:RenderOneFrame
PrintLuaStackTrace:
LuaStackTrace:

[C]: in function `Client_RenderOneFrame'
../lua/main.lua:666: in function `MainStep'
../lua/main.lua:482: in function <../lua/main.lua:371>

Author:  SiENcE [ Mon Jul 06, 2009 10:24 am ]
Post subject: 

I also realized a segfault 2 weeks ago when teleporting from place to place. i thought it where solved.

i think this problem is in since 3036 and later.

@josemdark: maybe you can checkout an earlier version of the svn/trunk (unstable) revision: 3036 and try to build it. if iris2 does'nt crash, the problem is between 3036-today.

Author:  josemdark [ Mon Jul 06, 2009 11:05 am ]
Post subject:  Where can i get...?

Where can I get an earlier version? I looked here (http://iris.schattenkind.net/svn/), but there is only the 3066 revision.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/