#12 Crash when Saving

open
nobody
None
5
2006-12-20
2006-12-20
Anonymous
No

I've recently discovered many situations where the template editor crashes when I click Save. In some cases the template had an error and I eliminated the bug by fixing the template, but in other cases I have been unable to find an error.

Many of the templates that caused the crash included CASE fields. It seems to occur when CASE fields are attached to certain types of data fields.
Another time it occurs is with lists. In these cases it will crash only if the list has no elements. All the lists are one-based counted lists.

At first I thought it was just the result of an error in the template definition, but then it occurred for templates in which I could not find an error. However, if the template editor would verify the template before opening the resource, some of these crashes would be eliminated.

Discussion

  • Bernard Desgraupes

    Logged In: YES
    user_id=357036
    Originator: NO

    > In some cases the template had an error and I eliminated the bug by fixing the template, but in other cases
    > I have been unable to find an error.

    Is it an error in a template provided by Rezilla or in a private template ? In the former case, could you specify where the errors are found so that I can fix them in the next release.

    > Many of the templates that caused the crash included CASE fields. It seems to occur when CASE fields are
    > attached to certain types of data fields.

    Could you attach an example of such a resource with the offending template ? That would be helpful to debug the problem.

    > Another time it occurs is with lists. In these cases it will crash only if the list has no elements. All
    > the lists are one-based counted lists.

    I'll check how the code behaves when the list is empty. Could you also provide a sample demonstrating the bug ?

    Thanks for reporting,

    Bernard

     
  • Nobody/Anonymous

    Logged In: NO

    Here's a few templates that cause crashes. I opened them in the hex editor and copied the hex. To save space, I also stripped the labels.

    004F434E54004C535443004B54595006313D4B4559314341534506323D4B45593243415345044B4559314B455942005030303305
    313D4353314341534505323D43533243415345004B455945044B4559324B455942005030303305313D4348314341534505323D43
    483243415345004B455945004C5354450048455844
    - The field after the list does not display.
    - If there is an item in the list and you click save, Rezilla crashes
    - Possible source is the P003's followed by CASEs.

    004F434E54004C535443004B54595006313D414141414341534506323D424242424341534506333D434343434341534504414141
    414B45594200445752440044575244004B45594504424242424B4559420044575244004B45594504434343434B45594200503030
    33004B455945004C5354450048455844
    - The field after the list does not display.
    - If there is an item in the list and you click save, Rezilla crashes

    004F434E54004C53544300445752440044575244004457524400424F4F4C00445752440044575244004F434E54004C5354430044
    575244004457524400554259540042424954004242495400424249540042423035004C5354450050535452004C53544500484558
    44
    - This one crashes when the list is empty.
    - I think it may be the BB05 field that is the source of the problem.

    Here's two larger ones.
    00505354520050535452004457524400554259540055425954005542595400554259540055425954005542595400555752440055
    425954004F434E54004C53544300503030330055425954004F434E54004C53544300445752440044575244004C535445004C5354
    45013446434E54004C535443005542595400554259540050535452004C5354450044575244005542595400554259540044575244
    0055425954004F434E54004C535443004457524400424F4F4C00424F4F4C004C5354450042424954004242495400424249540042
    42495400424249540042424954004242495400424249540042424954004242495400424249540042424954004242495400424230
    3300444259540044564452005557524400554259540044575244004457524400554259540048455844
    - This one crashes when any of the lists are empty.

    004F434E54004C5354430050535452004F434E54004C535443005053545200444259540044425954004F434E54004C5354430050
    53545200424F4F4C00544E414D06303D616161614341534506313D626262624341534506323D636363634341534506333D646464
    644341534506343D656565654341534506353D666666664341534506363D676767674341534506373D686868684341534506383D
    696969694341534506393D6A6A6A6A434153450050535452004C535445004C535445004C535445004F434E54004C535443005542
    5954004C535445004F434E54004C5354430050535452004C53544500445644520044575244004442595400444259540044425954
    0044425954004F434E54004C535443005053545200444259540044425954004442595400544E414D06303D616161614341534506
    313D626262624341534506323D636363634341534506333D646464644341534506343D656565654341534506353D666666664341
    534506363D676767674341534506373D686868684341534506383D696969694341534506393D6A6A6A6A43415345005053545200
    4C5354450048455844
    - Another one that crashes only when any of the lists are empty.

    Some of these templates may have an error (I haven't been able to find one). But error or not, this is still a bug that needs fixing.

     
  • Bernard Desgraupes

    Logged In: YES
    user_id=357036
    Originator: NO

    Thanks! I'll look into this

    Bernard

     

Log in to post a comment.