After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 530778 - self.grid.add(), grid==None
self.grid.add(), grid==None
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
unspecified
Other All
: High critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
: 540142 540214 541480 542488 550490 552872 553666 553805 554166 554186 556219 557168 558105 561382 562116 574129 574874 576043 577836 581095 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-30 18:54 UTC by spam
Modified: 2009-05-02 14:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
clean up the code (7.52 KB, patch)
2009-03-28 08:37 UTC, Jesse Zhang
committed Details | Review

Description spam 2008-04-30 18:54:24 UTC
Version: 2.22.1.1

What were you doing when the application crashed?
i started an easy game, clicked the autofill-button many times while double clicking the fields alternately. suddenly one field was covered with that mouse-num-field, which did not disappeared on clicking another field. as i tried to click one of these buggy buttons, the whole app crashed.


Distribution: Ubuntu 8.04 (hardy)
Gnome Release: 2.22.1 2008-04-15 (Ubuntu)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10400090
Selinux: No
Accessibility: Disabled
GTK+ Theme: Human
Icon Theme: Human

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0



----------- .xsession-errors ---------------------
(firefox:9577): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
(firefox:9577): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
(firefox:9577): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
Traceback (most recent call last):
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1060 in entry_callback
    self.entry_validate(widget)
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1081 in entry_validate
    self.add_value(widget.x,widget.y,val)
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1134 in add_value
    self.grid.add(x,y,val,True)
AttributeError: 'NoneType' object has no attribute 'add'
--------------------------------------------------
Traceback (most recent call last):
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1060 in entry_callback
    self.entry_validate(widget)
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1081 in entry_validate
    self.add_value(widget.x,widget.y,val)
  • File "/var/lib/python-support/python2.5/gnome_sudoku/gsudoku.py", line 1134 in add_value
    self.grid.add(x,y,val,True)
AttributeError: 'NoneType' object has no attribute 'add'

Comment 1 Gianluca Borello 2008-06-25 13:22:29 UTC
*** Bug 540142 has been marked as a duplicate of this bug. ***
Comment 2 Jason Clinton 2008-06-25 15:22:58 UTC
Another race condition...
Comment 3 Jason Clinton 2008-06-25 21:38:35 UTC
*** Bug 540214 has been marked as a duplicate of this bug. ***
Comment 4 Gianluca Borello 2008-07-04 07:24:30 UTC
*** Bug 541480 has been marked as a duplicate of this bug. ***
Comment 5 Goran Rakic 2008-07-14 11:21:15 UTC
*** Bug 542488 has been marked as a duplicate of this bug. ***
Comment 6 Sergio Infante Montero 2008-09-03 23:01:10 UTC
*** Bug 550490 has been marked as a duplicate of this bug. ***
Comment 7 Gianluca Borello 2008-09-19 15:00:02 UTC
*** Bug 552872 has been marked as a duplicate of this bug. ***
Comment 8 Gianluca Borello 2008-09-25 19:41:49 UTC
*** Bug 553666 has been marked as a duplicate of this bug. ***
Comment 9 Gianluca Borello 2008-09-25 19:41:55 UTC
*** Bug 553805 has been marked as a duplicate of this bug. ***
Comment 10 Gianluca Borello 2008-10-21 11:06:47 UTC
*** Bug 554166 has been marked as a duplicate of this bug. ***
Comment 11 Gianluca Borello 2008-10-21 11:06:54 UTC
*** Bug 554186 has been marked as a duplicate of this bug. ***
Comment 12 Gianluca Borello 2008-10-21 11:06:59 UTC
*** Bug 556219 has been marked as a duplicate of this bug. ***
Comment 13 Gianluca Borello 2008-10-21 11:07:05 UTC
*** Bug 557168 has been marked as a duplicate of this bug. ***
Comment 14 Susana 2008-10-28 22:14:49 UTC
*** Bug 558105 has been marked as a duplicate of this bug. ***
Comment 15 Jesse Zhang 2008-11-24 13:46:18 UTC
*** Bug 562116 has been marked as a duplicate of this bug. ***
Comment 16 Fabio Durán Verdugo 2009-03-04 17:25:35 UTC
*** Bug 574129 has been marked as a duplicate of this bug. ***
Comment 17 Fabio Durán Verdugo 2009-03-11 11:43:05 UTC
*** Bug 574874 has been marked as a duplicate of this bug. ***
Comment 18 Gianluca Borello 2009-03-20 10:26:03 UTC
*** Bug 576043 has been marked as a duplicate of this bug. ***
Comment 19 Thomas Andersen 2009-03-28 03:18:32 UTC
Fixed on trunk in r8912: Fix will be in 2.27.1
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=8912

2.26.1 material
Comment 20 Thomas Andersen 2009-03-28 03:22:13 UTC
*** Bug 561382 has been marked as a duplicate of this bug. ***
Comment 21 Jesse Zhang 2009-03-28 08:37:44 UTC
Created attachment 131542 [details] [review]
clean up the code

The patch contains:

1. class NumberSelector's key_press_cb() is deleted, since I find it's called nowhere. NumerSelector never gets the 'key_release_event' (which goes to NumberBox). (/me doesn't understand why)

2. clean up the code to destroy num selector to 'destroy_npicker()'. Make sure there is only one number-selector (just as phomes did). Also Make all kinds of npicker-destroying through destroy_npicker, rather than directly calling NumberSelector's destroy().

3. When the npicker is shown, pressing any key will kill it. I think this is more intuitive.

4. delete SudokuGameDisplay's add_value_to_ui(). I don't know why there is both an add_value and an add_value_to_ui, which is just a simple wrapper around the former. (I just deleted it; there should be more refactor as to the way sudoku fills numbers but I haven't thought thoroughly).

5. Move the code to display conflict-red-color to new method 'complain_conflicts'.

The patch possibly contains immature newbie stuff, thanks for review :)
Comment 22 Jesse Zhang 2009-03-28 09:37:52 UTC
BTW, the 'number_picker_mode' of class NumberSelector is never set to True, I think. If so, it can be deleted (the several places using it should also be rewritten).
Comment 23 Thomas Andersen 2009-03-28 13:14:24 UTC
Committed Zhangs cleanup patch:
http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=8916

Nice. Much more clean now. Will remove dead number_picker_mode code. Thanks again!
Comment 24 Gianluca Borello 2009-04-03 12:23:39 UTC
*** Bug 577836 has been marked as a duplicate of this bug. ***
Comment 25 Thomas Andersen 2009-04-07 00:37:30 UTC
patch committed to 2.26 branch. Will be in 2.26.1
Comment 26 Jesse Zhang 2009-05-02 14:34:23 UTC
*** Bug 581095 has been marked as a duplicate of this bug. ***