Issue 42995 - "could not create system bitmap"
Summary: "could not create system bitmap"
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 13:41 UTC by chne
Modified: 2013-02-24 21:09 UTC (History)
2 users (show)

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


Attachments
testcase to verify the behaviour (286.09 KB, application/x-compressed)
2005-02-22 09:12 UTC, stephan.wunderlich
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2005-02-17 13:41:43 UTC
In some special cases I got a "could not create system bitmap" excpetion. The
environment to get this is dificult. I could reproduce it if I have :

- the attached views.xcu in my registry folder
- office is runnig and listen on port 8100
- the navigator window is on the top and have the focus
- run an UNO-API test

To run the UNO-API-Test start your office with parameter

"-accept=socket,host=0,port=8100;urp;" 

and call inside a solar shell:

checkapi -o fwk.ModuleManager

While to start the UNO-API test the focus is in a shell, you have to set the
focus to the navigator window as soon as possible after you have start the test.
Comment 1 christof.pintaske 2005-02-18 16:55:33 UTC
we don't get this fixed for 2.0 anymore. Postponing to 2.0.1
Comment 2 stephan_schaefer 2005-02-21 09:53:55 UTC
The problem is that no graphics can be created. The number of system graphics
(DCs) is already exhausted and the fallback list for window graphics is empty.
However, the fallback list for virtual device graphics is not empty and in fact
a virdev is about to be created. May be the lists can be shared... ?
Comment 3 chne 2005-02-21 10:02:11 UTC
note: It is not needed to copy the view.xcu into your folder. It is sufficing to
open the stylist window and give it the focus.
Comment 4 stephan.wunderlich 2005-02-21 10:58:10 UTC
sw->cp: this will break the remote connection to the office, since the problem
appears on a regular base and afterwards the bridge is unusable, so we should
consider to get this done for OOo 2.0 ... the testcase below raises the
described exception every time, the only precondition is that the stylist is
open and focused to make the failure reliable.
Comment 5 stephan.wunderlich 2005-02-22 09:12:30 UTC
Created attachment 22914 [details]
testcase to verify the behaviour
Comment 6 stephan.wunderlich 2005-02-22 09:35:23 UTC
Attached is a testcase that makes the behaviour reproducible on all windows
machines I could get my fingers on ;-)

To reproduce:
1. open the office and dock the stylist and navigator
2. execute the script "runMe" in the attached zip-archive with the
office-installation-path as parameter.
Comment 7 stephan_schaefer 2005-03-16 11:44:52 UTC
(Probably) fixed in VCL 37. The problem seems to have to do with the reparenting
of system windows which was performed much too often, even if the parent did not
change. The reparenting is done by destroying the old window and device context
and creating new ones. May be this introduced an instability under certain
circumstances which is just avoided now most of the time. 


Comment 8 stephan_schaefer 2005-03-16 11:46:11 UTC
ssa->sw: Please verify in VCL37.

re-open issue and reassign to sw@openoffice.org
Comment 9 stephan_schaefer 2005-03-16 11:46:15 UTC
reassign to sw@openoffice.org
Comment 10 stephan_schaefer 2005-03-16 11:46:19 UTC
reset resolution to FIXED
Comment 11 stephan_schaefer 2005-03-16 11:47:17 UTC
adjusting target
Comment 12 stephan.wunderlich 2005-03-16 12:56:10 UTC
works as expected in cws_vcl37 => verified
Comment 13 stephan.wunderlich 2005-04-01 10:46:49 UTC
ok in src680_m90 => closed
Comment 14 stephan.wunderlich 2005-04-01 10:47:31 UTC
and now I found the closed button too ;-)