Apache OpenOffice (AOO) Bugzilla – Issue 33969
Evolution driver makes "Connection Type" wizard freeze sometimes
Last modified: 2017-05-20 10:44:55 UTC
I have not found a specific way to reproduce this bug, but it occurs when you open the OOo Base -> Connection Type wizard. Sometimes it freezes before wizard window shows up, sometimes after clicks in Next/Back buttons. Debugging to find where its freezing I discovered it stops at line 233 [ nProcErr = osl_executeProcess_WithRedirectedIO ] of /connectivity/source/drivers/evoab/LDriver.cxx
reassign
now really assigning. Berry Jia is not working on this, anymore; Wind Li is currently in charge for address book related issues.
Created attachment 17635 [details] Proposed patch for connectivity
Isn't this patch somewhat dangerous? As it only removes the WAIT flag, this means that the executeProcess call could return *before* the process is actually finished. This implies that subsequent reads from aStdOut may not yield the complete result. Sounds like a bad thing to me.
Luciano, any comment on the above? Would you agree that the patch might be dangerous as described above, or are my concerns unfounded?
Frank, I agree with it, you're right. I thought if remaining in silence I was agreeing. Now, about this issue, I have a comment. Today I found that if you don't configure your java environment [1], the bug can not be reproduced. [1] OOo->Tools->Options->Java->[] Use a Java runtime environment
> Today I found that if you don't configure your java environment [1], the bug can not be > reproduced. Hmm, now that's strange ... For a complete patch, I suppose we should try to not block endlessly. For instance, we could create the process in a separate thread, *with* the WAIT flag, and let the "main thread" (the one which currently executes the process) just wait for the second thread. This wait in the main thread could be done with a timeout - say, 30 seconds. After that, the second thread would be terminated (which at the simplest is telling it "if you ever return, I am not interested in your results anymore), and the main thread would throw some kind of TimedoutException. Just an idea ...
Hi,lucianomw I still can't reproduce this bug. Can you still reproduce this in newer version? If so, could please do such things? 1. mv evolution-addressbook-export evolution-addressbook-export-binary 2. cat > evolution-addressbook-export #!/bin/sh echo $@ exec <path>/evolution-addressbook-export-binary echo $? EOF 3. chmod +x evolution-addressbook-export 4. Then try OOo again and paste the output here Thanks
Hi, windly The problem persists here (tested against SRC680_m62). I followed your proposed steps. Result: now OOo Base freezes before opening the wizard (File->New->Database) and don't return anything. If I run the "evolution-address-export" (modified) in the terminal, my entire address-book is showed in the screen.
Hi,lucianomw Can you please start soffice in a terminal to see if there are any out from the modified evolution-addressbook-export before OOo freeze. I guess it's a bug of osl_executeProcess_WithRedirectedIO. It will always freeze OOo in your platform. Hi, Frank Could you please find some osl hackers to have a look at this?
windly, I am already running from a terminal and there's no returns from ./soffice
So it means OOo is freezed before call the exporter. So maybe there are some deadlocks in osl_executeProcess_WithRedirectedIO.
working transfer
Reset the assignee to the default "issues@openoffice.apache.org".