Styles - ticking color or coordinates gives error
Chess Database Application
Status: Pre-Alpha
Brought to you by:
gcramer
Three error messages below.
clickin on many piece and square styles, at some point error:
can't read "workingSetId": no such variable
while executing
"set identifier $workingSetId"
(procedure "::board::mapToLongId" line 8)
invoked from within
"[namespace parent]::mapToLongId $name $which"
(procedure "MoveStyleEntry" line 6)
invoked from within
"MoveStyleEntry .board_options_edit_style_1499204871975.top.list.content +1 theme"
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options {MoveStyleEntry .board_options_edit_style_1499204871975.top.list.content +1 theme}"
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down invoke "
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down instate !disabled { .board_options_edit_style_1499204871975.top.buttons.down invoke } "
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down instate pressed { .board_options_edit_style_1499204871975.top.buttons.down state !pressed; .b..."
(command bound to event)
can't read "workingSetId": no such variable
while executing
"set identifier $workingSetId"
(procedure "::board::mapToLongId" line 8)
invoked from within
"[namespace parent]::mapToLongId $name $which"
(procedure "MoveStyleEntry" line 6)
invoked from within
"MoveStyleEntry .board_options_edit_style_1499204871975.top.list.content +1 theme"
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options {MoveStyleEntry .board_options_edit_style_1499204871975.top.list.content +1 theme}"
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down invoke "
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down instate !disabled { .board_options_edit_style_1499204871975.top.buttons.down invoke } "
invoked from within
".board_options_edit_style_1499204871975.top.buttons.down instate pressed { .board_options_edit_style_1499204871975.top.buttons.down state !pressed; .b..."
(command bound to event)
board options - select themes
-tick colors
->error
This error was reproducible.
can't read "colors(user,coordinates)": no such element in array
while executing
"llength $colors(user,coordinates)"
(procedure "SetColorTooltips" line 16)
invoked from within
"SetColorTooltips"
(procedure "ToggleLock" line 39)
invoked from within
"ToggleLock "
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options { ToggleLock }"
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors invoke "
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors instate !disabled { .application.nb.board.top.board.c.boardConfigDialog.top.n..."
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors instate pressed { .application.nb.board.top.board.c.boardConfigDialog.top.nb...."
(command bound to event)
can't read "colors(user,coordinates)": no such element in array
while executing
"llength $colors(user,coordinates)"
(procedure "SetColorTooltips" line 16)
invoked from within
"SetColorTooltips"
(procedure "ToggleLock" line 39)
invoked from within
"ToggleLock "
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options { ToggleLock }"
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors invoke "
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors instate !disabled { .application.nb.board.top.board.c.boardConfigDialog.top.n..."
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.lcolors instate pressed { .application.nb.board.top.board.c.boardConfigDialog.top.nb...."
(command bound to event)
styles
tick show coordinates
coordinates don't appear, embossed shows them
->error
I couldn't reproduce this.
can't read "colors(user,coordinates)": no such element in array
while executing
"set tip "${::mc::Color}: extendColorName $colors(user,coordinates)]""
(procedure "ToggleShowCoords" line 14)
invoked from within
"ToggleShowCoords"
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options ToggleShowCoords"
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords invoke "
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords instate !disabled { .application.nb.board.top.board.c.boardConfigDialog..."
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords instate pressed { .application.nb.board.top.board.c.boardConfigDialog.t..."
(command bound to event)
can't read "colors(user,coordinates)": no such element in array
while executing
"set tip "${::mc::Color}: extendColorName $colors(user,coordinates)]""
(procedure "ToggleShowCoords" line 14)
invoked from within
"ToggleShowCoords"
(in namespace inscope "::board::options" script line 1)
invoked from within
"::namespace inscope ::board::options ToggleShowCoords"
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords invoke "
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords instate !disabled { .application.nb.board.top.board.c.boardConfigDialog..."
invoked from within
".application.nb.board.top.board.c.boardConfigDialog.top.nb.basic.layout.coords instate pressed { .application.nb.board.top.board.c.boardConfigDialog.t..."
(command bound to event)
r1239
I'm not able to select theme anymore. Every other restart theme selection is not active in the menu, every other restart it gives an error. I did not reinstall yet.
board options/select theme
basic
(untick show border, show coordinates)
theme
edit list
select - preview - close
tick show border, show coordinates
->error
->ok
->board options/select theme is greyed out from menu
changed style
close scidb
start scidb
board options/select theme
->error
Many of your problems are local Tcl/Tk problems, I have the impression that you have an unsound Tcl/Tk installation. Please open the dialog in "Main Menu->About Scidb...", choose tab "System", and copy the content to this report.
I tried to reinstall everything, but r1248 didn't compile. Forgot to check "system" before.
I ran tests after installing Tcl/Tk as usally. Tcl didn't give errors, but Tk gave a couple as always. I wonder if it is due to mismatch with compiz window manager?
I have reinstalled everything from scratch a few times because of errors that appear after scidb freezes/crashes. I don't know if they are related. There have been sed errors with etc/default/keyboardXXXXXX file when logging out, sometimes keyboard is not setup correctly after these in boot. These problems disappear after discarding the knoppix overlay file and starting afresh.
I don't have other programs freezing/crashing than scidb.
From the tk documentation I got the impression that tk test errors are expected, probably not serious.
No, the test suite shouldn't give errors. Can you attach a log file of your test.
Probably because of the Tk library. This library is very powerful, but infortunately not very popular, so it is a bit more sensitive than other toolkits, because not as well tested with different systems than other ones.
output of "make test":
attached file in the next post.
Last edit: Xin Xin 2017-07-08
Output of tk "make test". I didn't yet do the interactive tests.
Attached file below.
Last edit: Xin Xin 2017-07-08
Should have atttached the log file, sorry. The Tcl test log file attached:
Tk test log file attached:
The same problem in r1253. After this I cannot select themes anymore without reinstalling scidb.
main menu-theme-alt
Board options / select theme
basic
theme -magnetic
tick colors (bottom left)
->error
->board tab
-right-click
-click board options select theme
->error
->ok
-redo above
->select theme item in menu greyed out
->main menu-theme
set default
->restart scidb
->board options select theme
->application error
After installing r1253:
About Scidb - System:
Tcl/Tk version: 8.6 (pl6)
Operating System: Linux 4.7.9
OS Identifier: linux-glibc2.24-ix86
System Architecture: i686
Windowing System: x11
Vendor String: X11R0 The X.Org Foundation 11804000
Total Memory: 1891.2 MB
(Copying the above from the "about" window didn't work, typed it.)
Last edit: Xin Xin 2017-07-08
I cannot reproduce your problem. Please do the following before starting the application:
Instead of reinstalling normally starting the application with "scidb-beta --first-time" is also resetting to primary state.
r 1282
I still get errors when starting with scidb-beta --first-time or removing .scidb-beta. Some new ones, too. I have a quite old laptop, too slow for many brands of linux, but knoppix is fine in general. Is it possible it's not up to demands of Tcl/Tk in performance? I have noticed computer display freeze for too long periods - window opening or closing may take many many seconds. Highlighting a file and trying to delete it asks a confirmatory question, but for a different file name. Can this be caused by installment of Tcl/Tk? Does installing Tcl/tk add running processes to the system when scidb is not in use?
In Tcl Wikipedia it is said: "Safe-Tcl is a subset of Tcl that has restricted features so that Tcl scripts cannot harm their hosting machine or application."
If wonder if there is anyone else who wants to use scidb on an old laptop? If not, I should probably quit this testing.
Last edit: Xin Xin 2017-07-11
I can select themes, boards, and sets without any errors, only ticking on "colors" produces the errors. I can select there square patterns and they seem to work, but clearing them again with the eraser produces the errors.
Here are some new ones, too:
r1282
scidb-beta --first-time
board options/ select theme
tick Colors
->error
board background in preview window turns from blue marble to light grey
board border in preview window turns from blue to dark grey
ok (error window)
** tick off colors -> colors in preview window change to originals
** hovering mouse over colors-border button (whether it is selectable or greyed out) shows tooltip:
** Solid color #999999 (Gray 60)
ok (board options window)
right-click on board background
board options /select theme
->error
** no error if Colors was ticked off
->ok (error windows)
->ok (board options window)
right-click on board tab background
->board options / select theme is greyed out, not selectable
** if Colors was ticked off, board options is now selectable
--both error messages have twice the same message
instead of tick off colors tried clicking revert a few times
->error (didn't reproduce)
select colors background wood
->ok
->error
-after selecting patterns or colors for background, border, coordinates at least some errors disappear
the image below does seem to exist and I can select is as a background or square
I think that the performance problems are related to the general problems with Tcl/Tk under Knoppix, or you are working with a VM, VM's are slowing down the system enormously. I don't think that your older hardware is the problem, I'm working with a Laptop from year 2010. Is it possible for you to use an alternative distribution, ArchLinux for instance, or is it required to use a Live-distro? For any reason Knoppix has severe compatibility problems with Tk library, I don't have an explanation for this, but I have the impression that Knoppix has only a restricted support of graphical features. One example: I can see from your log that Knoppix does not seem to support freetype2 (TrueType font rendering).
I don't use VMs now. I can try another Linux, thanks for the advice.
Maybe it is not useful anymore to report the error messages I get, but I noticed that when I have unsaved games I get a different error message (when selecting board options /select them)
If there are no unsaved games, but a game history listing (twice the same error message):
If unsaved games exist (twice the same message):
Maybe this is unrelated:
board options - theme
tick colors
change background and border to wood patterns
hover mouse on buttons
tooltip shows for border "Solid Color: #999999 (Gray 60)
even though border is wood01.jpg
Finally I could find this bug, fixed in [r1288].
Related
Commit: [r1288]