Closed cuinjune closed 4 years ago
If that's all that's changed, great. I haven't updated the add-on for 0.11.0 yet.
Should be fixed in new 1.4.0 version. The glm headers were reorganized so the glm bindings needed to be updated to match. luaExample is building and running fine for me on macOS 10.14 and Xcode 11.
Hi, I just tried to run luaExample on Arch Linux and it crashes silently. In the debugger I see this:
1 glm::vec<4, float, (glm::qualifier)0> glm::operator *<float, (glm::qualifier)0>(glm::vec<4, float, (glm::qualifier)0> const&, float const&) type_vec4.inl 866 0x5555559444d8
2 glm::mat<4, 4, float, (glm::qualifier)0> glm::translate<float, (glm::qualifier)0>(glm::mat<4, 4, float, (glm::qualifier)0> const&, glm::vec<3, float, (glm::qualifier)0> const&) matrix_transform.inl 13 0x555555a1c2b6
3 ofNode::createMatrix() ofNode.cpp 676 0x555555b6cb12
4 ofNode::setPosition(glm::vec<3, float, (glm::qualifier)0> const&) ofNode.cpp 182 0x555555b6a191
5 ofNode::ofNode() ofNode.cpp 13 0x555555b69399
6 of3dPrimitive::of3dPrimitive() of3dPrimitives.cpp 20 0x555555b4f599
7 ofPlanePrimitive::ofPlanePrimitive(float, float, int, int, ofPrimitiveMode) of3dPrimitives.cpp 294 0x555555b50cc1
8 of3dGraphics::of3dGraphics(ofBaseRenderer *) of3dGraphics.cpp 32 0x555555b33fb6
9 ofGLRenderer::ofGLRenderer(ofAppBaseWindow const *) ofGLRenderer.cpp 24 0x555555cba9a9
10 void __gnu_cxx::new_allocator<ofGLRenderer>::construct<ofGLRenderer, ofAppGLFWWindow *>(ofGLRenderer *, ofAppGLFWWindow *&&) new_allocator.h 147 0x555555c3a879
11 void std::allocator_traits<std::allocator<ofGLRenderer>>::construct<ofGLRenderer, ofAppGLFWWindow *>(std::allocator<ofGLRenderer>&, ofGLRenderer *, ofAppGLFWWindow *&&) alloc_traits.h 484 0x555555c3a5b6
12 std::_Sp_counted_ptr_inplace<ofGLRenderer, std::allocator<ofGLRenderer>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<ofAppGLFWWindow *>(std::allocator<ofGLRenderer>, ofAppGLFWWindow *&&) shared_ptr_base.h 548 0x555555c3a124
13 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<ofGLRenderer, std::allocator<ofGLRenderer>, ofAppGLFWWindow *>(ofGLRenderer *&, std::_Sp_alloc_shared_tag<std::allocator<ofGLRenderer>>, ofAppGLFWWindow *&&) shared_ptr_base.h 679 0x555555c39aca
14 std::__shared_ptr<ofGLRenderer, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<ofGLRenderer>, ofAppGLFWWindow *>(std::_Sp_alloc_shared_tag<std::allocator<ofGLRenderer>>, ofAppGLFWWindow *&&) shared_ptr_base.h 1344 0x555555c395f2
15 std::shared_ptr<ofGLRenderer>::shared_ptr<std::allocator<ofGLRenderer>, ofAppGLFWWindow *>(std::_Sp_alloc_shared_tag<std::allocator<ofGLRenderer>>, ofAppGLFWWindow *&&) shared_ptr.h 359 0x555555c39005
16 std::shared_ptr<ofGLRenderer> std::allocate_shared<ofGLRenderer, std::allocator<ofGLRenderer>, ofAppGLFWWindow *>(std::allocator<ofGLRenderer> const&, ofAppGLFWWindow *&&) shared_ptr.h 702 0x555555c38595
17 std::shared_ptr<ofGLRenderer> std::make_shared<ofGLRenderer, ofAppGLFWWindow *>(ofAppGLFWWindow *&&) shared_ptr.h 718 0x555555c37d32
18 ofAppGLFWWindow::setup(ofGLFWWindowSettings const&) ofAppGLFWWindow.cpp 204 0x555555c329dd
19 ofAppGLFWWindow::setup(ofGLWindowSettings const&) ofAppGLFWWindow.cpp 149 0x555555c324a4
20 ofAppBaseGLWindow::setup(ofWindowSettings const&) ofAppBaseWindow.h 113 0x555555c375c1
21 ofMainLoop::createWindow(ofWindowSettings const&) ofMainLoop.cpp 69 0x555555c3b026
22 ofCreateWindow(ofWindowSettings const&) ofAppRunner.cpp 222 0x555555c2a2f8
23 ofSetupOpenGL(int, int, ofWindowMode) ofAppRunner.cpp 217 0x555555c2a25e
24 main main.cpp 15 0x555555a78a79
25 __libc_start_main (x86_64) /usr/lib/libc.so.6 0x7ffff598d153
26 _start (x86_64) /home/fp/src/openFrameworks/addons/ofxLua/luaExample/bin/luaExample_debug 0x5555555d6dae
Any ideas?
Which script is luaExample running and what is the console output when it crashes?
I'm just running luaExample unmodified, I don't know which script it is running. It's my first attempt at ofxLua. This is the output:
10:29:25: Starting /home/fp/src/openFrameworks/addons/ofxLua/luaExample/bin/luaExample_debug ...
ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=1 pid=22528 comm="luaExample_debu" exe="/home/fp/src/openFrameworks/addons/ofxLua/luaExample/bin/luaExample_debug" sig=11 res=1
10:29:25: The program has unexpectedly finished.
10:29:25: The process was ended forcefully.
10:29:25: /home/fp/src/openFrameworks/addons/ofxLua/luaExample/bin/luaExample_debug crashed.
So it compiles fine and closes immediately. Can I help figure it out?
update: based on this
scripts.push_back("scripts/graphicsExample.lua");
scripts.push_back("scripts/imageLoaderExample.lua");
scripts.push_back("scripts/polygonExample.lua");
scripts.push_back("scripts/fontsExample.lua");
currentScript = 0;
it is running graphicsExample.lua. Changing currentScript
to 1, 2 or 3 also crash.
For confirmation, there should be a verbose print when a script is loaded, ala:
[verbose] ofxLua: Initialized state
[verbose] ofxLua: Doing script: "graphicsExample.lua" path: "/Users/dano/src/of/of_v0.11.0_osx_release/addons/ofxLua/luaExample/bin/data/scripts"
[verbose] ofxLua: Changing to script dir "/Users/dano/src/of/of_v0.11.0_osx_release/addons/ofxLua/luaExample/bin/data/scripts"
Hello World!
script setup
Does it crash if there are "no scripts" run? ie. comment out doScript()
in ofApp::setup()
As this is actually a separate issue, I moved your initial post to #58. Please continue the discussion there so I can leave this issue closed.
When I build ofxLua, (in Raspbian Buster) it fails saying the
glmBindings.cpp
file cannot include the fileglm/gtc/functions.hpp
.It seems like the file no longer exists in OF 0.11.0. So I just commented out
#include <glm/gtc/functions.hpp>
inglmBindings.cpp
, and then it builds fine.