Originally posted by Miya
Here are the crashes in walktest:
When walktest is run with -relight option
#0 0x0f5f8064 in csFlags::Get (this=0x0) at ./include/csutil/flags.h:85
...
Here visobj_wrap->mesh->GetFlags () in fustvis.cpp:1110 returns NULL
The second crash occurs when run without any options. Here is the backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xffffffff
#0 0x0f5c0804 in csRef::operator= (this=0xf4de3e0, newobj=0xffffffff) at ./include/csutil/ref.h:234
...
Here mesh->GetShadowCaster () in fustvis.cpp:256 returns 0xffffffff, causing csRef::operator= to crash.
i\'m new to CS, so i don\'t know if this has already been dealt with, but here is my $0.02
i actually got the opposite behavior, at least in that i got the 0xffffffff from GetShadowCaster() when i did the --relight option.
drugeing around with gdb, i found that the reason GetShadowCaster() was returning 0xffffffff is that it was really calling RemoveObj() (or something like that--doing this from memory), which called .find() on its list of Children, which returned csArrayItemNotFound which is basically -1.
the fact that the wrong method is being called smells like a complier problem.
so, i installed the latest XCode preview release with gcc 4.01 and it works!
any other experiences?
hal