gama-platform / gama

Main repository for developing the 2024+ versions of GAMA
https://gama-platform.org
GNU General Public License v3.0
16 stars 5 forks source link

Model `Following Paths.gaml` is broken for amd cpu #259

Open lesquoyb opened 2 months ago

lesquoyb commented 2 months ago

Describe the bug With the current release, when running the model Following Paths.gaml there's an exception at the first step:

2 occurrences in 2 agents at cycle 0: vehicle_following_path0 occupies 1 lanes, and it is unable to enter road163 where there are only 0 lane(s) available
in Simulation 0
in agents vehicle_following_path0, Simulation 0
in do drive ;
in reflex commute when: current_path != nil  {
    do drive ;
}

To Reproduce Steps to reproduce the behavior:

  1. Go to Following Paths.gaml
  2. Load it
  3. Press play
  4. See error
lesquoyb commented 1 month ago

I tried on a few computers and turns out it only happens on mine. I tried on a mac, a linux, another windows, so the issue is probably not (only?) windows. I also tried on new workspaces and with the eclipse version of gama as well as with the release with the same result. Maybe it's my cpu ? here is the result of gama.info:

GAMA VERSION:       2024.7.0 commit 8824018f80c0cf7d42494e9e7f5b27234a344bf0
COMPUTER:           Windows 11 10.0 on amd64 (16 cores, 15.4 GB)
VIRTUAL MACHINE:    OpenJDK 64-Bit Server VM Eclipse Adoptium version 21.0.3+9-LTS
AVAILABLE MEMORY:   3.4 GB / 4 GB
GRAPHICS CARD:      NVIDIA GeForce MX450/PCIe/SSE2 by NVIDIA Corporation (GL version: 4.6.0 NVIDIA 560.70)
MONITOR #0:         1920x1200 zoom 100% (primary)
MONITOR #1:         1920x1080 zoom 100% 

additionally I have the same problem with 1.9.3 so it's not linked to the upgrade of jdk/eclipse

hqnghi88 commented 1 month ago

image I have it on git version, win OS (not tested on Mac)

lesquoyb commented 1 month ago

What's your cpu on this computer ? Is it also an amd ? could you post the result of the gama.info command ?

hqnghi88 commented 1 month ago

Yes AMD,

GAMA VERSION:       0.0.0 commit Not available
COMPUTER:           Windows 11 10.0 on amd64 (16 cores, 39.4 GB)
VIRTUAL MACHINE:    Java HotSpot(TM) 64-Bit Server VM Oracle Corporation version 21.0.2+13-LTS-58
AVAILABLE MEMORY:   3.9 GB / 4 GB
GRAPHICS CARD:      NVIDIA GeForce GTX 1660 Ti with Max-Q Design/PCIe/SSE2 by NVIDIA Corporation (GL version: 4.6.0 NVIDIA 512.78)
MONITOR #0:         1920x1080 zoom 100% (primary)
MONITOR #1:         1920x1080 zoom 100%