Arrsoya / jmupdf

Automatically exported from code.google.com/p/jmupdf
1 stars 0 forks source link

empty pages on linux #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tested jmupdf-0.4 on win xp (x32) and ubuntu 11.10 (x64). On win xp it's run 
fine and render all documents that's i tested. But on ubuntu i get always empty 
pages !

Original issue reported on code.google.com by michael....@gmail.com on 20 Feb 2012 at 7:02

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I tested in Ubuntu 11.10 and had no issues.I attached screen shot as proof. 

What version of Java are you using?

Thanks,

Pedro

Original comment by pedro.ri...@gmail.com on 20 Feb 2012 at 6:03

Attachments:

GoogleCodeExporter commented 9 years ago
I will test on UBUNTU x64 to see if it makes any difference. The previous test 
was on x32 of UBUNTU.

Original comment by pedro.ri...@gmail.com on 20 Feb 2012 at 6:05

GoogleCodeExporter commented 9 years ago
I tested now also on ubuntu x32 and win 7 and different pdf's. I found some 
self-created pdf's that's shown on windows but generate empty pages on linux. I 
attached a sample.

Original comment by michael....@gmail.com on 20 Feb 2012 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago
I tested the pdf you attached. I could not replicate the problem you are 
having. I attached a screen shot of the pdf being rendered properly in Ubuntu 
11.10.

There must be something different about your UBUNTU system that is causing the 
problem. 

What JVM version are you using? I have OpenJdk6 installed.

Please let me know as I would like to know what is causing the problem on your 
system.

Thanks,

Pedro

Original comment by pedro.ri...@gmail.com on 20 Feb 2012 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
I tested this on Ububtu 11.10 x64 with no issues.

Original comment by pedro.ri...@gmail.com on 21 Feb 2012 at 1:43

GoogleCodeExporter commented 9 years ago
I tested on a english ubuntu and it's ok ! I think the problem are the regional 
formats settings. Please change the regional formats to "Deutsch (Deutschland)" 
and apply system-wide. After restart jmupdf generate empty pages with my doc.

Original comment by michael....@gmail.com on 21 Feb 2012 at 10:36

GoogleCodeExporter commented 9 years ago
Ok. That makes more sense. I will verify this and let you know what I find. 

Thanks!

Original comment by pedro.ri...@gmail.com on 21 Feb 2012 at 12:49

GoogleCodeExporter commented 9 years ago
After much debugging we discovered that setting the GTK look and feel under 
Ubuntu was the culprit. So the "bug" is limited to the Swing sample 
application. In order to get it to work properly I disabled setting the GTK+ 
look and feel. It probably shouldn't be used anyway as a lot of documentation I 
read about it says that there are a lot of bugs associated with the GTK+ L&F.

I changed the swing code to not change the L&F and everything works just fine. 
Here is the change I made:

http://code.google.com/p/jmupdf/source/detail?r=9ae2046c613c4005b9e14c14c14b73ee
4e8ef2a9

You could just comment out the setLookAndFeel() call in MainView.java. 

I tested this issue in OpenJdk6 and in Oracles latest v6 release. Bottom line 
is that the GTK+L&F is still buggy and shouldn't be used in production anyway.

I should be putting new binaries out by the end of this week.

Thanks,

Pedro

Original comment by pedro.ri...@gmail.com on 23 Feb 2012 at 1:17

GoogleCodeExporter commented 9 years ago
Final Notes:
============
Closing issue as bug is in Java layer. GTK+ LAF is buggy in swing. Using the 
default "Metal" LAF works as expected. GTK+ LAF is still buggy under OpenJDK6 
and Oracles' JRE 6. This problem seems to be isolated to Linux distros only 
when regional settings is other than English. Windows LAF is not affected.

This hasn't been tested under JRE/JDK 7 yet.

Solution:
=========
Use cross platform LAF (metal). This is the default when no LAF is specified. 

I will be documenting this in its own wiki document for future reference.

Original comment by pedro.ri...@gmail.com on 23 Feb 2012 at 1:59