SourceForge has been redesigned. Learn more.
Close

#58 Resizing screen crashes application

closed-fixed
None
5
2008-09-09
2007-10-28
No

When the XCurses application screen is resized by dragging with the mouse, the application crashes.
Can be tested with testcurs or worm.

This happens with the code in CVS.

What happens is the values of LINES and COLS get set to -1.

Discussion

  • William McBrine

    William McBrine - 2007-10-28
    • status: open --> pending-fixed
     
  • William McBrine

    William McBrine - 2007-10-28

    Logged In: YES
    user_id=27933
    Originator: NO

    Interesting bug... it's not actually anything to do with resizing per se; rather, certain sizes cause a crash when it passes through them. On my system, it happened at 23 or 34 lines. (You can see that it's not a resizing issue by setting the line size via resources.)

    The cause was a bogus calculation of the size of xc_atrtab in pdcx11.h -- "PDC_COLOR_PAIRS * 2". It should be twice that (really, "PDC_COLOR_PAIRS * 2 * sizeof(short)"). I screwed this up when I moved the pdc_atrtab stuff to the platform-specific side in 3.3.

    Fixed in CVS.

     
  • Mark Hessling

    Mark Hessling - 2007-10-29

    Logged In: YES
    user_id=86185
    Originator: YES

    Confirmed fixed. Thanks.

     
  • Mark Hessling

    Mark Hessling - 2007-10-29
    • status: pending-fixed --> open-fixed
     
  • Mark Hessling

    Mark Hessling - 2007-10-29

    Logged In: YES
    user_id=86185
    Originator: YES

    Oops status got changed to Open; setting it back to Pending.

     
  • Mark Hessling

    Mark Hessling - 2007-10-29
    • status: open-fixed --> pending-fixed
     
  • William McBrine

    William McBrine - 2008-09-09
    • status: pending-fixed --> closed-fixed