Faculty of Information Technology
Software Engineering Group

Opened 4 months ago

Last modified 4 months ago

#285 new defect

[Mercurial] Compare with newest in Repository on class produces - [SubscriptOutOfBoundsError]: subscript (0) out of bounds in process NewSystemBrowser [99]

Reported by: Patrik Svestka Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description (last modified by Patrik Svestka)

I have done two commits from Smalltalk/X. Next I wanted to check one class difference so I used the Compare with newest in Repository functionality on a ASRegistryReader class. There was a minor change in accessor, which is also used at the ::child (the Confirm warning "The same code is found in the subclass(es)..." was shown and closed via window close decoration (x))

This produces an error:

[SubscriptOutOfBoundsError]: subscript (0) out of bounds in process NewSystemBrowser [99]

Here is the walkback:

[SubscriptOutOfBoundsError]: subscript (0) out of bounds in process NewSystemBrowser [99]

OrderedCollection(Object) >> subscriptBoundsError: 0 {5271552} [11]
OrderedCollection >> at: 0 {5275648} [8]
[] in HGSourceCodeManager class>>revisionLogOf:fromRevision:toRevision:numberOfRevisions:fileName:directory:module: >> value  {5279744} [82]
(1) SmallInteger >> timesRepeat: [] in HGSourceCodeManager class>>revisionLogOf:f...sion:numberOfRevisions:fileName:directory:module: {5283840} [5]
HGSourceCodeManager class >> revisionLogOf:fromRevision:toRevision:numberOfRevisions:fileName:directory:module: ASRegistryReader '498:fe56b847ec0c' '498:fe56b847ec0c' nil 'ASRegistryReader.st' 'salamander_menueditor' 'ps' {5287936} [80]
HGSourceCodeManager class(AbstractSourceCodeManager class) >> revisionLogOf:fromRevision:toRevision:finishAfter: ASRegistryReader '498:fe56b847ec0c' '498:fe56b847ec0c' nil {5292032} [50]
HGSourceCodeManager class(AbstractSourceCodeManager class) >> revisionLogOf:fromRevision:toRevision: ASRegistryReader '498:fe56b847ec0c' '498:fe56b847ec0c' {5296128} [41]
HGSourceCodeManagerUtilities(SourceCodeManagerUtilities) >> compareClassWithRepository:askForRevision: ASRegistryReader false {5300224} [151]
Tools::NewSystemBrowser >> compareAgainstNewestInRepository:usingManager: ASRegistryReader HGSourceCodeManager {5304320} [12]
Tools::NewSystemBrowser >> doCompareClassesWithRepository:usingManager: OrderedCollection(ASRegistryReader class) HGSourceCodeManager {5308416} [9]
Tools::NewSystemBrowser >> classMenuCompareAgainstNewestInRepositoryUsingManager: HGSourceCodeManager {5312512} [6]
Tools::NewSystemBrowser >> classMenuCompareAgainstNewestInRepositoryUsingManagerNamed: #HGSourceCodeManager {5316608} [6]
Tools::NewSystemBrowser(Object) >> perform:with:with: #classMenuCompareAgainstNewestInRepositoryUsingManagerNamed: #HGSourceCodeManager HGSourceCodeManager {5320704} [31]
[] in Tools::NewSystemBrowser>>scmMenuForManagerNamed:selector: >> value {5324800} [30]
Block >> valueWithArguments: nil {5328896} [38]
MenuPanel >> accept:index:toggle:receiver: MenuPanel::Item(Compare with Newest in Repository) 15 nil a Tools::NewSystemBrowser {5332992} [38]
[] in MenuPanel>>processMenuSelectItemEvent: >> value {5337088} [15]
[] in WindowGroup>>withCursor:do: >> value {5341184} [32]
Block >> ensure: [] in WindowGroup>>withCursor:do: {5345280} [12]
WindowGroup >> withCursor:do: Cursor(wait) [] in MenuPanel>>processMenuSelectItemEvent: {5349376} [37]
WindowGroup >> withWaitCursorDo: [] in MenuPanel>>processMenuSelectItemEvent: {5353472} [6]
MenuPanel >> processMenuSelectItemEvent: MenuEvent::MenuSelectItemEvent(#processMenuSelec...temEvent: view: MenuPanel args: #("recursive")))) {5369856} [20]
MenuPanel(Object) >> perform:withArguments: #processMenuSelectItemEvent: #(MenuEvent::MenuSelectItemEvent(#processMenuSelectItemEvent: view: MenuPanel args: #("recursive"))) {5386240} [87]
MenuPanel(DisplaySurface) >> dispatchEvent:type:arguments:withFocusOn:delegate: MenuEvent::MenuSelectItemEvent(#processMenuSelec...temEvent: view: MenuPanel args: #("recursive")))) #processMenuSelectItemEvent: #(MenuEvent::MenuSelectItemEvent(#processMenuSelectItemEvent: view: MenuPanel args: #("recursive"))) a SelectionInListView false {5414912} [238]
MenuPanel(DisplaySurface) >> dispatchEvent:withFocusOn:delegate: MenuEvent::MenuSelectItemEvent(#processMenuSelec...temEvent: view: MenuPanel args: #("recursive")))) a SelectionInListView false {5431296} [5]
MenuPanel >> dispatchEvent:withFocusOn:delegate: MenuEvent::MenuSelectItemEvent(#processMenuSelec...temEvent: view: MenuPanel args: #("recursive")))) a SelectionInListView true {5447680} [28]
[] in WindowGroup>>processEventsWithModalGroup: >> value  {5451776} [221]
Block >> on:do:ensure: LastEventQuery (private in WindowGroup) [] in WindowGroup>>processEventsWithModalGroup: [] in WindowGroup>>processEventsWithModalGroup: {5455872} [15]
WindowGroup >> processEventsWithModalGroup: nil {5459968} [232]
[] in WindowGroup>>eventLoopWhile:onLeave: >> value  {5464064} [152]
SignalSet >> handle:do: [] in WindowGroup>>eventLoopWhile:onLeave: [] in WindowGroup>>eventLoopWhile:onLeave: {5468160} [14]
[] in WindowGroup>>eventLoopWhile:onLeave: >> value  {5472256} [81]
Block >> ensure: [] in WindowGroup>>startupWith: (optimized) {5476352} [12]
[] in WindowGroup>>eventLoopWhile:onLeave: >> value {5480448} [184]
WindowGroup::WindowGroupQuery class(Notification class) >> answer:do: WindowGroup(NewSystemBrowser) [] in WindowGroup>>eventLoopWhile:onLeave: {5484544} [10]
[] in WindowGroup::WindowGroupQuery class>>answer:do: >> value {5488640} [4]
Block >> ensure: [] in WindowGroup::WindowGroupQuery class>>answer:do: (optimized) {5492736} [12]
WindowGroup::WindowGroupQuery class >> answer:do: WindowGroup(NewSystemBrowser) [] in WindowGroup>>eventLoopWhile:onLeave: {5496832} [5]
WindowGroup >> eventLoopWhile:onLeave: [] in WindowGroup>>startupWith: (optimized) [] in WindowGroup>>startupWith: (optimized) {5500928} [25]
[] in WindowGroup>>startupWith: >> value {5505024} [26]
Block >> ensure: [] in WindowGroup>>startupWith: {5509120} [12]
[] in WindowGroup>>startupWith: >> value  {5513216} [27]
ExceptionHandlerSet >> handleDo: [] in WindowGroup>>startupWith: {5517312} [14]
[] in Process>>start >> value {5521408} [34]
Block >> on:do:ensure: SignalSet(RestartProcessRequest AbortAllOperationRequest TerminateProcessRequest) [] in Process>>start [] in Process>>start {5525504} [15]
Process >> start  {5529600} [35]
UndefinedObject >> nil  {5533696} [0]

The current repository state:
Mercurial repository state

Debugger state snapshot:

Attachments (2)

repository_state.png (35.4 KB) - added by Patrik Svestka 4 months ago.
Mercurial repository state
debugger_state_snapshot.png (157.1 KB) - added by Patrik Svestka 4 months ago.

Download all attachments as: .zip

Change History (6)

Changed 4 months ago by Patrik Svestka

Attachment: repository_state.png added

Mercurial repository state

comment:1 Changed 4 months ago by Patrik Svestka

Description: modified (diff)

comment:2 Changed 4 months ago by Patrik Svestka

Description: modified (diff)

comment:3 Changed 4 months ago by Patrik Svestka

Description: modified (diff)

Changed 4 months ago by Patrik Svestka

Attachment: debugger_state_snapshot.png added

comment:4 Changed 4 months ago by Patrik Svestka

Description: modified (diff)
Note: See TracTickets for help on using tickets.