Welcome to NeoOffice Forums
NeoOffice
 
Official online support site for NeoOffice

Trinity
· Home
· Private Messages
· Your Account


RSS Feeds
· NeoOffice Releases
· Forum Posts
· Beta Releases
· Headlines


Twitter Feeds
· @NeoOffice


Download NeoOffice
· Get NeoOffice
· Get the Latest Patch
· Language Packs
· User Guide
· User Guide Volume 2


Other Websites
· NeoOffice.org
· NeoWiki


Languages
Select Interface Language:



  
trinity.neooffice.org :: View topic - Slideshow presentation sometimes shows blank black screen
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Private MessagesPrivate Messages   Log inLog in 

Slideshow presentation sometimes shows blank black screen
Users who have purchased direct support within the last year can post
Goto page 1, 2  Next
 
Post new topic   Reply to topic    trinity.neooffice.org Forum Index -> NeoOffice Support
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

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
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

Followup to my previous post.

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

Andy
Back to top
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

PostPosted: Thu Nov 08, 2012 2:08 pm    Post subject: Reply with quote

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

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
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

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
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

PostPosted: Sat Nov 10, 2012 10:40 pm    Post subject: Reply with quote

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

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
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11397
Location: California, USA

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

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

_________________
NeoOffice engineer
Back to top
View user's profile Send private message Visit poster's website
amayze
The Merovingian


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

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

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
View user's profile Send private message Visit poster's website
ovvldc
Captain Naiobi


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

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

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    trinity.neooffice.org Forum Index -> NeoOffice Support 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.
Page Generation: 0.06 Seconds