studica / WorldSkills-Example-Projects

Example Projects for WorldSkills
9 stars 13 forks source link

Hello, I have a question,Motor driver library running error #1

Closed h-wyj closed 3 years ago

h-wyj commented 3 years ago

When you instantiate the Titan library, the compilation passes, but an error occurs at run time ,“No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again ”

h-wyj commented 3 years ago

There was no problem before I updated the system, but after I replaced the system, other sensor libraries could run normally, but the motor drive library could not

h-wyj commented 3 years ago
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:348) 

 at frc.robot.Main.main(Main.java:23)   #   # A fatal error has been detected by the Java Runtime Environment:   #   # SIGSEGV (0xb) at pc=0x761b5ca0, pid=3804, tid=3857   #   # JRE version: OpenJDK Runtime Environment (11.0.7+10) (build 11.0.7+10-post-Raspbian-3deb10u1)   # Java VM: OpenJDK Server VM (11.0.7+10-post-Raspbian-3deb10u1, mixed mode, concurrent mark sweep gc, linux-)   # Problematic frame:   # C [libvmxpi_hal_cpp.so+0xadca0][thread 3863 also had an error]   [thread 3884 also had an error]   spiGoA+0x204   #   # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again   # 

Jm-Taylor commented 3 years ago

This is the Java JRE crashing on the VMX. I would need the full error message to debug. You only put part of it

at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:348) 

h-wyj commented 3 years ago

1

h-wyj commented 3 years ago

8

h-wyj commented 3 years ago

9

Jm-Taylor commented 3 years ago

It looks like it's trying to load Athena objects which is the wrong target. Is your build.gradle setup correctly to point at the VMX and not the roboRIO?

Can you also verify which version of the Studica.json you have?

h-wyj commented 3 years ago

I have used VMX-WSR to set the file to VMX and VMX-PI to set the file to VMX-PI but the same error occurs in both cases

h-wyj commented 3 years ago

Hello, is there any file missing in my Raspberry Pi? Because it can be used again when I did not update the system before, but the program reported an error after the system was updated

h-wyj commented 3 years ago

3

h-wyj commented 3 years ago

When the program reported an error, I tried to change the system back to the original, but the program still reported an error

h-wyj commented 3 years ago

I thought it was my computer, so I changed two computers and nothing worked out

h-wyj commented 3 years ago

C ++ programs will work fine, Java compilation will pass, but the runtime will report an error

h-wyj commented 3 years ago

Thank you. The problem has been solved. I've been bothering you these days