Error trying to run SO

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Kristy Godoy
Posts: 21
Joined: Thu Feb 05, 2015 12:53 pm

Error trying to run SO

Post by Kristy Godoy » Sun Jul 12, 2020 6:01 pm

Hi everyone. I hope you are doing good and healthy.

I'm trying to figure out a problem.
I'm getting the following exception when trying to run the Static Optimization tool.

A java.lang.RuntimeException exception has occurred.
Click Show Details or see the messages.log file located in your C:\Users\USER\AppData\Roaming\.OpenSim\4.1\var\log folder.
______________________________________________
java.lang.RuntimeException: Unknown exception
at org.opensim.modeling.opensimActuatorsAnalysesToolsJNI.AnalyzeTool_run__SWIG_0(Native Method)
at org.opensim.modeling.AnalyzeTool.run(AnalyzeTool.java:154)
at org.opensim.tracking.AnalyzeToolModel$AnalyzeToolWorker.construct(AnalyzeToolModel.java:139)
at org.opensim.swingui.SwingWorker$2.run(SwingWorker.java:130)
[catch] at java.lang.Thread.run(Thread.java:748)

___________________________________________

I recently installed the 4.1 version, and I still have the 3.3 version installed because I'm still using it.

I attached the messages log.

Does someone have a clue of what can I do to overcome the issue?

Thanks in advanced for any help.
Attachments
messagesErrorlog.txt
(24.79 KiB) Downloaded 35 times

Tags:

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

Re: Error trying to run SO

Post by Ayman Habib » Mon Jul 13, 2020 9:49 am

Hi Kristy,

Unfortunately the log files don't provide clues as to why the exception is thrown. We should definitely investigate and make sure to give informative message(s).

In the past similar issues were due to missing files or checks done while processing ExternalLoads.
To get you going, it may help to have all the data files and setup files at the same folder, adjust references to file names/paths accordingly and see if it works. In the meantime, please file a bug and attach all the files and steps necessary to reproduce the exception so we can improve our error detection/reporting.

Best regards,
-Ayman

User avatar
Kristy Godoy
Posts: 21
Joined: Thu Feb 05, 2015 12:53 pm

Re: Error trying to run SO

Post by Kristy Godoy » Mon Jul 13, 2020 10:15 am

Ayman Habib, thank you so much for your answer.

I checked the ExternalLoads file as you indicated and the path for data_source_name was incorrect, I'm sorry, I thought I had checked everything before writing the post.

I modified it and I was able to run the OS though I got a different exception:

____________________________________________________
A java.lang.RuntimeException exception has occurred.
Click Show Details or see the messages.log file located in your C:\Users\USER\AppData\Roaming\.OpenSim\4.1\var\log folder.
_____________________________________________________

java.lang.RuntimeException: Unknown exception
at org.opensim.modeling.opensimSimulationJNI.Model_initSystem(Native Method)
at org.opensim.modeling.Model.initSystem(Model.java:848)
at org.opensim.tracking.EditExternalLoadsPanel.<init>(EditExternalLoadsPanel.java:98)
at org.opensim.tracking.ActuatorsAndExternalLoadsPanel.jEditExternalForceSetButtonActionPerformed(ActuatorsAndExternalLoadsPanel.java:376)
at org.opensim.tracking.ActuatorsAndExternalLoadsPanel.access$600(ActuatorsAndExternalLoadsPanel.java:64)
at org.opensim.tracking.ActuatorsAndExternalLoadsPanel$7.actionPerformed(ActuatorsAndExternalLoadsPanel.java:254)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Should I report a bug on this one?
Attachments
messageslog2.txt
(37.02 KiB) Downloaded 35 times

User avatar
Kristy Godoy
Posts: 21
Joined: Thu Feb 05, 2015 12:53 pm

Re: Error trying to run SO

Post by Kristy Godoy » Tue Jul 14, 2020 8:54 am

Update.
I did not get any exception anymore, after correcting the paths in the External loads files. I don't know why I got the second exception mentioned in this post, and then it did not appear anymore. I was able to run the SO tool. Thanks for the help.

POST REPLY