Jump to content
Eternal Lands Official Forums
Beaverhunter

Current CVS errors

Recommended Posts

client crash trying to enter missile mode (ctrl-click)

 

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000002c
[Switching to process 24716 thread 0x466f]
0x0010b783 in get_actor_bone_local_position (in_act=0x185a4200, in_bone_id=37, in_shift=0xb026ed64, out_pos=0xb026ecf0) at missiles.c:93
93			  memcpy(out_pos, CalVector_Get(point), 3*sizeof(float));
(gdb) bt full
#0  0x0010b783 in get_actor_bone_local_position (in_act=0x185a4200, in_bone_id=37, in_shift=0xb026ed64, out_pos=0xb026ecf0) at missiles.c:93
	skel = (class CalSkeleton *) 0x1bd3d470
	bone = (class CalBone *) 0x0
	point = (class CalVector *) 0x2c
#1  0x0010bb79 in get_actor_bone_absolute_position (in_act=0x185a4200, in_bone_id=37, in_shift=0xb026ed64, out_pos=0xb026ed70) at missiles.c:134
	act_rot = {-1, -1.22460635e-16, 0, 1.22460635e-16, -1, 0, 0, 0, 1}
	pos = {1.40129846e-45, 4.90454463e-44, 2.79303886e-36}
#2  0x0010cff4 in fire_arrow (a=0x185a4200, target=0x185a43fc) at missiles.c:382
	mis_id = 1041865114
	origin = {1, 0, 0}
	shift = {0, 0.400000006, 0}
#3  0x0000c1b6 in next_command () at actor_scripts.c:997
	actor_type = 1
	last_command = 52
	k = 0
	range_rotation = 2.80259693e-44
	z_rot = 360
	targeted_z_rot = 1.29033665e-39
	i = 0
	max_queue = 0
#4  0x000e0ddd in my_timer (interval=20, data=0x0) at timers.c:87
	new_time = 815772
	e = {
 type = 24 '\030', 
 active = {
type = 24 '\030', 
gain = 238 'î', 
state = 38 '&'
 }, 
 key = {
type = 24 '\030', 
which = 238 'î', 
state = 38 '&', 
keysym = {
  scancode = 3 '\003', 
  sym = 348161264, 
  mod = KMOD_NONE, 
  unicode = 29910
}
 }, 
 motion = {
type = 24 '\030', 
which = 238 'î', 
state = 38 '&', 
x = 3, 
y = 0, 
xrel = -31504, 
yrel = 5312
 }, 
 button = {
type = 24 '\030', 
which = 238 'î', 
button = 38 '&', 
state = 176 '°', 
x = 3, 
y = 0
 }, 
 jaxis = {
type = 24 '\030', 
which = 238 'î', 
axis = 38 '&', 
value = 3
 }, 
 jball = {
type = 24 '\030', 
which = 238 'î', 
ball = 38 '&', 
xrel = 3, 
yrel = 0
 }, 
 jhat = {
type = 24 '\030', 
which = 238 'î', 
hat = 38 '&', 
value = 176 '°'
 }, 
 jbutton = {
type = 24 '\030', 
which = 238 'î', 
button = 38 '&', 
state = 176 '°'
 }, 
 resize = {
type = 24 '\030', 
w = 3, 
h = 348161264
 }, 
 expose = {
type = 24 '\030'
 }, 
 quit = {
type = 24 '\030'
 }, 
 user = {
type = 24 '\030', 
code = 3, 
data1 = 0x14c084f0, 
data2 = 0x0
 }, 
 syswm = {
type = 24 '\030', 
msg = 0x3
 }
}
#5  0x30008d44 in SDL_ThreadedTimerCheck ()
No symbol table info available.
#6  0x30008c66 in RunTimer ()
No symbol table info available.
#7  0x3002d641 in SDL_RunThread ()
No symbol table info available.
#8  0x3002f1e0 in RunThread ()
No symbol table info available.
#9  0x90024227 in _pthread_body ()
No symbol table info available.

Share this post


Link to post
Share on other sites

client crash trying to enter missile mode (ctrl-click)

It's normal cause I'm using new models and the bone I'm trying to access doesn't exit in the old models. But I'll add a test in order to use another bone in case the one I want doesn't exist...

Share this post


Link to post
Share on other sites

Client crash on startup [laptop with Intel 915GM card, Slackware 11.0; cvs updated right before posting]

 

On my system EL can't use the framebuffer (get the "Need newer driver" message), so maybe the current code is trying to work on framebuffer without checking if it's actually available?

 

Starting program: /opt/games/elc/el.x86.linux.cvs.bin
[Thread debugging using libthread_db enabled]
[New Thread -1217296032 (LWP 5570)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217296032 (LWP 5570)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x08094c79 in make_depth_framebuffer (width=512, height=512, fbo=0x8374c84,
fbo_texture=0x8374c80) at framebuffer.c:422
#2  0x08094e7e in change_depth_framebuffer_size (width=512, height=512,
fbo=0x8374c84, fbo_texture=0x8374c80) at framebuffer.c:460
#3  0x080dc9d9 in change_shadow_framebuffer_size () at shadows.c:74
#4  0x080dc9ab in make_shadow_framebuffer () at shadows.c:69
#5  0x080837a5 in change_shadow_map_size (pointer=0x8371378, value=1)
at elconfig.c:726
#6  0x0808435d in check_option_var (name=0x81c1020 "shadow_map_size")
at elconfig.c:1192
#7  0x08082f0f in build_fbos () at elconfig.c:241
#8  0x08082eb5 in update_fbos () at elconfig.c:248
#9  0x08084187 in change_frame_buffer (fb=0x8373444) at elconfig.c:1065
#10 0x080843c1 in check_option_var (name=0x81c114c "use_frame_buffer")
at elconfig.c:1199
#11 0x08084497 in check_options () at elconfig.c:1221
#12 0x080a4107 in init_stuff () at init.c:783
#13 0x080ba93b in main (argc=1, argv=0xbf9a0524) at main.c:305

 

Full backtrace:

Starting program: /opt/games/elc/el.x86.linux.cvs.bin
[Thread debugging using libthread_db enabled]
[New Thread -1217586848 (LWP 5584)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217586848 (LWP 5584)]
0x00000000 in ?? ()
(gdb) bt full
#0  0x00000000 in ?? ()
No symbol table info available.
#1  0x08094c79 in make_depth_framebuffer (width=512, height=512, fbo=0x8374c84, fbo_texture=0x8374c80) at framebuffer.c:422
	depth_bits = -1077189136
	depth_format = -1213691840
#2  0x08094e7e in change_depth_framebuffer_size (width=512, height=512, fbo=0x8374c84, fbo_texture=0x8374c80)
at framebuffer.c:460
No locals.
#3  0x080dc9d9 in change_shadow_framebuffer_size () at shadows.c:74
No locals.
#4  0x080dc9ab in make_shadow_framebuffer () at shadows.c:69
No locals.
#5  0x080837a5 in change_shadow_map_size (pointer=0x8371378, value=1) at elconfig.c:726
	array = {256, 512, 768, 1024, 1280, 1536, 1792, 2048, 3072, 4096}
	index = 1
	size = 512
	i = -1215804260
	max_size = 720
	error = 0
	error_str = "êð\233·@\210š·\210œq\fôƯ·\000\000\000\000\214iË¿\030iË¿\tT¯·\210œq\f\000\000\000\000\000\000\000
\000ÓS¯·\001\000\000\0004¿Ç\vhfË¿áÙ\a\b4¿Ç\v\000\000\200?\212\003\000\000\000\000\000\000ð[O\f\001
\000\000\000\210fË¿Ï\022\017\bTñ\233·üoš·\220fË¿>Ó¡·\201ã\233·üoš·žÜt\fš\210š·\234fË¿ñ=\234·\202\236§·
\202\236§·Tñ\233·PÂq\f@\210š·8\000\000\000@\210š·\020gË¿\004è\233·\210\210š·À\000\000\000x\210š·
\000
\000\000\000ÈgË¿Tñ\233·x\210š·"...
#6  0x0808435d in check_option_var (name=0x81c1020 "shadow_map_size") at elconfig.c:1192
	i = 3
	value_i = 1
	value_f = -2.00793074e-05
	value_s = 0xf2 <Address 0xf2 out of bounds>
#7  0x08082f0f in build_fbos () at elconfig.c:241
No locals.
#8  0x08082eb5 in update_fbos () at elconfig.c:248
No locals.
#9  0x08084187 in change_frame_buffer (fb=0x8373444) at elconfig.c:1065
No locals.
#10 0x080843c1 in check_option_var (name=0x81c114c "use_frame_buffer") at elconfig.c:1199
	i = 85
	value_i = 0
	value_f = 3
	value_s = 0x3ee66666 <Address 0x3ee66666 out of bounds>
#11 0x08084497 in check_options () at elconfig.c:1221
No locals.
#12 0x080a4107 in init_stuff () at init.c:783
	seed = 136066373
	file_name = "\234nË¿T\000\000\000šnË¿Èh\017\b\027^Û\vû\000\000\000ŽÁ\034\b\204:\034\bÀ]Û\vDpË¿ÈnË¿Ùj\017\b@ùÙ
\ví:\034\bä]Û\vÙ:\034\b\204:\034\bÐoË¿\030oË¿{N\b\bí:\034\bä]Û\vÙ:\034\b\204:\034\bÐ\000\000\000\t\000
\000\000\177\017\177\003\004\000\000\000ToË¿PHÛ\vP\000\000\000\200CÛ\v@KÛ\v\000\000\000\000a\000
\000\000\214\0237\b\214\0237\büoš·\230oË¿\017p\b\b\t\000\000\000í:\034\bé:\034\b\214\0237\bö+\b\b\000
\000\000\000Ù:\034\b\204:\034\b\005\000\000\000ï+\b\b"...
	i = 84
	config_location = "ŽÁ\034\b\234nË¿XnË¿Öw\233·lmË¿ŽÁ\034\b nË¿\027^Û\v\000\000\000\000\fnË¿lmË¿\001\200­û\027^Û\v\027^Û\v\027^Û\v\027^Û\vk^Û\v\021_Û\v
\027^Û\v\021_Û\v", '\0' <repeats 20 times>, "\001\000\000\000\000\000\000\000ômË¿\000\000\000·\000\000\000\000ø\211š·\000\000\b\000\004\000
\000\000Dǧ·ÿÿÿÿž]Û\vx\210š·@\210š·X\000\000\000@\210š·<nË¿Ô\236§·¬`Û\v@nË¿x\210š·@\210š·8\\Û
\v \000\000\000@jš·\000\000\000\000\210\001\000\000(\000\000\000x\210"...
	cfgdir = 0xb7a86ffc "\\­\022"
#13 0x080ba93b in main (argc=1, argv=0xbfcb7044) at main.c:305
No locals.

 

*Edit: added full bt

Edited by Theryndan

Share this post


Link to post
Share on other sites

Client crash on startup [laptop with Intel 915GM card, Slackware 11.0; cvs updated right before posting]

On my system EL can't use the framebuffer (get the "Need newer driver" message), so maybe the current code is trying to work on framebuffer without checking if it's actually available?

Same as above, there's also a workaround for now....

Share this post


Link to post
Share on other sites

client crash trying to enter missile mode (ctrl-click)

As well as getting this crash, I'm getting lots of resync messages and that weird, quick-quick-slow walking you sometime get.

Share this post


Link to post
Share on other sites

client crash trying to enter missile mode (ctrl-click)

As well as getting this crash, I'm getting lots of resync messages and that weird, quick-quick-slow walking you sometime get.

client crash trying to enter missile mode (ctrl-click)

It's normal cause I'm using new models and the bone I'm trying to access doesn't exit in the old models. But I'll add a test in order to use another bone in case the one I want doesn't exist...

 

Maybe models and animations should also be kept in CVS ...

Share this post


Link to post
Share on other sites
As well as getting this crash, I'm getting lots of resync messages and that weird, quick-quick-slow walking you sometime get.
Still the same thing, the animation for the range mode are now defined in another XML file so the client try to launch an animation that doesn't exist. So it's causing resyncs and such problems...

 

Maybe models and animations should also be kept in CVS ...
The models/animations/XML files are still very experimental and all the missiles stuff is not really ready for testing right now.

 

But be patient, it should be testable very soon :P

Share this post


Link to post
Share on other sites

Stack overflow in OS-supplied file 'stat.inl' on windows, line 59 (well, 58's the start of the func, but MSVC++ points at 59).

Visible stacktrace is about a few thousand counts of:

">elc.exe!_stat64i32(const char * _Filename=0x00a74260, _stat64i32 * _Stat=0x0012edb8) Line 59 + 0x9 bytes C

"

 

Direct text search didn't yeild any results, but it seems to be used in basic IO. Unsure if this is a problem with the winapi or with ELC.

Edited by freeone3000

Share this post


Link to post
Share on other sites

">elc.exe!_stat64i32(const char * _Filename=0x00a74260, _stat64i32 * _Stat=0x0012edb8)

 

Direct text search didn't yeild any results, but it seems to be used in basic IO. Unsure if this is a problem with the winapi or with ELC.

 

It's a problem with #define stat _stat in platform.h. The VC runtime library defines _stat as _stat64i32 and the stat function basicly expands as

 

int _stat64i32 (...) {

return _stat64i32(...);

}

 

Just remove the #define stat _stat from platform.h

Share this post


Link to post
Share on other sites

"#define stat" doesn't exist in platform.h, and there's no "#define stat _stat" in the entire codebase, nor "#define stat" if stat is case-sensitive.

See platform.h, line 33. :D

Share this post


Link to post
Share on other sites

Lock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3909

Unlock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3957

Lock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3909

Unlock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3957

esd: no process killed

the settings directory exists

I don't know if those are errors you need to know about or not. THe game runs fine, I get that from the command line where I launch EL.

Share this post


Link to post
Share on other sites

Lock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3909

Unlock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3957

Lock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3909

Unlock error 'Passed a NULL mutex' at file 'sound.c' in funcion 'update_sound' line 3957

esd: no process killed

the settings directory exists

I don't know if those are errors you need to know about or not. THe game runs fine, I get that from the command line where I launch EL.

Are you certain you have the most recent version from CVS? Those lines no longer have mutex manipulation calls, and those errors were reportedly resolved about a week ago.

Share this post


Link to post
Share on other sites

those errors were reportedly resolved about a week ago.

I have to download it again? Sigh. :D What's the link to updated version? I went to http://developer.berlios.de/cvs/?group_id=1256 and saw these dates: xaphier (123/30) (11/7)

vegar (123/1) (11/0)

alvieboy (123/5) (11/0)

rei (123/9) (11/0)

schmurk (123/31) (11/2)

n0nane (123/8) (11/0)

pjbroad (123/39) (11/2)

 

Thanks.

Edited by popeye

Share this post


Link to post
Share on other sites

I have to download it again? Sigh. :D What's the link to updated version?

I'm probably missing the point but you don't have to do the whole download again, just "cvs update" in the elc directory.

Share this post


Link to post
Share on other sites

just "cvs update" in the elc directory.

Thanks, that's what I needed to know. I did the cvs update from elc directory. :D

Share this post


Link to post
Share on other sites

Fresh update of CVS gives me this error:

 

gcc -march=athlon-xp -Wall -Wdeclaration-after-statement -O3 -g -pipe -DLINUX -DELC  -DAFK_FIX  -DALPHA_ACTORS  -DATI_9200_FIX  -DAUTO_UPDATE  -DCLICKABLE_CONTINENT_MAP  -DCLUSTER_INSIDES  -DCOUNTERS  -DCALCULATOR  -DCUSTOM_LOOK  -DCUSTOM_UPDATE
-DCXX_MISC  -DEYE_CANDY  -DFONTS_FIX  -DFUZZY_PATHS  -DIDLE_FIX  -DMASKING  -DMINES  -DMINIMAP  -DNEW_ACTOR_ANIMATION  -DNEW_ACTOR_SCALE  -DNEW_FILE_IO  -DNEW_SOUND
-DNEW_TEX  -DNOTEPAD  -DOGG_VORBIS  -DOPTIONS_I18N  -DPNG_SCREENSHOT  -DPOPUP  -DSFX  -DSIMPLE_LOD  -DSKY_FPV_CURSOR  -DUSE_INLINE  -DUSE_SEND_VIDEO_INFO  -DZLIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -fno-strict-aliasing  -c -o 2d_objects.o 2d_objects.c
In file included from 2d_objects.c:9:
load_gl_extensions.h:521: error: syntax error before "ELglProgramEnvParameters4fvEXT"
load_gl_extensions.h:521: warning: type defaults to `int' in declaration of `ELglProgramEnvParameters4fvEXT'
load_gl_extensions.h:521: warning: data definition has no type or storage class
load_gl_extensions.h:522: error: syntax error before "ELglProgramLocalParameters4fvEXT"
load_gl_extensions.h:522: warning: type defaults to `int' in declaration of `ELglProgramLocalParameters4fvEXT'
load_gl_extensions.h:522: warning: data definition has no type or storage class
make: *** [2d_objects.o] Error 1

Edited by larrystorch

Share this post


Link to post
Share on other sites

The calculator code uses the trunc function which is not available in MSVC.

 

One solution would be a #define in platform.h, in a _MSC_VER section:

 

#define trunc(x) (((x) < 0) ? ceil((x)) : floor((x))) 

 

or creating a source file platform.c with platform specific lowlevel functions

#include <math.h>
#include "platform.h"

#ifdef _MSC_VER
double trunc(const double d)
{
return (d < 0 ? ceil(d) : floor(d));  
}
#endif

 

along with a declaration in platform.h

Share this post


Link to post
Share on other sites

"#define stat" doesn't exist in platform.h, and there's no "#define stat _stat" in the entire codebase, nor "#define stat" if stat is case-sensitive.

See platform.h, line 33. :happy:

Line 33 contains:

  #define snprintf safe_snprintf

my platform.h (in case it's not in synch with CVS, but I just synched it...):

http://rafb.net/p/XsArI849.html

^ This contains no mention of it.

Share this post


Link to post
Share on other sites

my platform.h (in case it's not in synch with CVS, but I just synched it...):

http://rafb.net/p/XsArI849.html

^ This contains no mention of it.

 

Ah, got it. You've most likely used the patch I provided to fix build errors with Visual Studio. This patch removes the stat define.

 

To find the location, try to redefine stat to something else like

#define stat XXX

This should create a compiler error with the location of the previous definition.

Edited by ago

Share this post


Link to post
Share on other sites

The calculator code uses the trunc function which is not available in MSVC.

I don't have MSVC or windows for that matter so I can't test this. So, I've submitted a patch for others to check. Is this function missing on all versions of MSVC?

Share this post


Link to post
Share on other sites

See this link for a simple approach to the missing trunc().

 

quoting:

The best solution to me would be to add "trunc" to AC_CHECK_FUNCS in
configure.in and then add

double
xtrunc (double x)
{
#if defined (HAVE_TRUNC)
 return trunc (x);
#else
 return (((x) < 0) ? ceil((x)) : floor((x)));
#endif
}

 

Of course, we'd use "ifdef WIN32" and "ifdev MSVC" or whatever defines we can.

 

Álvaro

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×