topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 5:41 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Conflict with LibreOffice/OpenOffice  (Read 13892 times)

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Conflict with LibreOffice/OpenOffice
« on: May 08, 2013, 09:32 AM »
For a long time (many months, perhaps years, my brain really needs a memory upgrade), I have experienced a conflict between LibreOffice and Clipboard Help+Spell.

When copying something in LibreOffice, sometimes Libreoffice locks up and becomes unresponsive. Every time this happens, I notice that Clipboard Help+Spell is also unresponsive, and my only option is to kill its process :rip:. And the very second I kill the Clipboard Help+Spell process, LibreOffice becomes responsive again.

This has happened countless times to me.

I can not reproduce it as it only happens sometimes. But my guess is that some kind of deadlock occurs, where both programs are waiting for eachother to release an open handle or something. So I guess it would be possible to look at the source code of Clipboard Help+Spell and see if it is made in a way that could provoke a deadlock with another program accessing the clipboard. And maybe then a timeout could be introduced in the waiting in Clipboard Help+Spell so the deadlock would only last a few seconds (or less) at max and then give up and possibly give a tray balloon tip about its unability to get clipboard contents or so. I think it is much better to avoid the deadlock and miss the copied text than to lock up both programs waiting to get a copy of the clipboard.

I am 99% sure the same happened in the past when I used OpenOffice instead of LibreOffice. But I have never experienced that deadlock with any other programs. Only in the combination LibreOffice/OpenOffice and Clipboard Help+Spell. So I am quite sure there is some kind of bug in LibreOffice in the way it handles the clipboard. On the other hand, I would prefer if Clipboard Help+Spell didn't lock up just because of that. It would be nice if it could gracefully be a little more accepting towards LibreOffice's possibly rude behaviour. :)

Just now it occurred to me that I could probably circumvent the problem and avoid the deadlocks by putting LibreOffice (soffice.bin and/or soffice.exe) on the ignore list in Clipboard Help+Spell. But it would be nice if the two applications could peacefully coexist and Clipboard Help+Spell would also work with LibreOffice. :)

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #1 on: May 08, 2013, 02:40 PM »
For what it's worth: this also happens to me with ClipX, and has happened in both OpenOffice and LibreOffice. I've only had it happen in calc, and I haven't found out how to reproduce it - happens rarely enough that I haven't bothered /actively/ trying to reproduce, and it happens under different conditions (both when dealing with text-only cells as well as formula cells).

Once, I was able to resuscitate OpenOffice, but that was blind luck and I haven't been able to repeat that - involved the window system menu (upper left corner), and attempting a bunch of restore/maximize/move operations. Also, FWIW, ClipX seems to keep on trucking when OOo/LO locks up.
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #2 on: May 09, 2013, 11:24 AM »
I have to track down another reported (and confirmed) incompatibility with CHS, so i'll try to look at this at the same time and report what i see.

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,857
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #3 on: May 09, 2013, 03:00 PM »
I was able to resuscitate OpenOffice,

Don't bother next time. Just go with Libre and allow 'Open' to be put out of its misery once and for all. :P

-------------------------

@mouser - I'll see if I can get that problem to replicate with my copy of LibreOffice4 when I get a chance. :)

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #4 on: May 09, 2013, 05:44 PM »
i'll try to look at this at the same time and report what i see
Thanks, mouser! :Thmbsup:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #5 on: May 12, 2013, 04:31 PM »
Some research has revealed that this is a longstanding bug caused by Open Office / Libre Office.. I'm not sure exactly what's going on, but more about the bug here:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #6 on: May 12, 2013, 04:37 PM »
It seems to me that a workaround is that AFTER the open-office (libre-office) application is launched, use the right-click tray of CHS and say to "re-establish the clipboard chain".. The question is whether i can figure out a way to do that automatically so user doesn't have to worry.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #7 on: May 12, 2013, 04:56 PM »
Ok I have a preliminary possible fix for this.. I'll upload a beta and we can see if it helps.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #8 on: May 12, 2013, 05:45 PM »
See how this beta performs for you:

What I've done:
I added code to CHS to have it automatically re-establish the clipboard chain when it sees a new Open Office / Libre Office process.  In fact as a test I'm having CHS re-establish the clipboard chain any time you try to capture from a new process.  Let's see what effect that has.

This should solve the 5-second delay when copying clips within Open Office / Libre Office, and I hope the related occasional hanging that you've experienced.

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #9 on: May 12, 2013, 08:50 PM »

  so much, mouser! You are awesome!

I have installed the beta now and will see how it goes. I tried some wild copying in LibreOffice with the new beta running, and so far everything seems to work perfectly. :Thmbsup:

Thank you again! :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #10 on: May 12, 2013, 08:56 PM »
Happy to be of service.. Let me know if it holds up over time.

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #11 on: May 12, 2013, 09:02 PM »
I will! :up:

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #12 on: May 13, 2013, 05:54 AM »
Hm... It happened again...  :(

LibreOffice locked up, and Clipboard Help+Spell was inaccessible. Nothing happened when I clicked the Clipboard Help+Spell icon, neither a left nor a right click had any effect – I tried about 30 times over a period of perhaps 30 to 45 seconds... The exact moment I killed the Clipboard Help+Spell process, LibreOffice became fully responsive again.

And I did no clipboard thing in LibreOffice. I just initiated a document compare. Well, I actually pasted the name of the second file to compare into the file open dialog from LibreOffice (that was a clipboard thing) and then started the compare. And LibreOffice did do the comparison and showed the results, but then it locked up (within a second from the paste command).

I tried to do the exact same thing again. Started LibreOffice and did the same compare in the same way as before, and made my actions in about the same speed. But this time nothing locked up.

Can I help with any kind of system snapshot, log file or similar from when it happens again? Can I break into Clipboard Help+Spell and see where it is locked? Perhaps I can go to Process Explorer and have a look at the stack of Clipboard Help+Spell in the Threads tab of its process – and maybe even have a look at the stacks of the various threads to see where it is locked? Anything in particular to look for?

In any case, I will try to analyze both Clipboard Help+Spell and LibreOffice with Process Explorer next time the deadlock happens. Even though I don't understand much of it, perhaps I can get some idea of what is happening so I can give you a clue.

I'll return. :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #13 on: May 13, 2013, 11:11 AM »
Email me ([email protected]) and I'll send you a debug version which will log what's going on as it happens and we can see if we can catch this hang in action.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #14 on: May 13, 2013, 11:53 AM »
I was able to resuscitate OpenOffice,
Don't bother next time. Just go with Libre and allow 'Open' to be put out of its misery once and for all. :P
Oh, I'm using Libre these days (and think it's pretty much as shitty as Open, but even though it doesn't run as well as old MSOffice versions, at least it's gratis). It's just that I was able to resuscitate OOo, not Libre. And only once or twice, anyway.
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #15 on: May 19, 2013, 01:35 AM »
New beta version is up at url listed above; hopefully it will work better.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #16 on: May 19, 2013, 08:59 PM »
any reports?

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
    • View Profile
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #17 on: May 20, 2013, 12:32 AM »
Oh, I cannot keep up! :) I answered now by email. I cannot make LibreOffice crash now, which is good :). I will see what happens in the time to come when I work with LibreOffice.

Thank you, thank you, thank you!

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Conflict with LibreOffice/OpenOffice
« Reply #18 on: May 30, 2013, 06:59 AM »
In case the problem ends up being fixed, can you detail your changes, mouser? Might be suitable for ClipX as well :)
- carpe noctem