Issue 103266 - database file is corrupt after open report in bugdoc
Summary: database file is corrupt after open report in bugdoc
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: ReportBuilder (show other issues)
Version: recent-trunk
Hardware: All Linux, all
: P2 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 09:55 UTC by marc.neumann
Modified: 2017-05-20 10:29 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description marc.neumann 2009-07-02 09:55:54 UTC
[ linux only ]
- open bugdoc
http://www.openoffice.org/nonav/issues/showattachment.cgi/62576/Demo_SRB1_1pourOOo3_1.odb
- open report by double click
- close the database
- reopen the database
==>> you got an ascii filter dialog
this does not happened in m50 or m51
Comment 1 ocke.janssen 2009-07-03 09:11:52 UTC
Please have a look at this one. Thanks.
Comment 2 mikhail.voytenko 2009-07-07 10:17:58 UTC
The investigation of the broken document shows that the first bytes are lost (
in the document I have investigated the first 2212 bytes were lost ). But the
rest of the document looks to have valid info. The fact that this info itself
contains reference to the current stream position means for me that at the point
of generation the stream still was OK. In other words the corruption seems to
happen after the package component has generated the valid file stream.

Changing the target to OOo3.2 for now.
The problem seems to be reproducible in DEV300_m51 as well ( only sometimes on
some machines ). Unfortunately I could not reproduce it myself till now.
Comment 3 Frank Schönheit 2009-07-07 11:53:30 UTC
removing CWS name tag from summary, as it is reproducible in MWS, too.
Comment 4 marc.neumann 2009-08-12 13:23:16 UTC
@mav: any news when this issue will be fixed. It's annoying to do the work again
and again, because a file is often corrupt.
Comment 5 mikhail.voytenko 2009-08-13 07:33:50 UTC
I will try to integrate the fix ASAP, is there a database cws that will be in QA
next week?
Comment 6 Frank Schönheit 2009-08-13 08:00:34 UTC
We don't have a plan for such a CWS. If you want, and Marc agrees, you could
hijack dba32f. This one is brand-new, and intended for ongoing development, but
if it helps getting in your fix quickly, I'd offer it to you.
Comment 7 marc.neumann 2009-08-13 08:08:52 UTC
Yes , I agree. I will add the isssue to the CWS.
Comment 8 mikhail.voytenko 2009-08-13 08:19:25 UTC
Thank you. I would suggest then to use fwk115. It was planned as StarOffice only
fixes cws, and should go to the QA begin of the next week. So the dba32f could
be used further, and we have one CWS less on automated tests queue next week.

I have just asked for the case that there is a CWS that will anyway be tested by
Marc next week.
Comment 9 mikhail.voytenko 2009-08-13 08:44:40 UTC
As we have discussed with Marc, the issue stays in dba32f.
Comment 10 mikhail.voytenko 2009-08-14 14:59:42 UTC
The possibility for race condition is fixed in dba32f.
Comment 11 mikhail.voytenko 2009-08-20 08:30:49 UTC
mav->msc: Please verify the issue in dba32f.
Comment 12 marc.neumann 2009-08-25 09:50:45 UTC
reopen, because it's not fixed. The bug still happened exactly as before.
Comment 13 marc.neumann 2009-08-25 09:52:02 UTC
reassign back to developer
Comment 14 mikhail.voytenko 2009-08-25 10:29:39 UTC
Hm, I must confess I could never reproduce the problem so it was a kind of blind
fix, I have fixed the only known for me possibility for the problem. Currently I
have no other idea what could go wrong on package side.

The problem looks to be that somebody works with the stream while the package
component is writing to it. It looks like seek(0) is done on the stream after
"database/log" file has been written.
Comment 15 mikhail.voytenko 2009-08-27 09:26:42 UTC
There was another possibility to affect the result stream from another thread
while the package was commited. Should be fixed now as well.

mav->fs: Could you please build the cws again.
Comment 16 marc.neumann 2009-08-28 09:51:48 UTC
reassign to msc
Comment 17 marc.neumann 2009-08-28 09:55:57 UTC
verified in CWS dba32f

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba32f