Freemind, keyboard becomes unresponsive in 14.04 at random

Asked by k singh

Keyboard becomes unresponsive in freemind--a java based program --when deletions of nodes or changes are done while editing the mindmap. This never happened earlier in ubuntu but its a bug in 14.04 and freemind 0.9 after a java update. The java update was done via synaptic and seems to be causing the problem. I had used freemind 0.9 in ubuntu12.04 also and never had this problem. After the keyboard becomes unresponsive, freemind has to be shutdown and restarted. Then everything becomes normal for some time but the problem can recur without a clear reason.

There never was such a problem in freemind 0.8 or earlier versions. But generally freemind in earlier versions of ubuntu used to work under java installed directly from the sun website and did not work under gcj or other java implementations.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

java -version; lsb_release -a; uname -a

Thanks

Revision history for this message
k singh (triveni-2com) said :
#2

java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK Server VM (build 24.51-b03, mixed mode)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Linux kl 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Have you tried Oracle Java? Webupd8 has a PPA which makes installation of Oracle Java super easy. You are currently using Open Java.

Revision history for this message
k singh (triveni-2com) said :
#4

Never knew about Oracle Java, only about sun java. Anyway will install jre 1.7 from sun's site if that is the only workaround and like earlier versions of freemind should solve the problem.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Oracle bought Java from Sun.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

3 commands to install Java. It will also auto update as the PPA is updated. Use TAB and ENTER to accept the licence

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7
Revision history for this message
k singh (triveni-2com) said :
#8

Thankyou Andrew. After installing as instructed by you and checking freemind for some time--will revert back here.

Revision history for this message
k singh (triveni-2com) said :
#9

On giving the following command in the terminal
freemind
I get the following message
[warning] /usr/bin/freemind: No java runtime was found
[error] /usr/bin/freemind: Unable to find an appropriate java runtime. See java_wrappers(7) for help

even though oracle java has been installed as instructed (and openjdk removed via synaptic).

/usr/bin/java exists and runs but /usr/share/freemind/freemind.sh cannot be deciphered for source of error.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Have you checked in /usr/share/freemind/freemind.sh to make sure it is using the right java binary when it runs?

Revision history for this message
k singh (triveni-2com) said :
#11

No, I don't know how to decipher the shell file clearly.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Maybe thought to make a pastebin of the file, so that we can have a look.....

Think about it

Revision history for this message
Brian Z (brian-zbr) said :
#13

This seems to be affecting me too. This same version of Freemind 0.9 was working fine for me in Linux Mint, but now that I did a fresh install of Ubuntu 14.04, Freemind is virtually unusable. The program in general does not become totally unresponsive, just the keyboard.

Here is freemind.sh: http://pastebin.com/BDU2AaE1

Revision history for this message
Brian Z (brian-zbr) said :
#14

Also, when I run Freemind from the terminal, the only output is "Checking Java Version...". No errors, even when it stops responding.

Revision history for this message
Brian Z (brian-zbr) said :
#15

I think it is working fine for me now that I have successfully installed oracle-java8-installer. Thanks!

Revision history for this message
Brian Z (brian-zbr) said :
#16

The same problem has returned. Here is my Java version info.

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) Server VM (build 25.11-b03, mixed mode)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Linux dowcet-laptop 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux

Revision history for this message
k singh (triveni-2com) said :
#17

I pasted the usr/share/freemind/freemind.sh at http://pastebin.com/UWAURREG

Had tried to completely remove and reinstall freemind using synaptic but
that did not work--it still gives the same error

Made a copy of the shell file and inserted JAVA_CMD="/usr/bin/java" at the
start of the findjava function definition but that also did not work.

-------------
http://aapconnect.com the 24x7 website for recording and tracking
complaints in the malviya nagar constituency of somnath bharti--showcasing
grievance redressal and participation in governance the AAP way

On Fri, Aug 1, 2014 at 10:32 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #252222 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/252222
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Maybe thought to make a pastebin of the file, so that we can have a
> look.....
>
> Think about it
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/252222
>
> You received this question notification because you asked the question.
>

Revision history for this message
k singh (triveni-2com) said :
#18

Am making do with the latest version of freemind viz 1.0.1 downloaded from the net. As version 0.9 bundled in ubuntu 14.04 is buggy.

Revision history for this message
Launchpad Janitor (janitor) said :
#19

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Anders Lind (anders-lind) said :
#20

JAVA_HOME and PATH environment variables have to be set.
Thereafter freemind (and freeplane) works.

How to set environment variables systemwide can be seen here:
https://help.ubuntu.com/community/EnvironmentVariables#System-wide_environment_variables
OR
You might want to set the environment variables locally for your user profile only. Then you have to edit ~/.bashrc

Example:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export PATH=$JAVA_HOME/bin:$PATH

I guess the bug can be closed.

Revision history for this message
Anders Lind (anders-lind) said :
#21

Ignore the last line about "I guess the bug can be closed." since the original bug report was about keyboard unresponsiveness.

Revision history for this message
k singh (triveni-2com) said :
#22

Thankyou. Will try. As a solution could not be found for a long time, I
stopped using freemind as i forgot how to start it easily after Oracle Java
was installed--was not knowledgeable about shell programming/ shell Path
variables etc and could not troubleshoot my way out of the problem faced
and got mixed up about the various options tried in the past-- removing the
java which was installed by Ubuntu/synaptic when freemind was originally
installed etc.

**************
http://makingindiawork.com/ is also an initiative to fund girls education
in rural India by the author who represents what Fabindia stands for. Its a
well researched book --have just started reading it. Find it in your public
library.
A Chaiwala's story
https://www.youtube.com/watch?v=3zm8lWQLqUs&feature=youtu.be

On Thu, Nov 13, 2014 at 5:21 PM, Anders Lind <
<email address hidden>> wrote:

> Your question #252222 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/252222
>
> Anders Lind posted a new comment:
> Ignore the last line about "I guess the bug can be closed." since the
> original bug report was about keyboard unresponsiveness.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Launchpad Janitor (janitor) said :
#23

This question was expired because it remained in the 'Open' state without activity for the last 15 days.