XBoard (GtkBoard?) pre-alpha

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: XBoard (GtkBoard?) pre-alpha

Post by hgm »

The warnings are normal. (Normally it is not useful to print memory addresses, so if people do it, it is usually by mistake.)

Indeed, the last line is due to what we added, and prints the value of the various pointers. None is equal to 0, though, and look like valid memory addresses. And especially graph->choice and cr, which are then passed to the cairo_create_surface, look OK. So I am at a loss here...
JonasThiem
Posts: 36
Joined: Sun Sep 02, 2012 5:23 pm

Re: XBoard (GtkBoard?) pre-alpha

Post by JonasThiem »

You might consider putting the contents of the "Options > General" and "Options > Sounds..." dialogs into a GtkScrolledWindow with vertical scrollbar - the dialogs don't fit on the screen here despite 1366 x 768 screen resolution.

Edit: also, you did something to the xboard window so Gnome 3 thinks it doesn't need a close button. Same for "Engine Output" window. But of course "File > Quit" still works.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: XBoard (GtkBoard?) pre-alpha

Post by hgm »

OK, thanks for the feedback. I guess I will simply cut these dialogs into two columns; they were a bit tall even in the X11 front-end. That is easier to do than scrolls (and probably also easier to operate for the user), as the generic popup through which all dialogs are made already supports a 'Break' command to continue in a new column. (The ICS Options and Load Engine dialogs make use of this.)

Weird that in Gnome 3 some dialogs have a window-close button, and others not. All dialogs are made by the same routine. Maybe it has to do with whether the dialog is modal or non-model, or whether the cancel button is hidden or not. Does the Move History window have a close button?

I am still unhappy with the default OK/cancel buttons; in particular with the fact that they are displayed on a separate row. This is especially undesirable in the Edit Tags and Edit Comment dialogs.

Btw, <Esc> should also close the board, like it should close any other dialog. I am not sure if it is desirable to keep it that way.
JonasThiem
Posts: 36
Joined: Sun Sep 02, 2012 5:23 pm

Re: XBoard (GtkBoard?) pre-alpha

Post by JonasThiem »

Neither movelist nor evaluation graph have a close button. In fact, no window does :-)
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: XBoard (GtkBoard?) pre-alpha

Post by hgm »

And the transient dialogs, like File->New Variant (which does not have an OK or Cancel button) or Options->Save Game (which does)?

It could also be that this is just a change in default setting, and that you now explicitly have to ask for a system menu button when you want one.
JonasThiem
Posts: 36
Joined: Sun Sep 02, 2012 5:23 pm

Re: XBoard (GtkBoard?) pre-alpha

Post by JonasThiem »

File->New Variant also exceeds my vertical screen size by far.

Gnome 3 generally likes to embed dialogs into the parent, see here:

Image
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: XBoard (GtkBoard?) pre-alpha

Post by JoshPettus »

Well I had one more idea, and that was to do away with fink and try homebrew as a package manager. This one is a lot more integrated with the OS which actually worked out for me. It wound up pointing out all these partial libraries i must have tried manually installing a long time ago and surly must have been tripling me up now! All this extra gettext stuff that i had no idea was part of it and finally able to remove. (so that now works finally!) I also removed a whole bunch of junk including gtk stuff! Now i get a different error when launching a cairo version of xboard. (it compiled just fine again) And this one i feel must be pretty simple.

Code: Select all

Assertion failed&#58; (_cairo_status_is_error &#40;status&#41;), function _cairo_error, file cairo-error.c, line 68.
Abort trap&#58; 6
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: XBoard (GtkBoard?) pre-alpha

Post by hgm »

OK, next attempt then:

I pushed a special version of the cairo branch (so not yet GTK) to hgm.nubati.net, as latest commit to the master branch. (cairo has now been merged into master, also at GNU). We should manage to get the SVG display there first.

It should print some debug info in the xboard.debug file, keeping track of the status of the various cairo surfaces, and reporting if they don't have status SUCCESS. Let me know what it does!
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: XBoard (GtkBoard?) pre-alpha

Post by JoshPettus »

Wow thank-you! I'm starting to think these issues were do to a dirty system and not actually mac related. :oops: I could probably go back to fink and it would be fine. (Homebrew, because it is more integrated, uses more of apples libraries, which can be out of date, as oppose to something separate. It's advantage is that it can be faster and a lot smaller.) Anyway with this install of the libraries had this issue upon launch.

Code: Select all

&#40;process&#58;53722&#41;&#58; GLib-CRITICAL **&#58; void g_error_free&#40;GError *)&#58; assertion `error != NULL' failed
Assertion failed&#58; (_cairo_status_is_error &#40;status&#41;), function _cairo_error, file cairo-error.c, line 68.
Abort trap&#58; 6
the debug file didn't have much

Code: Select all

recognized 'normal' (-1&#41; as variant normal
recognized 'normal' (-1&#41; as variant normal
recognized 'normal' (-1&#41; as variant normal
shuffleOpenings = 0
Requested font set for list -*-helvetica-medium-r-normal--14-*-*-*-*-*-*-*,-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*,-*-*-*-*-*-*-14-*-*-*-*-*-*-*
 got list -*-helvetica-medium-r-normal--14-*-*-*-*-*-*-*,-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*,-*-*-*-*-*-*-14-*-*-*-*-*-*-*, locale en_US.UTF-8
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-1
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-1
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-2
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-3
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-4
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-5
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-koi8-r
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-7
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-9
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-13
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-14
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso8859-15
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
 got charset -daewoo-gothic-medium-r-normal--14-101-100-100-c-0-ksc5601.1987-0
 got charset -isas-fangsong ti-medium-r-normal--14-101-100-100-c-0-gb2312.1980-0
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
 got charset -adobe-helvetica-medium-r-normal--14-140-75-75-p-77-iso10646-1
Requested font set for list -*-helvetica-bold-r-normal--34-*-*-*-*-*-*-*,-misc-fixed-bold-r-normal--34-*-*-*-*-*-*-*,-*-*-*-*-*-*-34-*-*-*-*-*-*-*
 got list -*-helvetica-bold-r-normal--34-*-*-*-*-*-*-*,-misc-fixed-bold-r-normal--34-*-*-*-*-*-*-*,-*-*-*-*-*-*-34-*-*-*-*-*-*-*, locale en_US.UTF-8
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-1
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-1
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-2
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-3
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-4
 got charset -misc-fixed-bold-r-normal--34-246-100-100-c-0-iso8859-5
 got charset -misc-fixed-medium-r-normal--34-246-100-100-c-0-koi8-r
 got charset -misc-fixed-bold-r-normal--34-246-100-100-c-0-iso8859-7
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-9
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-13
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-14
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso8859-15
 got charset -jis-fixed-medium-r-normal--34-246-100-100-c-0-jisx0208.1983-0
 got charset -daewoo-gothic-medium-r-normal--34-246-100-100-c-0-ksc5601.1987-0
 got charset -isas-fangsong ti-medium-r-normal--34-246-100-100-c-0-gb2312.1980-0
 got charset -misc-fixed-medium-r-normal--34-246-100-100-c-0-jisx0201.1976-0
 got charset -adobe-helvetica-bold-r-normal--34-240-100-100-p-182-iso10646-1
Requested font set for list -*-helvetica-bold-r-normal--14-*-*-*-*-*-*-*,-misc-fixed-bold-r-normal--14-*-*-*-*-*-*-*,-*-*-*-*-*-*-14-*-*-*-*-*-*-*
 got list -*-helvetica-bold-r-normal--14-*-*-*-*-*-*-*,-misc-fixed-bold-r-normal--14-*-*-*-*-*-*-*,-*-*-*-*-*-*-14-*-*-*-*-*-*-*, locale en_US.UTF-8
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-1
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-2
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-3
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-4
 got charset -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-5
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-koi8-r
 got charset -misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-7
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-9
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-13
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-14
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso8859-15
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
 got charset -daewoo-gothic-medium-r-normal--14-101-100-100-c-0-ksc5601.1987-0
 got charset -isas-fangsong ti-medium-r-normal--14-101-100-100-c-0-gb2312.1980-0
 got charset -misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
 got charset -adobe-helvetica-bold-r-normal--14-140-75-75-p-82-iso10646-1
fallback
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: XBoard (GtkBoard?) pre-alpha

Post by hgm »

Oops! :oops: My mistake. I typed a semi-colon where I intended a comma, atthe end of line 272 of draw.c. It has to be this:

Code: Select all

fprintf&#40;debugFP, "error loading svg %s&#58; %s\n", buf, svgerror->message&#41;,