CMaptools hanging up on start-up

Having problems with IHMC CmapTools? Think you have found a bug? Let us know!
Forum rules
Before you post a problem or bug, please be sure you have included the version number of IHMC CmapTools, the operating system and version, the amount of RAM, and any other information that allows us to be able to replicate the problem you are having. (i.e. what were you doing when the problem occur? were you running another program (application) by the time you have the problem?)
Post Reply
philiprjones
Posts: 4
Joined: Tue Jul 28, 2009 1:17 pm

CMaptools hanging up on start-up

Post by philiprjones »

When I start CMaptools 5.03 I get a 'loading' icon in the My CMaps window which doesn't disappear. I'm pretty sure that this is because I've set the root folder to a directory on a USB stick. Unfortunately, Edit ... Preferences... will not work whilst it is in this condition and putting in a USB stick, either before or after starting up CMaptools hasn't helped either (I wonder whether I've changed the directory name?). In addition, I get a Java error if I try to opening a CMap in shared places.

I've tried uninstalling CMaptools, deleting the program directory and reinstalling CMaptools, but the error is still recurring. Can you tell me where the root folder setting is kept and whether I can edit it to cure the problem.

Please help!

Thanks,

Phil
philiprjones
Posts: 4
Joined: Tue Jul 28, 2009 1:17 pm

Re: CMaptools hanging up on start-up

Post by philiprjones »

PS I am running it in Windows XP and have 1GB of RAM
acanas
Posts: 753
Joined: Tue Mar 17, 2009 5:52 pm

Re: CMaptools hanging up on start-up

Post by acanas »

Hi Phil,

It seems like the MyCmaps folder is not accessible or there are permissions issues with it. Try making a copy of it (for backup), and removing the project.idx file on the root folder of MyCmaps and restarting CmapTools. If this doesn't work, try removing all project.idx files. Unfortunately this will break links to resources form Cmaps (but you can use the option to fix links once you open a Cmap). The project.idx file which keeps track of resources and links might be corrupt.

It would help if you attach the CmapTools log file. On XP these are located under your home directory in a directory named "CmapToolsLogs". You can attach the one with lowest number at the end, usually 0. This will let us see what is really happening.

The setting are located in the profile.xml file, which is located in XP at "Documents and Settings\<your userid>\Application Data\CmapTools\. The string "server.rootfolder" indicates where MyCmaps is located. Its an xml file so you can edit it with a text editor (e.g. Notepad). Since you have asked about manually changing settings I assume you understand all this.

You mention a Java error. Is this a dialogue box? What does it say? Please provide more information.

Are you using the version of Java shipped with CmapTools?
philiprjones
Posts: 4
Joined: Tue Jul 28, 2009 1:17 pm

Re: CMaptools hanging up on start-up

Post by philiprjones »

Many thanks for your prompt reply.

Deleting the idx files did not work, but editing the profile.xml file did - it was set to E:\... whereas the USB stick was H:\ ! Very relieved!!

For completeness here are the relevant lines in the log file

CoreStarter Main()
CoreStarter::loadModuleFile: xmlFile == modules.xml
CMapSettings::<init>: Startup Dir: C:\Program Files\IHMC CmapTools\bin
CMapSettings::<init>: Path to config file: C:\Program Files\IHMC CmapTools\bin\cmaptools.cfg
CMapSettings::<init>: Will not attempt to delete the user's profile or the passwords file.
CMapSettings::loadXmlProfile: _cmsHelper == nlk.util.CMapSettingsHelper@b1cc87
CMapSettings::loadXmlProfile: _cmsHelper.getWorkingDirectory() == C:\Documents and Settings\Phil and jo\Application Data\CmapTools
CMapSettings::loadXmlProfile: Apparently the profile exists.
CMapSettings::loadXmlProfile: returning.
CMapSettings::updateTransientValueOfRootFolder: The string for key server.rootfolder is E:\My USB CMaps
(CLASS: nlk.util.CMapSettings METHOD: updateTransientValueOfRootFolder LINE: 203)
java.io.IOException: The device is not ready
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at nlk.util.CMapSettings.updateTransientValueOfRootFolder(CMapSettings.java:199)
at nlk.util.CMapSettings.<init>(CMapSettings.java:125)
at nlk.util.CMapSettings.getCMapSettings(CMapSettings.java:716)
at nlk.basic.BasicMod.<clinit>(BasicMod.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at core.util.CoreStarter.loadClass(CoreStarter.java:221)
at core.util.CoreStarter.loadModuleFile(CoreStarter.java:74)
at core.util.CoreStarter.main(CoreStarter.java:427)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
CMapSettings::updateTransientValueOfRootFolder: We could not change it to a canonical form!
CMapSettings::<init>: After calling remove, get (root.folder.password) returned null
LocaleList::load: loading Locale list from 'C:\Documents and Settings\Phil and jo\Application Data\CmapTools\locales.cache'
I18NHelper :: setLocale ( en )


and here's the Java error message when I tried to open up a CMap (in history, rather than shared cmaps).

Top window:

Cannot register event handler in Event Synchronizer.


Bottom window:
core.exception.EvtHandlersFailedXcp: contains 1 exceptions
==================================================
java.lang.NullPointerException
at nlk.folderBrowser.FolderBrowserMod.handleNewFolderBrowserWnd(FolderBrowserMod.java:2091)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at core.base.CoreImp.executeEvtHandlers(CoreImp.java:3022)
at core.base.CoreImp.postEvtToModule(CoreImp.java:2982)
at core.base.CoreImp.postModuleEvtToModule(CoreImp.java:2775)
at core.base.CoreImp.postModuleEvt(CoreImp.java:2744)
at core.util.EventSynchronizer.runEventSynchronizer(EventSynchronizer.java:656)
at core.util.EventSynchronizer.access$000(EventSynchronizer.java:31)
at core.util.EventSynchronizer$ESHelper.run(EventSynchronizer.java:717)
at us.ihmc.util.ThreadPool$WorkerThread.run(ThreadPool.java:333)
==================================================
core.exception.EvtHandlersFailedXcp
at core.base.CoreImp.executeEvtHandlers(CoreImp.java:3118)
at core.base.CoreImp.postEvtToModule(CoreImp.java:2982)
at core.base.CoreImp.postModuleEvtToModule(CoreImp.java:2775)
at core.base.CoreImp.postModuleEvt(CoreImp.java:2744)
at core.util.EventSynchronizer.runEventSynchronizer(EventSynchronizer.java:656)
at core.util.EventSynchronizer.access$000(EventSynchronizer.java:31)
at core.util.EventSynchronizer$ESHelper.run(EventSynchronizer.java:717)
at us.ihmc.util.ThreadPool$WorkerThread.run(ThreadPool.java:333)


Once again, many thanks for your help, it is much appreciated. Perhaps in the medium-term a 'root folder not found' message should come up - it does in version 4.18 on my work laptop!

Phil

Phil
Post Reply