Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

step value prevents moving agents to wander #382

Open
RoiArthurB opened this issue Dec 11, 2024 · 1 comment
Open

step value prevents moving agents to wander #382

RoiArthurB opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
😱 Bug The issue reveals a bug in GAMA Version Git Bug specific to the development version

Comments

@RoiArthurB
Copy link
Contributor

RoiArthurB commented Dec 11, 2024

Describe the bug
The step value (seems to) un-schedule wandering agents on a radius starting from the middle of the map. They are not moving at all (displayed as not, but can also check that there position is not updated at all).

To Reproduce
Steps to reproduce the behavior:

model issue382

global {
	float step;
	init {
		create p number: 1000;
	}
}
species p skills: [moving]{
	reflex move {
		do wander;
	}
	aspect default {draw circle(1) color: #green;}
}
experiment e {
	parameter var: step min: 1#mn max: 3#mn init: 1.8#mn;
	output {display d {species p;}}
}
  1. Open model above on Linux
  2. Start simulation
  3. Scroll step value
  4. See error

Expected behavior
Execute do wander on any agent regardless of the step value.

Screenshots
If applicable, add screenshots to help explain your problem.

Screencast.From.2024-12-11.09-18-42.mp4

Desktop (please complete the following information):

  • OS: Windows, MacOS, Linux
  • PC Model: [if applicable, can be useful for displays, OpenGL problems)]
  • GAMA version: git and alpha
  • Java version: 21.0.5+11 and embedded
  • Graphics cards / Display system: Both 2d and 3d

Additional context
The problem seems to be limited to Linux using Gnome desktop environment (the issue exists on Ubuntu and Arch Linux on Gnome, but not on LinuxMint on Cinnamon), and might be related to Wayland (even tho, I think it's not the related).
EDIT: This behavior happens on every OS

@RoiArthurB RoiArthurB added 😱 Bug The issue reveals a bug in GAMA Version Git Bug specific to the development version 📺 Display Java2D This issue or request concerns only Java2D displays 🖥 Display OpenGL This issue or request concerns only OpenGL displays OS Linux This issue is specific to Linux (Ubuntu, etc.) and removed OS Linux This issue is specific to Linux (Ubuntu, etc.) labels Dec 11, 2024
@AlexisDrogoul
Copy link
Member

Particular combinations of the size of the environment (when it's not toroidal -- default is 1m x 1m), the speed of the agents (default is 1m/s) and the step (default is 1s) make this behavior appear. If one changes the speed to 1mm/s, for instance, it disappears. So I would bet that there is a problem of rounding somewhere that causes this behavior in the moving skill.

@AlexisDrogoul AlexisDrogoul removed 📺 Display Java2D This issue or request concerns only Java2D displays 🖥 Display OpenGL This issue or request concerns only OpenGL displays labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😱 Bug The issue reveals a bug in GAMA Version Git Bug specific to the development version
Projects
None yet
Development

No branches or pull requests

3 participants