[vw7.1] Error in DataSetView>>displayVisualsOn:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vw7.1] Error in DataSetView>>displayVisualsOn:

Volker Rommel
Hello all

I have a problem with a DataSet.

While changing the width of a column of a dataset an error occurred in DataSetView>>displayVisualsOn:.
On redisplaying the dataset it tries to access the 32nd element of a list with only 31 elements (see stack trace below). How can that be?
Any hints appreciated.

Regards
Volker

==2011/10/17==7:06:47==BEGIN RUNTIME DIAGNOSTIC DUMP

Cause of Dump: Unhandled exception: attempt to index non-existent element
Image Identification: 'Image created 12. August 2011  15:02:08'
Smalltalk Version: 'VisualWorks®, Release 7.1 of 21. März 2003'
RuntimeManager Identification: 'Version 7 '
Object Memory versionId: #[63 41 63 192 71 0 0 0 157 41 58 147]
------------------------------------------------------------
Active Process
------------------------------------------------------------
Initial Context Stack Arguments:
[1] List(Object)>>error:
        Receiver: (id=490) List (... 31 elements ...)
        Arg1: (id=5829) #errAttemptedNonExistentElement >> 'attempt to index non-existent element' << #dialogs
[2] List>>errorSubscriptBounds:
        Receiver: (id=490) List (... 31 elements ...)
        Arg1: (id=32) 32
[3] List>>at:
        Receiver: (id=490) List (... 31 elements ...)
        Arg1: (id=32) 32
[4] DataSetView>>displayVisualsOn:
        Receiver: (id=324) a DataSetView
        Arg1: (id=1797) a ScreenGraphicsContext
[5] DataSetView>>displayOn:
        Receiver: (id=324) a DataSetView
        Arg1: (id=3270) a ScreenGraphicsContext
[6] DataSetScrollWrapper(TranslatingWrapper)>>displayOn:
        Receiver: (id=14868) a DataSetScrollWrapper on: a DataSetView
        Arg1: (id=3270) a ScreenGraphicsContext
[7] BorderedWrapper>>displayOn:
        Receiver: (id=1430) a BorderedWrapper on: a DataSetScrollWrapper on: a DataSetView
        Arg1: (id=3270) a ScreenGraphicsContext
[8] BorderDecorator(CompositePart)>>displayOn:
        Receiver: (id=6769) a BorderDecorator
        Arg1: (id=8242) a ScreenGraphicsContext
[9] BoundedWrapper>>displayOn:
        Receiver: (id=1063) a BoundedWrapper on: a BorderDecorator
        Arg1: (id=8242) a ScreenGraphicsContext
[10] SpecWrapper(Wrapper)>>displayOn:
        Receiver: (id=4929) a SpecWrapper on: a BoundedWrapper on: a BorderDecorator
        Arg1: (id=8242) a ScreenGraphicsContext
[11] SpecWrapper(WidgetWrapper)>>displayOn:
        Receiver: (id=4929) a SpecWrapper on: a BoundedWrapper on: a BorderDecorator
        Arg1: (id=8242) a ScreenGraphicsContext
[12] SubCanvas(CompositePart)>>displayOn:
        Receiver: (id=11741) a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[13] WidgetStateWrapper(Wrapper)>>displayOn:
        Receiver: (id=14687) a WidgetStateWrapper on: a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[14] WidgetStateWrapper>>displayOn:
        Receiver: (id=14687) a WidgetStateWrapper on: a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[15] BorderedWrapper>>displayOn:
        Receiver: (id=11188) a BorderedWrapper on: a WidgetStateWrapper on: a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[16] SpecWrapper(Wrapper)>>displayOn:
        Receiver: (id=3275) a SpecWrapper on: a BorderedWrapper on: a WidgetStateWrapper on: a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[17] SpecWrapper(WidgetWrapper)>>displayOn:
        Receiver: (id=3275) a SpecWrapper on: a BorderedWrapper on: a WidgetStateWrapper on: a SubCanvas
        Arg1: (id=13214) a ScreenGraphicsContext
[18] CompositePart>>displayOn:
        Receiver: (id=7694) a CompositePart
        Arg1: (id=9167) a ScreenGraphicsContext
[19] WindowDisplayPolicy>>displayDamageList:in:
        Receiver: (id=10640) a WindowDisplayPolicy
        Arg1: (id=8247) #(87@94 corner: 325@840)
        Arg2: (id=9720) an ApplicationWindow 2752
[20] ApplicationWindow(ScheduledWindow)>>displayDamageEvent:
        Receiver: (id=9720) an ApplicationWindow 2752
        Arg1: (id=8247) #(87@94 corner: 325@840)
[21] ApplicationWindow(ScheduledWindow)>>checkForEvents
        Receiver: (id=9720) an ApplicationWindow 2752
[23] OrderedCollection>>do:
        Receiver: (id=10826) OrderedCollection (an ApplicationWindow 119063 an ApplicationWindow 44760 an ApplicationWindow 2752 an ApplicationWindow 643 an ApplicationWindow 14)
        Arg1: (id=2174) BlockClosure [] in [] in WindowManager>>repairDamagesExcept:
[25] BlockClosure>>on:do:
        Receiver: (id=9906) BlockClosure [] in WindowManager>>repairDamagesExcept:
        Arg1: (id=12339) ClosedWindowNotification
        Arg2: (id=1800) BlockClosure [] in WindowManager>>repairDamagesExcept:
[26] WindowManager>>repairDamagesExcept:
        Receiver: (id=7965) a WindowManager
        Arg1: (id=1) nil
[27] WindowManager>>repairDamages
        Receiver: (id=7965) a WindowManager
[28] WindowManager>>processNextEvent
        Receiver: (id=7965) a WindowManager
[30] BlockClosure>>on:do:
        Receiver: (id=2727) BlockClosure [] in [] in WindowManager>>newProcess
        Arg1: (id=3873) TerminateException
        Arg2: (id=14325) BlockClosure [] in [] in WindowManager>>newProcess
[32] BlockClosure>>on:do:
        Receiver: (id=5673) BlockClosure [] in WindowManager>>newProcess
        Arg1: (id=3873) TerminateException
        Arg2: (id=7685) BlockClosure [] in [] in Process class>>forBlock:priority:

------------------------------------------------------------
Unhandled Exception:
        class: UnhandledException
        signal: UnhandledException
        errorString: Unhandled exception: attempt to index non-existent element
        parameter: an Error

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vw7.1] Error in DataSetView>>displayVisualsOn:

Steven Kelly
It's a bug in DataSetView>>displayVisualsOn:, fixed in 7.6. Change the main iteration to:

        interval first to: (interval last + 1 min: currentSequence size) do:

Steve

Volker Rommel wrote 18.10.2011 17:34

> While changing the width of a column of a dataset an error occurred in
> DataSetView>>displayVisualsOn:.
> On redisplaying the dataset it tries to access the 32nd element of a
> list with only 31 elements (see stack trace below). How can that be?
> Any hints appreciated.
>
> Regards
> Volker
>
> ==2011/10/17==7:06:47==BEGIN RUNTIME DIAGNOSTIC DUMP
>
> Cause of Dump: Unhandled exception: attempt to index non-existent
> element
> Image Identification: 'Image created 12. August 2011  15:02:08'
> Smalltalk Version: 'VisualWorks®, Release 7.1 of 21. März 2003'
> RuntimeManager Identification: 'Version 7 '
> Object Memory versionId: #[63 41 63 192 71 0 0 0 157 41 58 147]
> ------------------------------------------------------------
> Active Process
> ------------------------------------------------------------
> Initial Context Stack Arguments:
> [1] List(Object)>>error:
> Receiver: (id=490) List (... 31 elements ...)
> Arg1: (id=5829) #errAttemptedNonExistentElement >> 'attempt
> to index non-existent element' << #dialogs
> [2] List>>errorSubscriptBounds:
> Receiver: (id=490) List (... 31 elements ...)
> Arg1: (id=32) 32
> [3] List>>at:
> Receiver: (id=490) List (... 31 elements ...)
> Arg1: (id=32) 32
> [4] DataSetView>>displayVisualsOn:
> Receiver: (id=324) a DataSetView
> Arg1: (id=1797) a ScreenGraphicsContext
> [5] DataSetView>>displayOn:
> Receiver: (id=324) a DataSetView
> Arg1: (id=3270) a ScreenGraphicsContext
> [6] DataSetScrollWrapper(TranslatingWrapper)>>displayOn:
> Receiver: (id=14868) a DataSetScrollWrapper on: a
> DataSetView
> Arg1: (id=3270) a ScreenGraphicsContext
> [7] BorderedWrapper>>displayOn:
> Receiver: (id=1430) a BorderedWrapper on: a
> DataSetScrollWrapper on: a DataSetView
> Arg1: (id=3270) a ScreenGraphicsContext
> [8] BorderDecorator(CompositePart)>>displayOn:
> Receiver: (id=6769) a BorderDecorator
> Arg1: (id=8242) a ScreenGraphicsContext
> [9] BoundedWrapper>>displayOn:
> Receiver: (id=1063) a BoundedWrapper on: a BorderDecorator
> Arg1: (id=8242) a ScreenGraphicsContext
> [10] SpecWrapper(Wrapper)>>displayOn:
> Receiver: (id=4929) a SpecWrapper on: a BoundedWrapper on: a
> BorderDecorator
> Arg1: (id=8242) a ScreenGraphicsContext
> [11] SpecWrapper(WidgetWrapper)>>displayOn:
> Receiver: (id=4929) a SpecWrapper on: a BoundedWrapper on: a
> BorderDecorator
> Arg1: (id=8242) a ScreenGraphicsContext
> [12] SubCanvas(CompositePart)>>displayOn:
> Receiver: (id=11741) a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [13] WidgetStateWrapper(Wrapper)>>displayOn:
> Receiver: (id=14687) a WidgetStateWrapper on: a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [14] WidgetStateWrapper>>displayOn:
> Receiver: (id=14687) a WidgetStateWrapper on: a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [15] BorderedWrapper>>displayOn:
> Receiver: (id=11188) a BorderedWrapper on: a
> WidgetStateWrapper on: a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [16] SpecWrapper(Wrapper)>>displayOn:
> Receiver: (id=3275) a SpecWrapper on: a BorderedWrapper on:
> a WidgetStateWrapper on: a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [17] SpecWrapper(WidgetWrapper)>>displayOn:
> Receiver: (id=3275) a SpecWrapper on: a BorderedWrapper on:
> a WidgetStateWrapper on: a SubCanvas
> Arg1: (id=13214) a ScreenGraphicsContext
> [18] CompositePart>>displayOn:
> Receiver: (id=7694) a CompositePart
> Arg1: (id=9167) a ScreenGraphicsContext
> [19] WindowDisplayPolicy>>displayDamageList:in:
> Receiver: (id=10640) a WindowDisplayPolicy
> Arg1: (id=8247) #(87@94 corner: 325@840)
> Arg2: (id=9720) an ApplicationWindow 2752
> [20] ApplicationWindow(ScheduledWindow)>>displayDamageEvent:
> Receiver: (id=9720) an ApplicationWindow 2752
> Arg1: (id=8247) #(87@94 corner: 325@840)
> [21] ApplicationWindow(ScheduledWindow)>>checkForEvents
> Receiver: (id=9720) an ApplicationWindow 2752
> [23] OrderedCollection>>do:
> Receiver: (id=10826) OrderedCollection (an ApplicationWindow
> 119063 an ApplicationWindow 44760 an ApplicationWindow 2752 an
> ApplicationWindow 643 an ApplicationWindow 14)
> Arg1: (id=2174) BlockClosure [] in [] in
> WindowManager>>repairDamagesExcept:
> [25] BlockClosure>>on:do:
> Receiver: (id=9906) BlockClosure [] in
> WindowManager>>repairDamagesExcept:
> Arg1: (id=12339) ClosedWindowNotification
> Arg2: (id=1800) BlockClosure [] in
> WindowManager>>repairDamagesExcept:
> [26] WindowManager>>repairDamagesExcept:
> Receiver: (id=7965) a WindowManager
> Arg1: (id=1) nil
> [27] WindowManager>>repairDamages
> Receiver: (id=7965) a WindowManager
> [28] WindowManager>>processNextEvent
> Receiver: (id=7965) a WindowManager
> [30] BlockClosure>>on:do:
> Receiver: (id=2727) BlockClosure [] in [] in
> WindowManager>>newProcess
> Arg1: (id=3873) TerminateException
> Arg2: (id=14325) BlockClosure [] in [] in
> WindowManager>>newProcess
> [32] BlockClosure>>on:do:
> Receiver: (id=5673) BlockClosure [] in
> WindowManager>>newProcess
> Arg1: (id=3873) TerminateException
> Arg2: (id=7685) BlockClosure [] in [] in Process
> class>>forBlock:priority:
>
> ------------------------------------------------------------
> Unhandled Exception:
> class: UnhandledException
> signal: UnhandledException
> errorString: Unhandled exception: attempt to index non-
> existent element
> parameter: an Error
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc