Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | com.sun.star.scanner.ScannerManager makes OOo to hang up from a BeanShell script | ||
---|---|---|---|
Product: | App Dev | Reporter: | jmarton <jmarton> |
Component: | api | Assignee: | AOO issues mailing list <issues> |
Status: | UNCONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Attachments: |
Description
jmarton
2006-11-11 00:01:40 UTC
Created attachment 40508 [details]
the referenced script that makes OOo to hang up deterministic upon ScannerManager.startScan(...) call
jsc -> ka: cl told me that you are the expert for the scanner API, i assume a threading problem in the context of the beanshell ... Created attachment 42202 [details]
Java program trying to utilize the scanner API
The attached PatronCard.java produces the same effect as the previously submitted BeanShell script: makes OOo to hang up at the startScan call. Additionally, when I try to wait for the scan to finish with the o.wait() call at line 127, IllegalMonitorStateException is thrown. It seems for me that the scanning thread dies (the scanner GUI disappears) and the provided disposing method never gets called. stack trace as follows: java.lang.IllegalMonitorStateException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at hu.bute.vzqixx.PatronCard.PatronCard.main(PatronCard.java:127) ka->jmarton: can you still reproduce this behavior with a current release of OOo? Please reassign to me, if you still can. worksfor me -< closed Created attachment 70913 [details]
new ScannerTest Java program
jmarton->ka: the problem still persist using OpenOffice.org 3.2.1 (OOO320m19, Build: 9505). I've attached a somewhat polished ScannerTest.java source to this issue which supersedes previous test programs. The scanner (webcam) GUI pops up upon the startScan call, but it disappears and XEventListener.disposing() never gets called, so o.wait() never returns. after killing the ScannerTest process, soffice.bin need also to be killed through process explorer as it seems to hang up. Reset assigne to the default "issues@openoffice.apache.org". |