Menu

#4811 NIPPON: Assertion at Dough's House (regression)

Nippon Safes
closed-fixed
peres
7
2010-04-28
2010-03-12
No

Features compiled in: Vorbis FLAC MP3 RGB zLib

When Dough is holding the letter from the mailbox to read it i get an assertion "label < label.size()" failed: file "engines/parallaction/graphics.cpp", line 565
No save position due to bug item #2969234

Nippon Safes Inc. (Multi-lingual/Amiga)

Amiga OS4
gcc (GCC) 4.2.4 (adtools build 20090118)

Discussion

  • Jordi Vilalta Prat

    • assigned_to: nobody --> peres001
     
  • Anonymous

    Anonymous - 2010-03-30

    Open Mailbox, take letter, crash :-)

     
  • Anonymous

    Anonymous - 2010-03-30

    The very same happens when Donna is holding the Suzy Yong poster inside "Lucky Look"

     
  • Anonymous

    Anonymous - 2010-03-30

    Walk inside "Lucky Look" and wave around the poster

     
  • Willem Jan Palenstijn

    The label rendered for the text "examine the poster"' is freed when entering "Lucky Look" (in changeLocation, even two or three times). In fact all inventory labels are destroyed when changing locations, but it only triggers asserts when you have more inventory items than there are labels in the new room. (Since the label IDs are restarted at 0.)

     
  • kirben

    kirben - 2010-04-03
    • summary: NIPPON: Assertion at Dough's House --> NIPPON: Assertion at Dough's House (regression)
     
  • kirben

    kirben - 2010-04-03

    This is another regression, which was specifically caused by revision 32873.

     
  • kirben

    kirben - 2010-04-03
    • priority: 5 --> 7
     
  • peres

    peres - 2010-04-03

    A rough solution to the problem

     
  • peres

    peres - 2010-04-03

    I attached a patch to fix the issue, by letting the zones to whom the label belongs to manage their lifecycle.

    I tried both the attached savegames and I got no crashes, so at least the bug is patched. What I could not do is checking for memory leaks, that are likely to be.

     
  • Willem Jan Palenstijn

    Nice work. This fixes the crashes for me too.

    Looking over the patch, I think it would leak the ad-hoc created labels for things like the test result screen. (Or at least I do not see where the labels created there are freed.)

    A quick valgrind session shows label leaks on the language screen.

     
  • Max Horn

    Max Horn - 2010-04-21

    What is the status of this item?

     
  • peres

    peres - 2010-04-27

    I committed an enhanced version of the patch on r48811. I could not perform any leak checking with valgrind, and won't be able until I go back home in 10 days, so I did not backport it to the release branch.

     
  • peres

    peres - 2010-04-28

    This bug has been fixed in revision 48811 and 48827. The patch has been backported to the release branch of version 1.1.1 in r48828. The leaks have been plugged, except for the labels allocated by _c_testResults, which is invoked at most once per run.

    Should this be closed or just priority lowered?

     
  • Max Horn

    Max Horn - 2010-04-28
    • status: open --> closed-fixed
     
  • Willem Jan Palenstijn

    r48837 fixes the memory leaks.

     
  • Willem Jan Palenstijn

    • status: closed-fixed --> closed
     
  • Willem Jan Palenstijn

    • status: closed --> closed-fixed