Issue 886 - Crash while switching off design mode on forms
Summary: Crash while switching off design mode on forms
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 614
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@www
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-14 12:11 UTC by schulten
Modified: 2003-12-06 14:52 UTC (History)
2 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 schulten 2001-05-14 12:11:58 UTC
Drop a button component into a writer doc.
Switch off design mode.
-> OO627 crashes.
Comment 1 Unknown 2001-05-14 13:09:40 UTC
TH->SBA: Couldn't reproduce this problem in the current version. Please take a
look at this problem.
Comment 2 stefan.baltzer 2001-05-14 15:21:31 UTC
I could not reproduce it on Win2000 with my OO627 either. => Dietrich, please 
add a few more details.
Comment 3 schulten 2001-05-15 19:24:44 UTC
OK, I have it.
The crash happens with the new dlls I've built to fix a problem with JDBC:
jdbc2.dll, sdbc2.dll, dbtools2.dll

I replaced connectivity/source/drivers/jdbc/Jdriver.cxx tools.cxx object.cxx, 
source/inc/java/tools.hxx and source/inc/java/util/Property.hxx by the current 
versions from cvs.

Then I "dmade" connectivity and replaced the original 3 dlls.

I did this according to
<A HREF="http://dba.openoffice.org/dba-dev/msg00108.html">dba-archive</A>

-> crash
Comment 4 Frank Schönheit 2001-05-16 10:04:31 UTC
Dietrich, as I think that you have a debugger at hand: do you have a stack of 
the crash? 

And can you please add some more details about the data the document is working 
with?

BTW: Perhaps we should re-assign this bug to dba instead of gsl. I know that 
the forms module (which may be involved here) is part of the gsl project, but 
this is to be changed, anyway (it clearly belongs into dba).
Comment 5 schulten 2001-05-16 14:14:08 UTC
Er - a machine stack? Hexadecimal/ASCII?
Maybe I should send you the three dlls?

No data, I drop a button and switch off design mode, that's all.

If you want to reassign this bug, go ahead.


Comment 6 Frank Schönheit 2001-05-16 14:31:20 UTC
NO DATA?

This means you simply drop a button in the doc, switch off the design mode and 
then it crashes? Without specifying a data source for the form?
And this happens only if your new libs are used?

If so, this sounds like an incompatibility of your libs. Besides the fact that 
I'm not sure if they should be used at this moment (which seems to be a bug of 
it's own), would you please try to rebuild your libs?

For the stack:
* start the office from within the developer studio (or attach to a running 
process viao Build/Start Debug/Attach to process - if you have version 6)
* if the office crashes, the debugger should show you at least the library 
where this happened (View/Debug Windows/Call stack or Alt-7)
* link this libraries in question with debug enabled (only link, no new 
compilation needed), place it in your office program dir
* now if OOo crashes, you should see a list of method names, which is the stack 
frame

You could extend this with every other library on the stack (link it with 
debug), but mostly the 1 or maybe 2 libs are enough so that the stack is 
somewhat meaningful.

But if this is really an incompatibility, the stack is usually useless, so 
could you please try this (incompatibility theory) first?
Comment 7 stefan.baltzer 2001-05-16 16:48:17 UTC
Reassigned to Frank
Comment 8 schulten 2001-05-17 15:16:05 UTC
>This means you simply drop a button in the doc, switch off the design mode 
>and  then it crashes? Without specifying a data source for the form?
>And this happens only if your new libs are used?

Yes, yes and yes.

Run from within VCC, I first get unhandled exception in soffice.exe: 
cppuhelper2msc.dll 0xC0000005: Access Violation.

After clicking OK, the call stack (Alt F7) contains:
cppuhelper2msc! 
dl627mi!

Is it possible that I have to exchange dba627mi.dll or something?

I've rebuilt normally and run in the debugger, then with debug=1 and run in the 
debugger.
Comment 9 Frank Schönheit 2001-05-17 16:05:09 UTC
> Run from within VCC, I first get unhandled exception in
> soffice.exe: 
> cppuhelper2msc.dll 0xC0000005: Access Violation.

> After clicking OK, the call stack (Alt F7) contains:
> cppuhelper2msc! 
> dl627mi!

This is an incompatibility. Though I can't imagine why ...

It looks as if the dl lib (which is built in graphics/svx and contains the code 
from svx/source/form and svx/source/fmcomp) is incompatible.
Of the 3 libs you exchanged, the only one which the dl*.dll links against is 
dbtools, so I assume that this causes the trouble.
(BTW: didn't notice this earlier, but: Why did you exchange _3_ libs? From the 
files you modified I would assume that only jdbc2.dll should have been 
affected ...)
Solution 1 would be to get the svx module and recompile the 2 mentioned 
directories, but this would only fix symptoms (and may not be sufficient).

What if you just us your jdbc2.dll, and leave the others untouched?

Is it possible that you did more changes in connectivity than only the files 
mentioned?

Would you mind trying a new (clean) approach and get a new connectivity 
project, compile it (_without_ doing the java changes for now), use it's libs, 
and see if it still crashes? If _not_, patch the java files and use the new 
java lib (the other's shouldn't have changed now!).

This would help tracking down the problem (it may even be that the code in 
connectivity as got from OOo for SRC627 is not really compatible with the 627 
version. Wouldn't be the first bug of this kind ...)
Comment 10 schulten 2001-05-20 14:57:09 UTC
A new test with jdbc2.dll only no longer crashes. There must be an 
incompatibility between dbtools/sdbc and the rest of the office, or VCC 
Standard compiles so differently from VCC optimizing, that an incompatibility 
occurs.
Besides it was necessary to use JDK1.2.2, not JRE1.2.2 with OOo. The standalone 
JRE seems not to work.

D.
Comment 11 Frank Schönheit 2001-12-11 10:02:10 UTC
Dietrich,

do you (as the submitter) object against closing this bug? It obviously does not happen in the latest 
build anymore, and it was an incompatibility of your build only ....
Comment 12 Frank Schönheit 2001-12-11 11:10:01 UTC
forgot to mark this as "verified" ...

Comment 13 Frank Schönheit 2002-02-18 10:46:18 UTC
closing this - verified it, and got no feedback from Dietrich.