[Ohrrpgce] crash/lockup/blackout when entering battle

TeeEmCee teeemcee at gmail.com
Thu May 19 06:14:56 PDT 2005


I've figured that out: It's because me and Mike are compiling with
QB7.1, and you're using 4.5. (Unrelated: for some strange reason, as I
tested it right now, I can compile with QB 4.5 again. Wait- sub2.bas
was split, and maybe we did something with game.bas at some point?) It
doesn't occur when compiled with QB4.5, and also, I notice 4.5 saves
about 5 kb of memory due to smaller executable :P

Anyway, it seemed that it would only crash on exit if I first fought a
battle. I'm about 90% sure of this. I need to increase the stack
roughly 250 bytes to get battles to work. That seems alot. If I
increase stack by another 50 bytes, the crash on exit goes away, you
were right.

Raekuul, though it's probably not needed anymore, Mike's WIP page is
at http://ohr.finalfantasyq.com/index.php?section=13 I plan to create
the pages for the battleless build after quaternion.

TMC

On 5/19/05, Bob the Hamster <Bob at hamsterrepublic.com> wrote:
> Ah. interesting. I tested on my Windows 98 box at home, and was unable
> to reproduce any crash. I haven't been able to test on a Windows XP box
> yet. More tests from other people would be helpful.
> 
> The stack thing is an excellent guess. I have seen strange errors like
> that in the past, and fixed them by increasing the stack. As for the
> crash on exit, see what happens if you increase the stack even more.
> 
> As soon as I can reproduce this error myself, I will step backwards
> through revisions until I find the one that introduced this error. Then
> I can review it in detail to figure out if this is a coding-bug or a
> bloat problem.
> 
> ---
> Bob the Hamster
> 
> On Thu, May 19, 2005 at 01:14:25AM +1200, TeeEmCee wrote:
> > > I just tested the latest build in DosBox on my Mac, and the battles work
> > > just fine. Do you have any changes in your source tree that aren't
> > > present in the main tree?
> >
> > Not really, but to be sure, I had tested Mike's build. I just had
> > someone else check it using Mike's version, and it did indeed crash.
> > Suspicious, I tried DOSBOX, but that didn't work either.
> >
> > Tracking the problem, I found that it hangs on any GOSUB call in
> > battle() - it never actually gets to the GOSUB code. I suspected a
> > stack overflow (due to new features, an extra variable here and
> > there?), increased the size of the stack a few hunderd bytes (far too
> > much, I suppose? I didn't experiment), and now everything works -
> > until you try to quit game.exe, then it appears to quit normally but
> > leads to a black screen with a blinking cursor. A result of increasing
> > the stack?
> >
> > TMC
> >
> >
> > On 5/18/05, Bob the Hamster <Bob at hamsterrepublic.com> wrote:
> > > On Tue, May 17, 2005 at 08:12:32AM -0700, Bob the Hamster wrote:
> > > > On Tue, May 17, 2005 at 12:38:07PM +1200, TeeEmCee wrote:
> > > > > I'm running Win XP, and thus have 618kb of free memory.
> > > > >
> > > > > The screen simply fades out, and crashes in whichever way it chooses to.
> > > >
> > > > Okay, well, it's definitely not a memory problem then. I still haven't
> > > > gotten a chance to check this at home yet.
> > >
> > > I just tested the latest build in DosBox on my Mac, and the battles work
> > > just fine. Do you have any changes in your source tree that aren't
> > > present in the main tree?
> > >
> > > ---
> > > Bob the Hamster
> > > _______________________________________________
> > > Ohrrpgce-motherhamster.org mailing list
> > > ohrrpgce at lists.motherhamster.org
> > > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
> > >
> > _______________________________________________
> > Ohrrpgce-motherhamster.org mailing list
> > ohrrpgce at lists.motherhamster.org
> > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
> _______________________________________________
> Ohrrpgce-motherhamster.org mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>


More information about the Ohrrpgce-motherhamster.org mailing list