Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Slideshow presentation sometimes shows blank black screen
Slideshow presentation sometimes shows blank black screen
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Nov 07, 2012 9:12 pm    Post subject: Slideshow presentation sometimes shows blank black screen

While working on "future proofing" the NeoOffice code, I found a bug that started occurring in NeoOffice 3.3: when running a slideshow presentation in Impress, the first slide sometimes displays for a moment and then is replaced by a blank black screen. This bug occurs most commonly when CPU and memory usage by other applications is very low and after the first time a slideshow is run.

From my debugging work, it appears that this is caused by the OpenOffice.org code redrawing the slide background after drawing the slide content. Essentially, OpenOffice.org queues drawing operations for a slide in the incorrect order.

I think that I have fixed this bug by letting the OpenOffice.org painting timer run immediately after dispatching a focus gained or lost event for the slideshow presentation window.

Can anyone install the following test patch and tell us if they still the blank black screen? Note that you may want to start a slideslow presentation a few times before installing the test patch to confirm that your machine is affected by the bug:

Intel:
http://sally.neooffice.org/test/NeoOffice-3.3-Patch-2-Test-8-Intel.dmg

Patrick
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Thu Nov 08, 2012 3:37 am    Post subject:

I don't see the blank screen bug you describe, but I do have another problem. Using the slide show "Leopardi Operette morali.odp" which was previously posted in the forums I see black slides with blue and yellow areas, but when I run the slide show the blue and yellow areas are black and their rounded corners are coloured instead.

See attached screen shots.

Andy.
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Thu Nov 08, 2012 3:45 am    Post subject:

Followup to my previous post.

This seems to relate to objects with gradient fills.
See attached demo presentation.

Andy
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Nov 08, 2012 9:11 am    Post subject:

amayze wrote:
This seems to relate to objects with gradient fills.
See attached demo presentation.


Thank you for the sample document. I can reproduce this gradient display bug with both the with and without the code change in the test patch so I will start troubleshooting to try and find where the gradient drawing is failing.

When I find the cause and have a fix, I will post another test patch for you to try.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Nov 08, 2012 2:08 pm    Post subject:

I think that I have fixed the slideshow gradient drawing bug in the following test patch. Also, I found that the gradient gets clipped when printing the sample document that attached in your last post so I also included a fix for that bug in the test patch.

Can you confirm that gradients in slideshows and printed output are drawn correctly for you?:

Intel:
http://sally.neooffice.org/test/NeoOffice-3.3-Patch-2-Test-9-Intel.dmg

Patrick
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Fri Nov 09, 2012 2:40 am    Post subject:

I've installed Patch 2 Test 9 and it has fixed the gradient outside the callout problem that I reported and the clipping on print problem that you saw.

There may be a further problem with linear gradients. I've added a slide to my test presentation which shows what I mean. The gradient is smooth for most of the shape and than begins to have parallel black lines through it. This may be an OpenOffice feature of course!

Screen shot attached.

Thanks

Andy
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Nov 09, 2012 11:37 pm    Post subject:

I can reproduce this not only in NeoOffice but also in all versions of OpenOffice.org and LibreOffice so this is definitely an OpenOffice.org bug.

Usually we don't fix OpenOffice.org feature bugs, but the cause of this bug was pretty easy for me to find: the OpenOffice.org engineers did not account for the semi-transparent pixels that are drawn when shapes are drawn with antialiased drawing is enabled. As a result, the semi-transparent pixels that antialiasing draws at the boundary between each color stripes in gradients overlap with the semi-transparent pixels from the adjacent color stripe. This combination of semi-transparent pixels results in the dark lines that you see.

Fortunately, I found a simple solution and I am testing to see if it works in various cases. The problem is that I have so far found to separate chunks of code in OpenOffice.org that draw gradients (one for regular drawing and one for slideshow drawing) and each draws gradients slightly differently.

I will post again when I have more news to report or a test patch for you to try.

Patrick
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Sat Nov 10, 2012 3:25 am    Post subject:

The problem only seems to show itself in the Slide Show, I've never noticed it anywhere else. As you can see in the other screen shots in this thread, the gradients drawn in the Presentation window when editing the file are fine.

Thanks for looking in to this.

Andy
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Nov 10, 2012 10:40 pm    Post subject:

I think that I have fixed all of the slideshow gradient problems in your sample document in the following test patch. Also, I found several more gradient drawing OpenOffice.org bugs when I printed your sample document or exported it to PDF so I fixed those as well.

Can you confirm that all gradients in your sample document are drawn correctly for you when running a slideshow, printing, or exporting to PDF?:

Intel:
http://sally.neooffice.org/test/NeoOffice-3.3-Patch-2-Test-10-Intel.dmg

Patrick
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Mon Nov 12, 2012 1:47 pm    Post subject:

Patch 2 Test 10 fixes the bugs that I reported and I don't see any problems in the pdfs generated by printing.

If I'm being super picky, there is still a slight problem with the slide show drawing. The bounding line of the callout doesn't quite match the fill area, but this really is nit picking.

I attach a couple of screen shots of parts of the second slide in my test presentation to show it.

Cheers,

Andy
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon Nov 12, 2012 2:27 pm    Post subject:

amayze wrote:
If I'm being super picky, there is still a slight problem with the slide show drawing. The bounding line of the callout doesn't quite match the fill area, but this really is nit picking.


I had noticed this yesterday as well. It is really apparent when you print a non-rectangular gradient that is set to be semi-transparent.

I tracked down the cause and the shifted borders around gradients is caused by my fix for the following 3 bugs:

http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&p=62777#62777
http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&p=62805#62805
http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=8467

I will see if I can tweak that fix so that it does not cause gradient borders to shift.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Nov 14, 2012 10:15 pm    Post subject:

I think that I have found to fix the gradient drawing problem in amayze's last post. The following test patch may still draw a few pixels outside of the gradient's border line, but the number of such pixels should significantly less than before.

Can you confirm that all gradients in your sample document are drawn correctly for you when running a slideshow, printing, or exporting to PDF?:

Intel:
http://sally.neooffice.org/test/NeoOffice-3.3-Patch-2-Test-12-Intel.dmg

Note: this patch does not fix this drawing problem for semi-transparent gradients. For those, this problem requires a separate fix. When I have a fix for semi-transparent gradients, I will post another test patch.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Nov 17, 2012 12:36 pm    Post subject:

I think that I have fixed the drawing problem for semi-transparent gradients in the following test patch.

The tricky thing gradients that have transparency enabled is that the OpenOffice.org code renders gradients by drawing the gradient onto a bitmap image. Since bitmap images consist of square pixels, this conversion causes jagged edges on non-rectangular shapes.

So, to work around the jagged edges in semi-transparent gradients, made a few changes such as drawing to higher resolution bitmap images to reduce the pixel size and, in turn, make the jagged edge less visible.

With the following test patch, I think I have optimized all of the various gradient types that the OpenOffice.org supports. Granted, gradients still don't draw perfectly in all cases, but I believe that these optimizations are a significant improvement over the default OpenOffice.org code's gradient drawing.

Can you confirm that all gradients in your sample document are drawn correctly for you when running a slideshow, printing, or exporting to PDF?:

Intel:
http://sally.neooffice.org/test/NeoOffice-3.3-Patch-2-Test-14-Intel.dmg

If you want to test semi-transparent gradients, right-click or Command-click on a gradient and in the popup menu that appears, select the Area menu item. In the dialog that appears, select the Transparency tab, select one of the options other than "No transparency", and click the OK button.

Patrick
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Sun Nov 18, 2012 4:57 am    Post subject:

Sorry for delay in replying.

I've installed Patch 2 Test 14 and it all looks much better. I'll take a closer look in the next couple of days and try out some transparent things too.

Thanks.

Andy
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sun Nov 18, 2012 8:00 am    Post subject:

FYI, I understand that Apache OpenOffice replaced a lot of their drawing code. I don't know if you looked at any of it (I haven't) but I figured it might help if you are stuck with something.
_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.