{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4282","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4282/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4282/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4282/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/4282","id":102278750,"number":4282,"title":"ofAppEGLWindow/ES2 crashing with OF 0.9 RC1","user":{"login":"jvcleave","id":150037,"avatar_url":"https://avatars.githubusercontent.com/u/150037?v=3","gravatar_id":"","url":"https://api.github.com/users/jvcleave","html_url":"https://github.com/jvcleave","followers_url":"https://api.github.com/users/jvcleave/followers","following_url":"https://api.github.com/users/jvcleave/following{/other_user}","gists_url":"https://api.github.com/users/jvcleave/gists{/gist_id}","starred_url":"https://api.github.com/users/jvcleave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvcleave/subscriptions","organizations_url":"https://api.github.com/users/jvcleave/orgs","repos_url":"https://api.github.com/users/jvcleave/repos","events_url":"https://api.github.com/users/jvcleave/events{/privacy}","received_events_url":"https://api.github.com/users/jvcleave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T02:10:00Z","updated_at":"2015-08-21T03:21:58Z","closed_at":null,"body":"(actually currently using the 2015 08 20 nightly but saw this previously)\r\n\r\nTest case\r\n```\r\n#include \"ofMain.h\"\r\n#include \"ofApp.h\"\r\n#if (OF_VERSION_MINOR != 9)\r\n#include \"ofGLProgrammableRenderer.h\"\r\n#endif\r\n//========================================================================\r\nint main( ){\r\n\r\n\tofSetLogLevel(OF_LOG_VERBOSE);\r\n\t\r\n\t#if (OF_VERSION_MINOR == 9)\r\n\t\tofGLESWindowSettings settings;\r\n    \tsettings.width = 1280;\r\n   \t \tsettings.height = 720;\r\n\t\tsettings.setGLESVersion(2);\r\n\t\tofCreateWindow(settings);\r\n\t#else\r\n\t\tofSetLogLevel(\"ofThread\", OF_LOG_ERROR);\r\n\t\tofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);\r\n\t\tofSetupOpenGL(1280, 720, OF_WINDOW);\r\n\t#endif\r\n\tofRunApp( new ofApp());\r\n\r\n}\r\n\r\n```\r\n\r\nCrashes with\r\n\r\n```\r\n[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 1360x768\r\n[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 1280x720\r\n[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display\r\n[notice ] ofAppEGLWindow: createSurface(): EGL Display correctly set 0x1\r\n[notice ] ofAppEGLWindow: createSurface(): no current renderer selected\r\n[notice ] ofAppEGLWindow: createSurface(): GLES2 renderer detected\r\n[notice ] ofAppEGLWindow: createSurface(): surface created correctly\r\n[notice ] ofAppEGLWindow: createSurface(): API bound correctly\r\n[notice ] ofAppEGLWindow: createSurface(): -----EGL-----\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MAJOR = 1\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MINOR = 4\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_CLIENT_APIS = OpenGL_ES OpenVG\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VENDOR = Broadcom\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION = 1.4\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface \r\n[notice ] ofAppEGLWindow: createSurface(): GL_RENDERER = VideoCore IV HW\r\n[notice ] ofAppEGLWindow: createSurface(): GL_VERSION  = OpenGL ES 2.0\r\n[notice ] ofAppEGLWindow: createSurface(): GL_VENDOR   = Broadcom\r\n[notice ] ofAppEGLWindow: createSurface(): -------------\r\n[notice ] ofAppEGLWindow: setupPeripherals(): peripheral setup complete\r\n[notice ] ofAppEGLWindow: setupNativeUDev(): created udev object\r\n[notice ] ofAppEGLWindow: setupMouse(): unabled to find mouse\r\n[ error ] ofAppEGLWindow: setupMouse(): did not open mouse\r\n[ error ] ofAppEGLWindow: setupMouse(): did not open mouse, mouse_fd < 0\r\n[warning] ofAppEGLWindow: setupKeyboard(): unabled to find keyboard\r\n[ error ] ofAppEGLWindow: setupKeyboard(): did not open keyboard\r\n[ error ] ofAppEGLWindow: setupKeyboard(): did not open keyboard, keyboard_fd < 0\r\n[notice ] ofAppEGLWindow: setupPeripherals(): native event setup complete\r\n[verbose] ofShader: checkAndCreateProgram(): creating GLSL program\r\nterminate called after throwing an instance of 'std::regex_error'\r\n  what():  regex_error\r\n[verbose] ofSignalHandler: Aborted\r\n[notice ] ofAppEGLWindow: destroyNativeKeyboard()\r\n[notice ] ofAppEGLWindow: destroyNativeKeyboard(): unable to reset terminal\r\n[notice ] ofAppEGLWindow: destroySurface(): destroying EGL surface\r\n```\r\n\r\nUsing latest Raspbian Wheezy/ RPi 1/g++ 4.8.2"},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/133264899","html_url":"https://github.com/openframeworks/openFrameworks/issues/4282#issuecomment-133264899","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4282","id":133264899,"user":{"login":"jvcleave","id":150037,"avatar_url":"https://avatars.githubusercontent.com/u/150037?v=3","gravatar_id":"","url":"https://api.github.com/users/jvcleave","html_url":"https://github.com/jvcleave","followers_url":"https://api.github.com/users/jvcleave/followers","following_url":"https://api.github.com/users/jvcleave/following{/other_user}","gists_url":"https://api.github.com/users/jvcleave/gists{/gist_id}","starred_url":"https://api.github.com/users/jvcleave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvcleave/subscriptions","organizations_url":"https://api.github.com/users/jvcleave/orgs","repos_url":"https://api.github.com/users/jvcleave/repos","events_url":"https://api.github.com/users/jvcleave/events{/privacy}","received_events_url":"https://api.github.com/users/jvcleave/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T03:21:58Z","updated_at":"2015-08-21T03:21:58Z","body":"Debug/Backtrace\r\n```\r\npi@jvcrpi ~/openFrameworks/apps/myApps/es2Test/bin $ gdb ./es2Test_debug \r\nGNU gdb (GDB) 7.4.1-debian\r\nCopyright (C) 2012 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"arm-linux-gnueabihf\".\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>...\r\nReading symbols from /home/pi/openFrameworks/apps/myApps/es2Test/bin/es2Test_debug...done.\r\n(gdb) handle SIGILL nostop\r\nSignal        Stop\tPrint\tPass to program\tDescription\r\nSIGILL        No\tYes\tYes\t\tIllegal instruction\r\n(gdb) r\r\nStarting program: /home/pi/openFrameworks/apps/myApps/es2Test/bin/es2Test_debug \r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/arm-linux-gnueabihf/libthread_db.so.1\".\r\n\r\nProgram received signal SIGILL, Illegal instruction.\r\n\r\nProgram received signal SIGILL, Illegal instruction.\r\n[New Thread 0xb5ef02e0 (LWP 24757)]\r\n[New Thread 0xb56f02e0 (LWP 24758)]\r\n[New Thread 0xb4ef02e0 (LWP 24759)]\r\n[New Thread 0xb46f02e0 (LWP 24760)]\r\n[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 1360x768\r\n[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 1280x720\r\n[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display\r\n[notice ] ofAppEGLWindow: createSurface(): EGL Display correctly set 0x1\r\n[notice ] ofAppEGLWindow: createSurface(): no current renderer selected\r\n[notice ] ofAppEGLWindow: createSurface(): GLES2 renderer detected\r\n[notice ] ofAppEGLWindow: createSurface(): surface created correctly\r\n[notice ] ofAppEGLWindow: createSurface(): API bound correctly\r\n[notice ] ofAppEGLWindow: createSurface(): -----EGL-----\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MAJOR = 1\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MINOR = 4\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_CLIENT_APIS = OpenGL_ES OpenVG\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VENDOR = Broadcom\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION = 1.4\r\n[notice ] ofAppEGLWindow: createSurface(): EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface \r\n[notice ] ofAppEGLWindow: createSurface(): GL_RENDERER = VideoCore IV HW\r\n[notice ] ofAppEGLWindow: createSurface(): GL_VERSION  = OpenGL ES 2.0\r\n[notice ] ofAppEGLWindow: createSurface(): GL_VENDOR   = Broadcom\r\n[notice ] ofAppEGLWindow: createSurface(): -------------\r\n[notice ] ofAppEGLWindow: setupPeripherals(): peripheral setup complete\r\n[notice ] ofAppEGLWindow: setupNativeUDev(): created udev object\r\n[notice ] ofAppEGLWindow: setupMouse(): unabled to find mouse\r\n[ error ] ofAppEGLWindow: setupMouse(): did not open mouse\r\n[ error ] ofAppEGLWindow: setupMouse(): did not open mouse, mouse_fd < 0\r\n[warning] ofAppEGLWindow: setupKeyboard(): unabled to find keyboard\r\n[ error ] ofAppEGLWindow: setupKeyboard(): did not open keyboard\r\n[ error ] ofAppEGLWindow: setupKeyboard(): did not open keyboard, keyboard_fd < 0\r\n[New Thread 0xb3ef02e0 (LWP 24761)]\r\n[notice ] ofAppEGLWindow: setupPeripherals(): native event setup complete\r\n[verbose] ofShader: checkAndCreateProgram(): creating GLSL program\r\nterminate called after throwing an instance of 'std::regex_error'\r\n  what():  regex_error\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n0xb672f8dc in raise () from /lib/arm-linux-gnueabihf/libc.so.6\r\n(gdb) bt\r\n#0  0xb672f8dc in raise () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#1  0xb673365c in abort () from /lib/arm-linux-gnueabihf/libc.so.6\r\n#2  0xb6906c0c in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6\r\n#3  0xb6906c0c in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n```"}}