You are not logged in.

#1 2009-01-23 19:41:13

sfauzia
Member
Registered: 2009-01-11
Posts: 88

[SOLVED] Xournal Issue

When I initially installed Arch Linux, annotation in Xournal was working perfectly. When gtk2 was updated (along with some other packages, maybe a week ago), annotation stopped working. When I open a document to annotate in Xournal, Xournal remains blank and does not load the pdf as a background image. This is a major usability bug for me--is anyone else having the same problem? I'm running Arch 64 on a Lenovo x61 tablet. Kernel version is 2.6.28.1.

[edit] I've filed a bug report.[/edit]

Last edited by sfauzia (2009-01-30 19:39:32)

Offline

#2 2009-01-23 19:45:18

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

I checked the update log on the website; gtk2 for 64-bit was upgraded the 17th of January.

Offline

#3 2009-01-23 20:36:48

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: [SOLVED] Xournal Issue

this *probably* isn't an arch bug.  have you checked xournal's upstream resources for the problem?


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#4 2009-01-23 20:57:11

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

I found the upstream bug for this issue, but I still don't understand how it was working perfectly for me until some of the latest Arch updates... And I'm hardly biased against Arch--I love Arch! smile

http://sourceforge.net/tracker/index.ph … tid=827733

Offline

#5 2009-01-23 21:04:11

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

And another old bug report, from Launchpad:

https://bugs.launchpad.net/ubuntu/+sour … bug/137944

Offline

#6 2009-01-23 21:53:10

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

Did anyone have this same problem and were able to fix it without having to re-compile? Please let me know.

Offline

#7 2009-01-23 23:38:22

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

I compiled it from source (but didn't try any of the hacks posted at the bug report) and it was just the same.

Last edited by sfauzia (2009-01-24 01:04:32)

Offline

#8 2009-01-24 00:58:24

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

As it was working before in Arch Linux, and it isn't having any issues on any of my Ubuntu boxes, I think this is either a dependency issue, or some change in one of its dependencies. I'm not sure if I should file a bug report, however--I don't have many descriptive error messages to cite. When I try opening Xournal through the terminal I get 2 of:

GtkSpinButton: setting an adjustment with non-zero page size is deprecated

And then it again whenever I try to annotate a PDF. But the developer said this error was just an error in libgnomecanvas (if I remember correctly), and not something to be concerned about. Interestingly though, when I click File Save As after trying to open the PDF, it shows the PDF name.pdf.xoj in the title. I really hope someone can help! I absolutely need this because I almost entirely rely on my computer for my studying (for school). If anyone can offer help I'd really appreciate it smile

Last edited by sfauzia (2009-01-24 03:47:35)

Offline

#9 2009-01-24 02:36:08

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: [SOLVED] Xournal Issue

ubuntu does a lot more patching of upstream sources than arch does.  there's a pretty good chance the package has been patched by the ubuntu packagers.  don't be scared to recompile... it's fun, and you'll have to do it sooner or later!

the wiki page on the ABS will tell you all you need to know.


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#10 2009-01-24 03:44:38

sfauzia
Member
Registered: 2009-01-11
Posts: 88

Re: [SOLVED] Xournal Issue

Perhaps I don't know enough (it's probable), but don't I need to know what's wrong first before I recompile? Because it was working, but I don't know what update specifically (only that gtk2 was among the updates that installed and, thereafter, annotating stopped working) made it stop working. And what fixed the problem in Ubuntu was that upstream provided the patch, and since I'm using the latest Xournal, I shouldn't have to recompile it, right?

Please forgive me for being new to Arch, but I'm willing to roll up my sleeves and recompile if I must! :)

[edit] I will file a bug report, then (I was only concerned--and that's why I didn't do so before--that I did not have enough information for a developer to debug my problem, but I'll try my best). Thanks, Allan. [/edit]

Last edited by sfauzia (2009-01-24 05:21:31)

Offline

#11 2009-01-24 03:47:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] Xournal Issue

See the Edit button in the bottom right of your posts?  Please use it.

Anyway, this is a package in the main repos so you should file a bug report about an update breaking it. 

It you want to try seeing if a simple rebuild will fix this for you, then check out the ABS page on the wiki.

Offline

#12 2009-01-27 21:05:49

tlawson
Member
From: MN, USA
Registered: 2009-01-24
Posts: 24

Re: [SOLVED] Xournal Issue

I'm having this problem too.  The bug is not the same as listed on the Ubuntu bug reports - there, the error was that Xournal was having trouble finding the files produced by pdftoppm due to renaming.  By running pdftoppm myself, I'm finding that Xournal can't load these ppm files at all.

I added a debug line to the source and found that, on these files, the error is actually being thrown by the gdk-pixbuf library.  Specifically, gdk_pixbuf_new_from_file() doesn't seem to be successfully loading any .ppm that I can throw at it.  The error message prints as:

error message: Couldn't recognize the image file format for file

I can replicate this error in a pretty short example program depending only on gtk/gdk.

Offline

#13 2009-01-29 04:49:42

tlawson
Member
From: MN, USA
Registered: 2009-01-24
Posts: 24

Re: [SOLVED] Xournal Issue

Here is the deal.  xournal uses pdftoppm to extract image data from the pdf, and then opens these individually.  The problem is that the gdk library that actually opens the ppm files is loading them into memory, and then using gio to try and sniff out the mime-type (which should be image/x-portable-pixmap).

The problem is that, because gdk loads the file into memory first, gio doesn't have the file's extension as a hint, and so it's reporting the mime-type as "probably application/octet-stream", and hence gdk has no idea how to open it. neutral ppms are pretty primitive and are only described by having "P5" or "P6" as the first two characters of the file.

Even more entertaining is that gdk has its own logic that should correctly determine the filetype, but it's explicitly turned off by a #define GDK_PIXBUF_USE_GIO_MIME 1.  I'm in the process of recompiling gtk2 with this switched and will see if that makes a difference.

EDIT: This works; turning off gio allows annotation in xournal again.  Here's a patch you can add to the PKGBUILD for gtk2 from abs:

--- gtk+-2.14.7/configure.orig    2009-01-07 15:52:17.000000000 -0600
+++ gtk+-2.14.7/configure    2009-01-28 22:27:42.000000000 -0600
@@ -29367,7 +29367,6 @@
   gio_can_sniff=yes
 
 cat >>confdefs.h <<\_ACEOF
-#define GDK_PIXBUF_USE_GIO_MIME 1
 _ACEOF
 
 else

EDIT2: Here's an upstream bug report:http://bugzilla.gnome.org/show_bug.cgi?id=569671

EDIT3: Here's another:http://bugs.freedesktop.org/show_bug.cgi?id=19811

I contacted the author and he's got a workaround patch, if you don't want to recompile gtk2; I've posted it with an updated PKGBUILD to sfauzia's bugreport from above.

Last edited by tlawson (2009-01-29 18:31:50)

Offline

#14 2009-10-01 22:50:36

thetrivialstuff
Member
Registered: 2006-05-10
Posts: 191

Re: [SOLVED] Xournal Issue

This problem still seems to exist in the latest xournal/gtk2. In case anyone else has these problems attempting to patch/compile:

makepkg complains of a missing file, xournal.desktop. It's not actually needed unless you care about icons and things, so you can just remove all references to it in the PKGBUILD file (including the middle md5sum in the list at the bottom, and the "freedesktop" lines in the middle).

the configure script might die with this message:

./configure: line 5139: syntax error near unexpected token `PACKAGE,'
./configure: line 5139: `PKG_CHECK_MODULES(PACKAGE, $pkg_modules)'

That means you're missing part of the build tools; pacman -S base-devel to get all of them. (Should maybe be an added dependency, but I don't know exactly which missing tool causes that message.)

Offline

Board footer

Powered by FluxBB