FS#12923 - Annotating in Xournal broken with latest updates

Attached to Project: Arch Linux
Opened by Sara Fauzia (sfauzia) - Saturday, 24 January 2009, 05:12 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 11 February 2009, 19:56 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version 3.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:
Annotating in Xournal appears to be broken after the latest updates the 17th of January, when gtk2 was updates, by my estimation. It was working perfectly when I installed Arch Linux, not much over a week ago. There aren't any errors outputted when I open Xournal through the terminal except:

[code]
(xournal:30295): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xournal:30295): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
[/code]

When I try to open a pdf, the page background does not change to reflect the pdf background image, and the Gtk WARNING error occurs again. However, when I try to save the file, the PDF file name does appear in the Save As menu, e.g. pdfname.pdf.xoj.

Steps to Reproduce:
1. Open a PDF in Xournal (open Xournal by the terminal if you wish to see the errors), by clicking Annotate PDF (in the File menu). Choose any PDF file; I've tried PDF files that were one-paged versus multiple pages, and there doesn't seem to be a difference.

2. Notice the background image. If you experience the bug (like I did), then the background image is the default lined paper. However, if you try File Save As, you'll see the behavior I reported in the summary.

This was working fine prior to the latest updates. My hypothesis is that the bug has been introduced in one of Xournal's dependencies, as the original upstream bug was fixed in version 0.4.1. Link: http://sourceforge.net/tracker2/index.php?func=detail&aid=1791389&group_id=163434&atid=827733

If there's any more information I can provide, I'd be happy to do so. I'm using Arch Linux with all of the latest updates that are supposed to be stable. I've tried, multiple times, purging all of the configuration files for Xournal and its dependencies (by sudo pacman -R --nosave --recursive xournal), purging /var (sudo pacman -Scc), and reinstalling, but it hasn't work. Compiling from source did not work either (by sudo make install).
This task depends upon

Closed by  Aaron Griffin (phrakture)
Wednesday, 11 February 2009, 19:56 GMT
Reason for closing:  Upstream
Additional comments about closing:  Patch is from upstream - wait for a new version
Comment by Sara Fauzia (sfauzia) - Saturday, 24 January 2009, 05:16 GMT
I meant to say, when gtk2 was *updated*. I'm sorry about that.
Comment by Roman Kyrylych (Romashka) - Monday, 26 January 2009, 16:38 GMT
xournal is orphaned ATM, looks like yet another candidate for cleanup from Extra.
Comment by Tyler Lawson (tlawson) - Thursday, 29 January 2009, 18:27 GMT
This seems to be an upstream problem in interaction between gtk2 and the mime-type sniffer. I a bugreport at http://bugzilla.gnome.org/show_bug.cgi?id=569671, and was redirected to file one at http://bugs.freedesktop.org/show_bug.cgi?id=19811.

Attached are a workaround patch from the author, and an updated PKGBUILD, to repair the annotation functionality.
Comment by Sara Fauzia (sfauzia) - Friday, 30 January 2009, 02:12 GMT
Thanks! But there seems to be some error with the patch though, which is reported when I try to makepkg:

==> Validating source files with md5sums...
xournal-0.4.2.1.tar.gz ... Passed
xournal.desktop ... Passed
xournalannotation.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!
Comment by Sara Fauzia (sfauzia) - Friday, 30 January 2009, 02:32 GMT
No, the patch works perfectly; I was a bit too hasty in commenting. I'll mark this bug for closure--the patch provided works. The problem might be that, the first time, I tried to copy and paste the information into a file, but the second time I used wget to download the files.
Comment by Sara Fauzia (sfauzia) - Friday, 30 January 2009, 02:33 GMT
However, I'd like to add that I want this patch to be incorporated into the xournal build in the extras repo BEFORE this bug is closed so everyone else can benefit as well. Thanks.
Comment by Tyler Lawson (tlawson) - Friday, 30 January 2009, 13:30 GMT
So far as I've been made to understand, Arch doesn't usually incorporate patches like that. This patch is already posted by the developer on his Sourceforge page and forum, and a new version will probably roll through soon. Closing the bug just means that a solution is found.

Loading...