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

Java error with Dynamic Cameras (OpenGL display) #3821

Closed
ptaillandier opened this issue Jun 6, 2023 · 0 comments
Closed

Java error with Dynamic Cameras (OpenGL display) #3821

ptaillandier opened this issue Jun 6, 2023 · 0 comments
Assignees
Labels
😱 Bug The issue reveals a bug in GAMA 🖥 Display OpenGL This issue or request concerns only OpenGL displays Priority High

Comments

@ptaillandier
Copy link
Collaborator

Describe the bug
An error appears when running a model with a dynamic camera

To Reproduce

  1. Open model of the library: Visualization and User Interaction/Visualization/3D Visualization/models/Camera Definition.gaml
  2. Run the experiment

An java error appears:
java.lang.NullPointerException: Cannot invoke "msi.gama.common.interfaces.IGraphics.getSurface()" because the return value of "msi.gama.runtime.GraphicsScope.getGraphics()" is null
at msi.gama.outputs.layers.properties.CameraDefinition.update(CameraDefinition.java:99)
at msi.gama.outputs.layers.properties.AbstractDefinition.refresh(AbstractDefinition.java:70)
at msi.gama.outputs.LayeredDisplayData.initWith(LayeredDisplayData.java:628)
at msi.gama.outputs.LayeredDisplayOutput.init(LayeredDisplayOutput.java:590)
at msi.gama.runtime.ExecutionScope.init(ExecutionScope.java:563)
at msi.gama.outputs.AbstractOutputManager.open(AbstractOutputManager.java:275)
at msi.gama.outputs.AbstractOutputManager.init(AbstractOutputManager.java:228)
at msi.gama.outputs.SimulationOutputManager.init(SimulationOutputManager.java:102)
at msi.gama.kernel.simulation.SimulationAgent.initOutputs(SimulationAgent.java:951)
at msi.gama.kernel.simulation.SimulationAgent.init(SimulationAgent.java:381)
at msi.gama.metamodel.agent.MinimalAgent.init(MinimalAgent.java:223)
at msi.gama.runtime.ExecutionScope.init(ExecutionScope.java:602)
at msi.gama.metamodel.agent.AbstractAgent.schedule(AbstractAgent.java:296)
at msi.gama.kernel.simulation.SimulationAgent.schedule(SimulationAgent.java:359)
at msi.gama.kernel.simulation.SimulationPopulation.initSimulation(SimulationPopulation.java:167)
at msi.gama.kernel.simulation.SimulationPopulation.createAgents(SimulationPopulation.java:121)
at msi.gama.metamodel.population.IPopulation.createAgents(IPopulation.java:229)
at msi.gama.kernel.experiment.ExperimentAgent.createSimulation(ExperimentAgent.java:395)
at msi.gama.kernel.experiment.ExperimentAgent.init(ExperimentAgent.java:353)
at msi.gama.metamodel.agent.MinimalAgent.init(MinimalAgent.java:223)
at msi.gama.kernel.experiment.ExperimentAgent.init(ExperimentAgent.java:371)
at msi.gama.runtime.ExecutionScope.init(ExecutionScope.java:602)
at msi.gama.kernel.experiment.ExperimentController.schedule(ExperimentController.java:287)
at msi.gama.kernel.experiment.ExperimentAgent.schedule(ExperimentAgent.java:418)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:693)
at msi.gama.kernel.experiment.ExperimentPlan.open(ExperimentPlan.java:748)
at msi.gama.kernel.experiment.ExperimentController.lambda$2(ExperimentController.java:124)
at java.base/java.lang.Thread.run(Thread.java:833)

Desktop (please complete the following information):

  • OS: macOS
  • PC Model: MacBook M2 pro
  • GAMA version: git 1.9.2 (up to date, 6/6/2023)
@ptaillandier ptaillandier added 😱 Bug The issue reveals a bug in GAMA 🖥 Display OpenGL This issue or request concerns only OpenGL displays Priority High labels Jun 6, 2023
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 🖥 Display OpenGL This issue or request concerns only OpenGL displays Priority High
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants