Comments (13)
Dear @daved0 ,
I could not reproduce your problem and my environment is similar to yours. The only difference is the Ubuntu version, I use 22.04 but this should not cause any problem. To try reproducing your error, I miss some more information, for instance the command line to launch the rcrs-server
.
But before sharing more info, please try this sequence of commands in two separate terminals:
Terminal 1 (Launch Simulation Server)
cd rcrs-server
./gradlew completeBuild
cd script
./start.sh -m ../maps/kobe/maps/ -c ../maps/kobe/config/
Multiple windows should pop-up, look at the Kernel GUI window to see if the Simulators are connected (they should be listed in the right-center of the window and there should be misc
, traffic3
, Collapse
, and Area Model
connected).
In the panel Agents with no controller
you should see a list of FIRE_STATION, AMBULANCE_CENTER, POLICE_OFFICE, FIRE_BRUGADE, AMBULANCE_TEAM, and POLICE_FORCE.
Keep all the windows open, do not close them (you can minimize them, if you want).
Terminal 2 (Launch Sample Agents)
cd rcrs-sample-agent-java
./gradlew clean compile
./gradlew launch
If it still does not work. Please collect the log files from rcrs-server
and rcrs-sample-agent-java
(logs
directory from both projects).
Please also provide the amount of RAM of your computer.
Kind Regards,
@gnardin
from rcrs-server.
@gnardin Thank you for the response! Unfortunately, the problem persists, even when I ran those commands. In the server terminal I never got any window pop ups, only the sequence of information telling me what's being generated. Attached is the copy of both log files and some screenshots of my terminal.
Best,
David
logs (agent).zip
logs (server).zip
from rcrs-server.
Also my computer has 8gb of total storage, 6gb in use, and 1.5 available.
from rcrs-server.
Thank you for your information.
The connection issue has the following reasons
- The server is not running
- Two server is running at the same time
- Server is running with a different port that your code
- Your ADF framework is not up to date
- Your Server is not up to date
Would you please check all of those issues?
from rcrs-server.
Dear @daved0 ,
Analyzing the kernel-out.log
file from the server, I found the following error:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
at kernel.StartKernel.main(StartKernel.java:158)
Please make sure your X11 DISPLAY
is properly configured, check possible solutions here.
from rcrs-server.
@gnardin @modaresimr I really do appreciate both of your efforts to help me fix this problem, however I can't seem to make any progress. With that being said I'm going to try out a different machine to see if I have any success over there. It's unfortunate but my knowledge with troubleshooting only goes so far and I'm not understanding the root cause. Thanks again for all your help!
logs (server).zip
from rcrs-server.
Dear @daved0
Exporting the DISPLAY
environment variable had some effect since the error changed to
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/javax.swing.RepaintManager.<clinit>(RepaintManager.java:247)
at java.desktop/javax.swing.JComponent.repaint(JComponent.java:4891)
at java.desktop/java.awt.Component.repaint(Component.java:3405)
at java.desktop/javax.swing.JComponent.setUI(JComponent.java:735)
at java.desktop/javax.swing.JPanel.setUI(JPanel.java:153)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:129)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:89)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:98)
at kernel.ui.ComponentManagerGUI.<init>(ComponentManagerGUI.java:32)
at kernel.ComponentManager.<init>(ComponentManager.java:105)
at kernel.StartKernel.createKernel(StartKernel.java:270)
at kernel.StartKernel.main(StartKernel.java:145)
Can you please run the commands below to see if fix the issue?
sudo apt-get install default-jdk
sudo apt-get install default-jre
Then try running the simulator again.
from rcrs-server.
@gnardin I know it doesn't show but initially I did not have those commands installed.
from rcrs-server.
Dear @daved0
Installing the Default JRE and JDK did not have any effect. The same error persists and it is probably related to the permission of the GUI to connect to the X server. We have already set the export DISPLAY=:0
to direct any graphical interface to the monitor 0 (default monitor), but there is still something blocking the GUI to access the X server.
Try installing the xorg
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xserver-xorg-core xserver-xorg xorg
then, allow the simulator to connect to the X server using the X utility called xhost
.To allow all local connections:
xhost +local:
from rcrs-server.
@gnardin Is there a chance firewalls could be an issue, because Windows Defender Firewall is currently active
from rcrs-server.
Dear @daved0
I did not see that you are running Ubuntu in a Virtual Machine. I just realized it when you asked about disabling the Windows Firewall. Anyway, I do not think that Windows Firewall is causing any issue because the simulator does not require any resource for the Internet or outside the VM to start.
I somehow reproduced your environment using Ubuntu in VirtualBox, but in using Ubuntu as my main OS. I was able to install the server and run it without much problem.
After installing Ubuntu, I installed gcc
, make
, perl
, the VirtualBox Guest Additions, git
, openjdk-17-jre
, openjdk-17-jdk
, gradle
, and xterm
. It is important to install xterm
because the rcrs-server
scripts use this application to launch the graphical interfaces.
If you use a different Virtual Machine application, check if there is any restriction with respect to Graphical Interface in their configuration.
from rcrs-server.
@gnardin Sorry for the delayed response I couldn't get a chance to respond, however I do come with good news. Long story short, I used GIT BASH instead of Linux shell and everything seemed to run smoothly. I appreciate all your work to help me fix this issue and giving me clear cut instructions!
from rcrs-server.
@daved0
Excellent news! I will close this issue.
Please open another issue in case you run into any problems or have any questions.
from rcrs-server.
Related Issues (20)
- Error launching `scenarioEditor` using Gradle HOT 6
- The bed continues occupied HOT 5
- ProtoBuf branch is not compatibile with the logs of traditional version HOT 2
- Why ProtoBuf uses urn id? HOT 3
- in ProtoBuf branch string urn is used for command but for others urnid is used HOT 1
- ProtoBuf not completely implimented HOT 2
- Merge enum and enum_v1 HOT 3
- organisation of folders HOT 3
- Feature request: using docker and build the docker into docker-hub HOT 3
- Feature request: WebApi to control the server HOT 1
- Migrate to Log4j2
- LogViewer cannot read rescue.log.xz. HOT 5
- Compatibility of log files on the new server with the previous server HOT 12
- Problems when trying to start the server HOT 8
- map change problem HOT 1
- Request for Modification Regarding Map Score Calculation Method HOT 1
- Is Gradle Required in Pre-installation for rcrs-server? HOT 2
- Question about 'merge nodes' functionality in rcrs-server's gml-editor. HOT 2
- Run server without any UI elements HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcrs-server.