Modify

Ticket #232 (closed bug: fixed)

Opened 10 years ago

Last modified 9 years ago

weakref exception when dealing with containers

Reported by: eliedebrauwer Owned by: parpg
Priority: major Milestone: Techdemo 1
Component: scripts Version: trunk
Keywords: Cc:
Blocked By: Blocking:
Department:

Description (last modified by eliedebrauwer) (diff)

I can reproduce this fairly well. How to reproduce:

  • run parpg
  • right click on a crate, select open
  • move the inventory to the left side of the screen
  • press I, the inventory screen pops up
  • now press the close button on the inventory.

After this, one is unable to open the contents of the crate again.

Attaching the trace.

Attachments

trace.txt (3.2 KB) - added by eliedebrauwer 10 years ago.
stack trace
log.txt (3.2 KB) - added by varnie 10 years ago.
chunk of log

Change History

Changed 10 years ago by eliedebrauwer

stack trace

comment:1 Changed 10 years ago by eliedebrauwer

  • Description modified (diff)

comment:2 Changed 10 years ago by b0rland_parpg

  • Status changed from new to closed
  • Resolution set to fixed

Seems to have fixed by itself

Changed 10 years ago by varnie

chunk of log

comment:3 Changed 10 years ago by varnie

the bug is still not fixed. the steps to reproduce it:

1) run parpg

2) right click on a crate, select open

3) press 'i' to open an inventory and move the inventory window to the right side a bit

4) press 'take all' button to take all items out of the crate

5) open crate once more time (i.e. right click on a crate, select open)

6) left-click on an available item in crate (it is some kind of a sword on this moment there) and move it to the empty slot in inventory window (opened in step #3 above); left-click on an empty slot to drop the sword to the inventory

7) press 'close' to close the inventory window

8) press 'take all' button in the crate

comment:4 Changed 10 years ago by eliedebrauwer

  • Status changed from closed to reopened
  • Resolution fixed deleted

reopening

comment:5 Changed 9 years ago by b0rland_parpg

Can actually be reproduced much easier: 1) run parpg 2) open inventory 3) without closing inventory open a crate. Move inventory aside a bit if necessary. 4) close inventory

So the hypothesis is that opening a crate corrupts some internal or common variables which inventory uses. I couldn't identify which exactly yet. It's possible that we're talking about pychan's internal variables. Important thing to note that if we reverse things (i.e. first open a crate and then the inventory), the bug doesn't reproduce.

comment:6 Changed 9 years ago by b0rland_parpg

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.