nagyistoce / open-pdf-presenter

Automatically exported from code.google.com/p/open-pdf-presenter
GNU General Public License v3.0
0 stars 0 forks source link

Resolution problems #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have the two monitors (e.g. Laptop, external) with different screen 
resolution
2. Run open-pdf-presenter 
3. Switch screens if necessary (Note: in my laptop the presentation is coming 
to the main screen, I think it should go to the secondary monitor. 
4. Press the "Notes" icon

What is the expected output? What do you see instead?
I cannot see the panel in the bottom of the screen. I had to switch screen 
twice (send the presenter view to the secondary and back to the primary screen) 
and the panel would be visible. However, the portion of the presenter view that 
was supposed to show the screen is somehow cut (I cannot see the entire slide) 
and if I move the mouse I lose the panel again. 

What version of the product are you using? On what operating system?
0.2 on a Linux Mint 12 (Xfce 4)

Please provide any additional information below.

Original issue reported on code.google.com by danielmn...@gmail.com on 28 Mar 2012 at 1:36

GoogleCodeExporter commented 9 years ago
Hi,

That is a sneaky bug that I have already experienced but could not reproduce 
accurately.

I need more info:
 - Can you tell me the resolution in which the two monitors are?
 - Can you confirm if any PDF reproduces the bug in that setting?
 - If it is just your PDF, can you send it? (do not attach it if you do not feel comfortable making it public, send it via e-mail)
 - Which are the specs (CPU and amount of RAM) of the machine in which the bug happens? I think this bug happens more frequently on slower machines (atoms and such)

Thanks for your interest in open-pdf-presenter! I hope this bug did not 
embarrass you before giving a talk with some audience.

Original comment by zait...@gmail.com on 28 Mar 2012 at 10:39

GoogleCodeExporter commented 9 years ago
Sorry for the delay on answering this. 

Answering your questions: 
1) The resolutions I had tested before were: 
   Laptop resolution 1366x768   
   External Monitor: 1600x1200

I know that the external monitor resolution is not common for a usual 
presentation, but it's the one I usually use for "practices". 

So, I tried to reduce the external monitor to 800x600 and I still had problems 
(mostly the slides in the presenter view were cut). Finally, I tried to use the 
external as 1024x768 (thus the same vertical resolution of my laptop and it 
worked fine). I guess that the problem is when both monitors have different 
"height". 

2,3) Yes. I have the problem with any presentation in PDF. Not only mine, I got 
one from internet (e.g., google for "A Beamer tutorial in Beamer"). As both 
were created using Beamer, I  also converted one from Impress. The problem 
persisted. 

4) Intel i5 with 8GB of RAM. So, I don't think it's the machine. 

Also, *I thank you* for the program. And I am impressed for your rather quick 
replies. Honestly, I was expecting the project to be "frozen" (last update was 
Jan) ;)

By the way... don't worry... No embarrassment here... I didn't actually use it 
in public yet, but I likely will.   

Original comment by danielmn...@gmail.com on 28 Mar 2012 at 11:44

GoogleCodeExporter commented 9 years ago
Hello again,

Thanks for all your info and prompt response.

I consider that this bug threatens open-pdf-presenter's credibility and I'll 
look into it as soon as possible. However, right now I am swamped with work and 
it might take a week or two until I start working on this bug.

I'll keep you posted :)

Original comment by zait...@gmail.com on 29 Mar 2012 at 10:53

GoogleCodeExporter commented 9 years ago
I have just reproduced this bug. My monitor setup is: 1920x1200 + 1366x768

I had never tested open-pdf-presenter on two monitors with such a resolution 
difference, and it does not work as expected.

I'll be working on this soon, I'll post here a patch as soon as I have it. 
Then, will you be able to build from source, apply the patch, and report back 
the result?

Original comment by zait...@gmail.com on 6 Apr 2012 at 11:11

GoogleCodeExporter commented 9 years ago
Yes. Looking forward to it. 

And about the resolution difference as I mentioned before, I had problems 
whenever the vertical resolution was different. Either the laptop or the 
monitor/projector would present problems. 

Thanks a lot for your attention. 

Original comment by danielmn...@gmail.com on 6 Apr 2012 at 5:50

GoogleCodeExporter commented 9 years ago
Hello,

I am attaching a patch that fixes the problem on my setup.

Can you confirm that it fixes the problem on your side as well?

Friendly reminder: To apply this patch, just cd to the root dir of the project 
and run:
patch -p1 < issue4.patch

Original comment by zait...@gmail.com on 10 Apr 2012 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
Not really. Let me explain the two scenarios I tested: 

1) Laptop at 1366x768 and external at 1690x1200 (default config for both)

It worked fine, but the presentation in the external monitor was not full 
screen. There was a large grey border. 

2) Laptop at 1366x768 and external at 800x600. 

It worked almost fine. At the beginning, after switching monitors (the 
presenter still goes to the external monitor), the image is too big and parts 
of the slides are  not visible. After changing slides, it goes back to normal. 
(It might be something related to the cache, but this is a wild guess)

Also, in some attempts, when I tried to call and passing the slide file at the 
command line it would not execute, returning some errors. Simply repeating the 
command works. 

An example of these attempts is listed below: 

daniel@Tardis:~/projects/open-pdf-presenter$ ./open-pdf-presenter 
~/Desktop/pdf-slides.pdf 
No power management compiled-in. Don't forget to disable your screensaver and 
computer sleep! 
Main slide geometry  1366 x 768 
"Error: Top-level pages object is wrong type (null)" 
Segmentation fault
daniel@Tardis:~/projects/open-pdf-presenter$ ./open-pdf-presenter 
~/Desktop/pdf-slides.pdf 
No power management compiled-in. Don't forget to disable your screensaver and 
computer sleep! 
Main slide geometry  1366 x 768 
"Error: Could not find catalog dictionary" 
Segmentation fault
daniel@Tardis:~/projects/open-pdf-presenter$ ./open-pdf-presenter 
~/Desktop/pdf-slides.pdf 
No power management compiled-in. Don't forget to disable your screensaver and 
computer sleep! 
Main slide geometry  1366 x 768 
Rendered slide number  0  at  1018 x 767 
Rendered slide number  1  at  1018 x 767 
.... 
And it runs fine. 

Original comment by danielmn...@gmail.com on 10 Apr 2012 at 7:37

GoogleCodeExporter commented 9 years ago
Thanks for your reply. Here's some thoughts:

Setup 1:
I believe that the large grey border is normal. If you look at the printscreens 
I have on the index page of the project, you will see some grey bars on the 
side of the slide.

Open-pdf-presenter always keeps the original aspect ratio of the slides. 
Therefore, if the screen's resolution does not match the aspect ratio of the 
slide, open-pdf-presenter does not show the slide fullscreen. Instead, it 
computes the maximum usable area that does not change the aspect ratio and 
shows the slide inside this area, centered. Can you confirm this behaviour or 
send me a printscreen (and the pdf) that shows the bug?

Setup 2:
When you change monitors, open-pdf-presenter starts re-rendering all slides for 
the new resolution. This actually increases the quality of the slides on 
fullscreen, as open-pdf-presenter forces poppler (the PDF rendering library) to 
render the slide on the correct resolution instead of scaling and antialiasing 
it.

However, open-pdf-presenter should scale slides that are not rendered for the 
current main screen. That is the bug that you describe, in which the slide is 
too big for the smaller screen (after all, it was rendered for the bigger 
screen). If you wait a bit, open-pdf-presenter ends up re-rendering such a 
slide correctly.

About the segfault:
I don't like to blame others, but this is the case: The segfault is a problem 
with poppler rendering your PDF. I really can't do anything to fix that. Sorry 
:(

Sorry for the rather long reply. I will work further on the patch so that 
open-pdf-presenter never shows an image too big, scaling it when needed. I'll 
keep you posted.

Original comment by zait...@gmail.com on 10 Apr 2012 at 8:13

GoogleCodeExporter commented 9 years ago
First off, I actually do appreciate you taking the time to reply, so don't be 
sorry for a rather long reply. It's much appreciated. It seems I'll reply 
backwords, for my own convenience. 

About segfault, it's fine... I just had to mention, right? And it works once in 
a while anyway, so not a big deal. 

About Setup 2: It does make sense. Thanks for the explanation. 

About Setup 1 (and I wanted to discuss this at the end): If you're trying to 
keep proportion, the grey areas on the sides of the slides, as in the 
printscreens in your site, are perfectly fine. However, what I am having is 
grey areas on the sides and also on the top and bottom of the slides (imagine a 
grey background with the slide just sitting in the center or your slide with a 
huge grey border in all 4 sides). 

For some reason, I couldn't (yet) get a screenshot. The file I am attaching is 
one of your images modified to represent what I see here. (I hope that helps.) 
I'll try to get an actual screenshot later and send it to you, but I wanted to 
give you a reply ASAP. 

P.S: Are you from Portugal? 

Original comment by danielmn...@gmail.com on 10 Apr 2012 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
Getting grey bars on all 4 sides of the slide is indeed odd. That happens 
usually when you change screens to a bigger screen and the slides were rendered 
for the smaller screen. I will need more info to solve that one...

Yes, I am from Portugal :)

Original comment by zait...@gmail.com on 10 Apr 2012 at 9:22

GoogleCodeExporter commented 9 years ago
Hello,

I am attaching a patch to enable slide scaling when the screens change. When 
you change from the main slide being rendered on the big screen to the small 
screen, this patch scales down the oversized slide to match the resolution of 
the smaller screen.

It also works on the other way: When you change from the small screen to the 
big screen, this patch makes the small slide scale up (antialiased) to match 
the bigger resolution.

This patch also adds some more debug information about the resolution at which 
each slide is displayed.

File issue4-2.patch expects the first patch that I attached here to be applied 
previously. Let me know if you have any trouble applying it.

Original comment by zait...@gmail.com on 12 Apr 2012 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi there,

I had similar scaling/resolution issues with open-pdf-presenter which are 
generally fixed for me after the issue4 and issue4-2 patches. There is one new 
issue, though, where no slides appear on the Notes screen (just borders without 
actual slides). Can anyone reproduce that problem? I'd be happy to add a 
screenshot if not.

Best,
Philipp

Original comment by rob...@gmail.com on 17 Apr 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Hi Philipp,

I can reproduce your problem after applying the patches. I have not noticed it 
before.

I'll work on it and report back with another patch as soon as I fix it. Thanks 
for noticing this bug and reporting it :)

Original comment by zait...@gmail.com on 17 Apr 2012 at 9:53

GoogleCodeExporter commented 9 years ago
Ok, this was a simple one. I am attaching a patch that fixes the problem with 
the notes screen on my side.

Can you confirm it fixes the problem on your side as well?

Original comment by zait...@gmail.com on 17 Apr 2012 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks so much for the quick patch. I can confirm that everything is working on 
my end.

Original comment by rob...@gmail.com on 17 Apr 2012 at 7:22

GoogleCodeExporter commented 9 years ago
Since I have confirmation that this issue is fixed, I am marking it as so and I 
am committing all these patches to the development branch.

This issue will be fixed on open-pdf-presenter version 0.2.1, which I will 
release soon. I will post here when version 0.2.1 gets released.

Original comment by zait...@gmail.com on 18 Apr 2012 at 2:50