Issue 19442 - flash export fails when exporting a 2nd time
Summary: flash export fails when exporting a 2nd time
Status: CLOSED FIXED
Alias: None
Product: Impress
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: christian.guenther
QA Contact: issues@graphics
URL:
Keywords: oooqa
: 19033 19478 20205 21177 21589 23194 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-09-11 12:57 UTC by rolf.meyer.hl
Modified: 2013-08-07 15:20 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
eported with 1.1RC4 on WinXP (778.21 KB, application/swf)
2003-09-11 19:34 UTC, andreschnabel
no flags Details
gutes sxf nach Neuinstallation (886.04 KB, application/octet-stream)
2003-09-11 20:24 UTC, rolf.meyer.hl
no flags Details
schlechtes swf nach einem pdf-Export erstellt (885.34 KB, application/octet-stream)
2003-09-11 20:26 UTC, rolf.meyer.hl
no flags Details
minimum presentation to show the problem (8.25 KB, application/octet-stream)
2003-09-11 22:57 UTC, andreschnabel
no flags Details
1st export to flash (1.95 KB, application/octet-stream)
2003-09-11 22:58 UTC, andreschnabel
no flags Details
2nd export in initial impress session (1.49 KB, application/octet-stream)
2003-09-11 22:59 UTC, andreschnabel
no flags Details
export after restart of impress (ok, but not exactly the same as test1) (1.95 KB, application/octet-stream)
2003-09-11 23:00 UTC, andreschnabel
no flags Details
2nd export in new impress session ... funny Charset now (1.94 KB, application/octet-stream)
2003-09-11 23:01 UTC, andreschnabel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rolf.meyer.hl 2003-09-11 12:57:35 UTC
Der Flash-Export liefert fehlerhafte Ergebnisse. (RC4 deutsch Linux)
Zum Beispiel werden in der Präsentation
http://de.openoffice.org/marketing/Vortrag-OOo.sxi
auf mehreren Seiten die Buchstaben falsch oder nicht 
dargestellt.
Comment 1 andreschnabel 2003-09-11 19:27:28 UTC
Rolf: 
ich kann das Problem nicht bestätigen. mein eigener Export (1.1RC4 de
unter WinXP) sieht sauber aus. 
Getestet mit 
- IE 6 / Shockwave Flash Player 5 
- Mozilla / Macromedia Flash Player 6,0,79,0

Das selbe Ergebnis unter Linux (Export mit 1.1RC4, angeschaut mit
Mozilla, Flash Player Version habe ich nicht)

Ich hänge meinen Export an den Issue.

Rolf/Christian .. könnt Ihr mein file ausprobieren und ggf. selbst ein
defektes erzeugen und anhängen?
Comment 2 andreschnabel 2003-09-11 19:34:22 UTC
Created attachment 9212 [details]
eported with 1.1RC4 on WinXP
Comment 3 rolf.meyer.hl 2003-09-11 20:23:17 UTC
Folgendes Verhalten:
1. Neuinstallation von RC4 (Workstation) und sofort Flash-Export
das Ergebnis ist gut (einzig die Nummern in den kleinen Seitenzahlen
sind teilweise schwarz ausgefüllt z.B. die "0" oder "6")
2. Dann verschiedenes gemacht unter anderem pdf-Export, neues
Textdokument geöffnet, etc.
3. Dann Flash-Export - Ergebnis -> nicht zugebrauchen.

Den Versuch habe ich zweimal durchgeführt (beim letzten Versuch "nur"
einmal Flash-Export nach der Installation und einmal pdf-Export
(Druckvorstufe) der Präsentation gemacht.
Bei dem nachfolgendem Flashexport: Ergebnis -> nicht zugebrauchen.
(beide Versionen des Versuches werde ich auf den Issue laden)

Mein Rechner: Suse 8.0 prof. 1200Mhz 1500MB RAM (unter KDE gearbeitet)

Das "Flasherzeugnis" von Andre sieht bei mir unter Opera6 (Flash5 und
6 installiert - weiß aber nicht welches benutzt wird) perfekt aus.
Comment 4 rolf.meyer.hl 2003-09-11 20:24:46 UTC
Created attachment 9214 [details]
gutes sxf nach Neuinstallation
Comment 5 rolf.meyer.hl 2003-09-11 20:26:50 UTC
Created attachment 9215 [details]
schlechtes swf nach einem pdf-Export erstellt
Comment 6 lohmaier 2003-09-11 21:30:12 UTC
reproduzierbar.
Vor PDF-Export ist alles OK, danach kommt Murks. Wird die Datei
geschlossen und wieder neu geladen ist wieder alles OK.

Ich glaube nicht, daß der PDF-Export schuldig ist, vielmehr liefert
bereits der zweite swf-Export ein unbrauchbares Ergebnis.

Exportiert man zuerst nach PDF und generiert danach ein swf ist das
swf in Ordnung.

Also zum Reproduzieren einfach das swf zweimal nach Flash exportieren.
Der erste Export ist 1a, der zweite ist bereits unbrauchbar. Die erste
Seite geht gerade noch ("Welleneffekt" beim Text), aber bereits bei
der zweiten Seite fehlt der Text komplett, es sind nur noch die
Bullets vorhanden. (Die Seitennummern sind in Ordnung und die
Ãœberschriften zeigen den "Welleneffekt" wie die Titelseite)
Comment 7 lohmaier 2003-09-11 21:34:22 UTC
Passiert übrigends mit dem englishen (preview) RC4 genauso..
Comment 8 andreschnabel 2003-09-11 22:56:00 UTC
short English translation:

Impress fails to export presentations to Flash if you try it a second
time. Text is missing or disturbed. See attached files (test.sxi,
test1.swf to test4.swf)

This seems to affect at least Linux systems, but not Windows.


Comment 9 andreschnabel 2003-09-11 22:57:06 UTC
Created attachment 9218 [details]
minimum presentation to show the problem
Comment 10 andreschnabel 2003-09-11 22:58:01 UTC
Created attachment 9219 [details]
1st export to flash
Comment 11 andreschnabel 2003-09-11 22:59:16 UTC
Created attachment 9220 [details]
2nd export in initial impress session
Comment 12 andreschnabel 2003-09-11 23:00:06 UTC
Created attachment 9221 [details]
export after restart of impress (ok, but not exactly the same as test1)
Comment 13 andreschnabel 2003-09-11 23:01:05 UTC
Created attachment 9222 [details]
2nd export in new impress session ... funny Charset now
Comment 14 wolframgarten 2003-09-12 07:17:53 UTC
Reassigned to Christian.
Comment 15 christian.guenther 2003-09-12 09:50:55 UTC
I can reprosuce the bug on Linux.
I can't reproduce it on Windows.
Please have a look
Comment 16 christian.guenther 2003-09-12 10:32:08 UTC
On Solaris I can reproduce the 'wavy' text after the export but not
the missing text.
Comment 17 thb 2003-09-12 18:00:47 UTC
Okay, had a look at that. The problem is limited to the *nix
platforms, because it's related to the FreeType fontcache. Since
freetype > 2.0.9, we seem to use FT_SizeRec objects as
FT_FaceRec-subsidiaries. This was AFAIK due to some heavy performance
and mem footprint probs, especially for CJK fonts. Unfortunately, this
breaks FreetypeServerFont::GetGlyphOutline(), because seemingly the
last selected size is used. This is correct for the first export (the
faces are newly created), but wrong for every subsequent one (the
cached faces are used, and the selected size thereon is arbitrary). If
I comment out bEnableSizeFT = (pFTNewSize!=NULL) &&
(pFTActivateSize!=NULL) && (pFTDoneSize!=NULL) in the FreetypeManager
constructor, everything is alright again. Only that this disables said
caching mechanism. The obvious fix, namely to call     

if( maSizeFT )
        pFTActivateSize( maSizeFT );

first in FreetypeServerFont::GetGlyphOutline, actually crashes my X
server :-(

To conclude, I don't know that code well enough to supply a valid fix,
especially not in a last-minute manner, without proper QA coverage.
Let's HDU have a look on that, I'd say.
Comment 18 hdu@apache.org 2003-09-23 17:52:16 UTC
thanks for the analysis...
Comment 19 hdu@apache.org 2003-09-24 13:18:16 UTC
*** Issue 19033 has been marked as a duplicate of this issue. ***
Comment 20 hdu@apache.org 2003-09-24 13:22:30 UTC
Fixed in CWS vcl7pp1r3.
Comment 21 hdu@apache.org 2003-09-29 11:51:07 UTC
*** Issue 20205 has been marked as a duplicate of this issue. ***
Comment 22 hdu@apache.org 2003-10-14 16:07:35 UTC
*** Issue 21177 has been marked as a duplicate of this issue. ***
Comment 23 hdu@apache.org 2003-10-27 13:00:46 UTC
*** Issue 21589 has been marked as a duplicate of this issue. ***
Comment 24 hdu@apache.org 2003-11-13 09:54:20 UTC
HDU->CGU: please verify in CWS vcl7pp1r3
Comment 25 christian.guenther 2003-11-21 08:46:09 UTC
change the resolution to fixed.
Comment 26 christian.guenther 2003-11-21 08:47:37 UTC
Verified in vcl7pp1r3 on Sols, Lin.
Comment 27 hdu@apache.org 2004-01-15 14:19:42 UTC
*** Issue 19478 has been marked as a duplicate of this issue. ***
Comment 28 thb 2004-01-16 10:14:12 UTC
*** Issue 23194 has been marked as a duplicate of this issue. ***
Comment 29 wolframgarten 2004-01-27 15:00:05 UTC
*** Issue 21589 has been marked as a duplicate of this issue. ***
Comment 30 christian.guenther 2004-01-28 14:51:23 UTC
The fix is integrated in OOo1.1.1 on Sols, Lin.
This version will be available soon.