Giter Site home page Giter Site logo

Comments (15)

xbpeng avatar xbpeng commented on August 19, 2024 2

cool, glad to hear that worked out!

from deepmimic.

xbpeng avatar xbpeng commented on August 19, 2024 1

Haven't seen that error before. You shouldn't be commenting out RLWorld. Maybe try commenting out the three lines here:

glutInitContextVersion(3, 2)

glutInitContextVersion(3, 2)
glutInitContextFlags(GLUT_FORWARD_COMPATIBLE)
glutInitContextProfile(GLUT_CORE_PROFILE)

and see if that makes any difference.

from deepmimic.

cookiegg avatar cookiegg commented on August 19, 2024 1

#10
I solved this problem,just comment the line:

glutInitContextVersion(3, 2)

screenshot from 2018-10-30 10-18-38

from deepmimic.

cookiegg avatar cookiegg commented on August 19, 2024

I find the above error appear when running to

  • line 275 of DeepMimic.py
glutCreateWindow(bDeepMimic’)

If I comment

from learning.rl_world import RLWorld

Above error disappear, and a new error occur:

forrest@cyborg:/data/Documents/DeepMimic$ python DeepMimic.py --arg_file args/run_humanoid3d_spinkick_args.txt
Renderer: TITAN X (Pascal)/PCIe/SSE2
OpenGL version supported 4.3.0 NVIDIA 384.111
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/VertColor_PS.glsl
Compiling shader: data/shaders/FullScreenQuad_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
[cyborg:29427] *** Process received signal ***
[cyborg:29427] Signal: Segmentation fault (11)
[cyborg:29427] Signal code: Address not mapped (1)
[cyborg:29427] Failing at address: (nil)
[cyborg:29427] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f6807529330]
[cyborg:29427] *** End of error message ***
Segmentation fault (core dumped)

The new error seems occur during running to

  • line 293 of DeepMimic.py:

    env = DeepMimicEnv(args, enable_draw)
  • line 16 of deepmimic_env.py:

    self._core.Init
  • line 636 of DeepMimicCore.py:

    def Init(self):
      return _DeepMimicCore.cDeepMimicCore_Init(self)

from deepmimic.

cookiegg avatar cookiegg commented on August 19, 2024

I try commenting out the three lines you mentioned, the old error about freeglut appear again.

from deepmimic.

renzhendian avatar renzhendian commented on August 19, 2024

@cookiegg I have the same problem. Do you solve this problem?

from deepmimic.

cookiegg avatar cookiegg commented on August 19, 2024

@renzhendian I upgrade my OS from ubuntu1404 to 1604, the old error about freeglut disappeared.
I do not know how to fix the Segmentation fault (core dumped) error about shader.
However, at least the code about training policy can run normally.

python mpi_run.py --arg_file args/train_humanoid3d_spinkick_args.txt --num_workers 4

screenshot from 2018-10-24 19-04-22

So, the problem is only related to the shader,I am still analyzing the cause of the error.

from deepmimic.

MarshallChen avatar MarshallChen commented on August 19, 2024

I have the same problem on Mac OSX High Sierra. Well build this project on mac is much painful, I also modified shaders version from 130 to 120, don't think it's shaders problem at all. @cookiegg have you solved your Segmentation fault error?

Renderer: Intel Iris Pro OpenGL Engine
OpenGL version supported 2.1 INTEL-10.36.19
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/VertColor_PS.glsl
Compiling shader: data/shaders/FullScreenQuad_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
[marshall:65363] *** Process received signal ***
[marshall:65363] Signal: Segmentation fault: 11 (11)
[marshall:65363] Signal code: Address not mapped (1)
[marshall:65363] Failing at address: 0x0
[marshall:65363] [ 0] 0   libsystem_platform.dylib            0x00007fff6862af5a _sigtramp + 26
[marshall:65363] [ 1] 0   ???                                 0x0000000000000000 0x0 + 0
[marshall:65363] [ 2] 0   _DeepMimicCore.so                   0x000000011ae9635c _ZN9cMeshUtil14BuildPointMeshERNSt3__110unique_ptrI9cDrawMeshNS0_14default_deleteIS2_EEEE + 44
[marshall:65363] [ 3] 0   _DeepMimicCore.so                   0x000000011ae8dae0 _ZN9cDrawUtil11BuildMeshesEv + 16
[marshall:65363] [ 4] 0   _DeepMimicCore.so                   0x000000011ae8d7d3 _ZN9cDrawUtil12InitDrawUtilEv + 147
[marshall:65363] [ 5] 0   _DeepMimicCore.so                   0x000000011adb2378 _ZN14cDeepMimicCore4InitEv + 24
[marshall:65363] [ 6] 0   _DeepMimicCore.so                   0x000000011aef404b _ZL25_wrap_cDeepMimicCore_InitP7_objectS0_ + 91
[marshall:66630] [ 7] 0   Python                              0x000000010b229005 _PyCFunction_FastCallDict + 166
[marshall:66630] [ 8] 0   Python                              0x000000010b28f0e6 call_function + 491
[marshall:66630] [ 9] 0   Python                              0x000000010b287621 _PyEval_EvalFrameDefault + 1659
[marshall:66630] [10] 0   Python                              0x000000010b2901e9 _PyFunction_FastCall + 121
[marshall:66630] [11] 0   Python                              0x000000010b28f0bd call_function + 450
[marshall:66630] [12] 0   Python                              0x000000010b287621 _PyEval_EvalFrameDefault + 1659
[marshall:66630] [13] 0   Python                              0x000000010b28f866 _PyEval_EvalCodeWithName + 1747
[marshall:66630] [14] 0   Python                              0x000000010b290119 _PyFunction_FastCallDict + 449
[marshall:66630] [15] 0   Python                              0x000000010b1f0708 _PyObject_FastCallDict + 196
[marshall:66630] [16] 0   Python                              0x000000010b1f082b _PyObject_Call_Prepend + 156
[marshall:66630] [17] 0   Python                              0x000000010b1f0589 PyObject_Call + 101
[marshall:66630] [18] 0   Python                              0x000000010b23c4d8 slot_tp_init + 57
[marshall:66630] [19] 0   Python                              0x000000010b239439 type_call + 184
[marshall:66630] [20] 0   Python                              0x000000010b1f06d3 _PyObject_FastCallDict + 143
[marshall:66630] [21] 0   Python                              0x000000010b28f0b6 call_function + 443
[marshall:66630] [22] 0   Python                              0x000000010b287621 _PyEval_EvalFrameDefault + 1659
[marshall:66630] [23] 0   Python                              0x000000010b28f866 _PyEval_EvalCodeWithName + 1747
[marshall:66630] [24] 0   Python                              0x000000010b28ff49 fast_function + 218
[marshall:66630] [25] 0   Python                              0x000000010b28f0bd call_function + 450
[marshall:66630] [26] 0   Python                              0x000000010b2876b8 _PyEval_EvalFrameDefault + 1810
[marshall:66630] [27] 0   Python                              0x000000010b2901e9 _PyFunction_FastCall + 121
[marshall:66630] [28] 0   Python                              0x000000010b28f0bd call_function + 450
[marshall:66630] [29] 0   Python                              0x000000010b287621 _PyEval_EvalFrameDefault + 1659
[marshall:66630] *** End of error message ***
[1]    66630 segmentation fault  python3 DeepMimic.py --arg_file args/run_humanoid3d_spinkick_args.txt

from deepmimic.

xbpeng avatar xbpeng commented on August 19, 2024

It looks like you have OpenGL 2.1, we need 3.2. So that might be the cause of the errors.

from deepmimic.

MarshallChen avatar MarshallChen commented on August 19, 2024

It seems not, shaders compiled without error. @cookiegg he's on OpenGL 4.3 also has this error.

forrest@cyborg:/data/Documents/DeepMimic$ python DeepMimic.py --arg_file args/run_humanoid3d_spinkick_args.txt
Renderer: TITAN X (Pascal)/PCIe/SSE2
OpenGL version supported 4.3.0 NVIDIA 384.111
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/VertColor_PS.glsl
Compiling shader: data/shaders/FullScreenQuad_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
Compiling shader: data/shaders/Mesh_VS.glsl
Compiling shader: data/shaders/DownSample_PS.glsl
[cyborg:29427] *** Process received signal ***
[cyborg:29427] Signal: Segmentation fault (11)
[cyborg:29427] Signal code: Address not mapped (1)
[cyborg:29427] Failing at address: (nil)
[cyborg:29427] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f6807529330]
[cyborg:29427] *** End of error message ***
Segmentation fault (core dumped)

from deepmimic.

MarshallChen avatar MarshallChen commented on August 19, 2024

So may be we should use OpenGL 3.2 explicitly?

from deepmimic.

xbpeng avatar xbpeng commented on August 19, 2024

do you know what is triggering that seg fault?

from deepmimic.

MarshallChen avatar MarshallChen commented on August 19, 2024
_ZN9cMeshUtil14BuildPointMeshERNSt3__110unique_ptrI9cDrawMeshNS0_14default_deleteIS2_EEEE + 44

By the line above it's pointing out that maybe cDrawMesh() function didn't working properly on my mac. I tried to std::cout some random strings to console like it says. I think new cDrawMesh() call crashed.

void cMeshUtil::BuildPointMesh(std::unique_ptr<cDrawMesh>& out_mesh)
{
	...
        std::cout << "This will be console logged" << std::endl;
	
        out_mesh = std::unique_ptr<cDrawMesh>(new cDrawMesh());
        
        std::cout << "This will not be logged" << std::endl;
	
        BuildDrawMesh(vert_data, pos_len, norm_data, norm_len, coord_data, coord_len, idx_data, idx_len, out_mesh.get());
}

Maybe you are right it's still the OpenGL problem.

from deepmimic.

Superlee506 avatar Superlee506 commented on August 19, 2024

@cookiegg Hi, thanks for this related issue and I face the same problem.
I commented the glutInitContextVersion(3, 2) in Line 269, but the bug still exists. Do I need to do some other modifications?

from deepmimic.

cookiegg avatar cookiegg commented on August 19, 2024

@Superlee506
My env:
ubuntu:16.04
opengl: 4.6.0
NVIDIA Driver: 390.87

I guess the error related with the mismatch between Opengl with OS and Graph Driver. So maybe you should upgrade your OS AND Driver.

from deepmimic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.