[sldev] OpenJPEG breakage and debugging
Callum Lerwick
seg at haxxed.com
Tue Apr 17 11:22:46 PDT 2007
So, I rebased all my patches on top of the latest OpenJPEG SVN trunk.
But I discovered that texture baking seems to have broken. Turns out its
not my fault, using the stock snapshot, its still broken. Unfortunately,
for some reason backtraces are broken in gdb. This is what I get:
2007-04-17T18:06:45Z INFO: forceBakeAllTextures: TAT: forced full rebake.
2007-04-17T18:06:45Z INFO: readBackAndUpload: Baked eyes
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1208174896 (LWP 4560)]
0x002fae71 in pi_initialise_encode () at llcommon/llerror.h:146
146 { return mCached ? mShouldLog : Log::shouldLog(*this); }
(gdb) bt
#0 0x002fae71 in pi_initialise_encode () at llcommon/llerror.h:146
#1 0x002f4ccb in j2k_calculate_tp () at llcommon/llerror.h:146
#2 0x002f5377 in j2k_encode () at llcommon/llerror.h:146
#3 0x002f8e20 in opj_encode () at llcommon/llerror.h:146
#4 0x09161821 in LLImageJ2COJ::encodeImpl (this=0x0, base=@0xb200c20,
raw_image=@0xb23ff60, comment_text=0x0, encode_time=0)
at i386-linux-client-release/llimagej2coj/llimagej2coj.cpp:303
#5 0x00000000 in ?? ()
(gdb)
Once inside a library, it seems to think everything is
llcommon/llerror.h:146. Is this something slviewer is doing, or is gdb
broken, or what? Note that I've tried to make sure slviewer's own crash
handling is disabled, but I'm not sure that I got it all:
--- linden.orig/indra/newview/viewer.cpp 2007-04-03 10:41:04.000000000 -0500
+++ linden.patched/indra/newview/viewer.cpp 2007-04-12 03:48:38.000000000 -0500
@@ -99,7 +99,7 @@
#endif // !LL_WINDOWS
// Support for sending crash reports from the viewer?
-//#define LL_SEND_CRASH_REPORTS 0
+#define LL_SEND_CRASH_REPORTS 0
#include "viewer.h"
--- linden.orig/indra/newview/viewer.cpp 2007-04-03 10:41:04.000000000 -0500
+++ linden.patched/indra/newview/viewer.cpp 2007-04-10 16:06:50.000000000 -0500
@@ -76,7 +76,7 @@
#if LL_LINUX
# include <dlfcn.h> // RTLD_LAZY
# include <execinfo.h> // backtrace - glibc only
- #define LL_ELFBIN 1
+ #undef LL_ELFBIN
# if LL_ELFBIN
# include <cxxabi.h> // for symbol demangling
# include "ELFIO.h" // for better backtraces
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070417/20ea7158/attachment.pgp
More information about the SLDev
mailing list