[Scummvm-devel] Broken Sword 2 problem
yotam barnoy
yotambarnoy at gmail.com
Thu Aug 26 10:27:03 CEST 2010
I'm experiencing a very strange bug in BS2 on the PSP. I get an
exception when starting from the beginning, and then skipping the
movies. If I restore, it works fine.
I tried to trace the problem, but it's very difficult. What I got to
is that in logic.cpp line 135, script/SIZE is 0. This causes the
system to go nuts.
However, I can't trace the source of the problem since putting a
printf on 'script' right before there causes the problem to go away!
This is very bad as it means that the problem is one of a memory write
into an improper place or a timing issue, both of which are very
difficult to track.
Can someone please run valgrind on Broken Sword 2 and see if they find
anything? I'm trying to debug using assembly dumps but it seems the
problem is too complex to corner that way.
I thought the problem was related to my recent switch to the new read
streams, but I can't find anything that would cause it, and it's quite
possible that the new streams simply created the 'perfect storm'.
Thanks
Yotam
More information about the Scummvm-devel
mailing list