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

New thermal camera test failure for Edifice #667

Closed
adlarkin opened this issue Mar 3, 2021 · 7 comments · Fixed by #994
Closed

New thermal camera test failure for Edifice #667

adlarkin opened this issue Mar 3, 2021 · 7 comments · Fixed by #994
Assignees
Labels
bug Something isn't working tests Broken or missing tests / testing infra

Comments

@adlarkin
Copy link
Contributor

adlarkin commented Mar 3, 2021

Environment

  • OS Version: Ubuntu 18.04
  • Source or binary build? Source, commit 6c91ff9

Description

  • Expected behavior: The INTEGRATION_thermal_sensor_system test (ThermalSensorTest.ThermalSensorSystemInvalidConfig) should pass
  • Actual behavior: The test fails

Steps to reproduce

  1. Clone the repo: git clone https://github.com/ignitionrobotics/ign-gazebo.git
  2. Complete the build so that tests are available:
cd ign-gazebo
mkdir build
cd build
cmake ..
make
  1. Run the thermal sensor integration test:
# the following steps assume you are already in the ign-rendering/build directory
cd bin
./INTEGRATION_thermal_sensor_system

Output

[Msg] Setting ambient temperature to 310 Kelvin and gradient to -0.0065 K/m. The resulting temperature range is: 0.750384 Kelvin.
[Wrn] [RenderUtil.cc:1048] Unable to set thermal camera temperature linear resolution. Value must be greater than 0. Using the default value: 3.
[Wrn] [RenderUtil.cc:1061] Unable to set thermal camera temperature range.Max temperature must be greater or equal to min. Using the default values : [-inf, inf].
/home/addisu/ws/edifice/src/ign-gazebo/test/integration/thermal_sensor_system.cc:197: Failure
Value of: received
  Actual: false
Expected: true
/home/addisu/ws/edifice/src/ign-gazebo/test/integration/thermal_sensor_system.cc:198: Failure
Expected: (nullptr) != (g_image), actual: (nullptr) vs NULL
[Dbg] [Sensors.cc:309] SensorsPrivate::Stop
[Dbg] [Sensors.cc:295] SensorsPrivate::RenderThread stopped
[Dbg] [SimulationRunner.cc:499] Exiting postupdate worker thread (1)
[Dbg] [SimulationRunner.cc:499] Exiting postupdate worker thread (2)
[Dbg] [SimulationRunner.cc:499] Exiting postupdate worker thread (0)
[Dbg] [Sensors.cc:309] SensorsPrivate::Stop
[  FAILED  ] ThermalSensorTest.ThermalSensorSystemInvalidConfig (3176 ms)
@adlarkin adlarkin added the bug Something isn't working label Mar 3, 2021
@adlarkin
Copy link
Contributor Author

adlarkin commented Mar 3, 2021

A similar issue appeared when forward porting ign-rendering to Edifice as well: gazebosim/gz-rendering#253

@chapulina chapulina added the tests Broken or missing tests / testing infra label Mar 4, 2021
@chapulina
Copy link
Contributor

That test is passing on CI:

And it seems to have passed on the latest GitHub actions too. Where is it failing, locally? Does it always fail or is it flaky?

@adlarkin
Copy link
Contributor Author

adlarkin commented Mar 4, 2021

@azeey, you had local failures, right? Can you share a little more information about what you're seeing?

@azeey
Copy link
Contributor

azeey commented Jun 4, 2021

Sorry for the delay in responding. The error I get is the same as the one shown in the description, but it doesn't happen every time. I think it might be a flaky test due to transport issues. Locally, you can try running ctest -VV -I 173,173 --repeat-until-fail 1000 where 173 is the index of the INTEGRATION_thermal_sensor_system test.

@jacobperron
Copy link

jacobperron commented Jul 19, 2021

Another instance of this test failure: https://build.osrfoundation.org/job/ignition_rendering-ci-ign-rendering5-homebrew-amd64/17/

I noticed many instances of the following logged error (I'm not sure if it's relevant):

[Err] [Ogre2RenderEngine.cc:467] Unable to find Ogre Plugin[/usr/local/opt/ogre2.1/lib/OGRE-2.1/RenderSystem_GL3Plus]. Rendering will not be possible.Make sure you have installed OGRE properly.

Edit: I meant to post this over here instead gazebosim/gz-rendering#253

@chapulina
Copy link
Contributor

I think I figured out what the problem is on Edifice, see #994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tests Broken or missing tests / testing infra
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants