{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing/issues/2201","labels_url":"https://api.github.com/repos/processing/processing/issues/2201/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/2201/comments","events_url":"https://api.github.com/repos/processing/processing/issues/2201/events","html_url":"https://github.com/processing/processing/issues/2201","id":22074290,"number":2201,"title":"SimpleOpenNi examples give error on MacOS 10.8.5","user":{"login":"jorrit-g","id":5853894,"avatar_url":"https://avatars.githubusercontent.com/u/5853894?v=3","gravatar_id":"","url":"https://api.github.com/users/jorrit-g","html_url":"https://github.com/jorrit-g","followers_url":"https://api.github.com/users/jorrit-g/followers","following_url":"https://api.github.com/users/jorrit-g/following{/other_user}","gists_url":"https://api.github.com/users/jorrit-g/gists{/gist_id}","starred_url":"https://api.github.com/users/jorrit-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorrit-g/subscriptions","organizations_url":"https://api.github.com/users/jorrit-g/orgs","repos_url":"https://api.github.com/users/jorrit-g/repos","events_url":"https://api.github.com/users/jorrit-g/events{/privacy}","received_events_url":"https://api.github.com/users/jorrit-g/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/processing/processing/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-11-04T19:41:14Z","updated_at":"2015-07-24T21:10:01Z","closed_at":"2014-01-22T00:51:46Z","body":"What happens?\r\n\r\nWhen I run any of the examples provided by the SimpleOpenNI lib, I get the following error right after initialization of the sketch:\r\n\r\n----------------------------------------------------------------------------------------\r\nA fatal error has been detected by the Java Runtime Environment:\r\n\r\nSIGILL (0x4) at pc=0x0000000157fe00b4, pid=472, tid=50203\r\n\r\n#\r\nJRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)\r\nJava VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode bsd-amd64 compressed oops)\r\nProblematic frame:\r\nC [libfreenect.0.1.2.dylib+0x40b4] freenect_camera_init+0x178\r\n\r\n#\r\nFailed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n\r\n#\r\nAn error report file with more information is saved as:\r\n/Users/xxxxx/Documents/Processing/libraries/SimpleOpenNI/library/osx/hs_err_pid472.log\r\n\r\n#\r\nIf you would like to submit a bug report, please visit:\r\nhttp://bugreport.sun.com/bugreport/crash.jsp\r\nThe crash happened outside the Java Virtual Machine in native code.\r\nSee problematic frame for where to report the bug.\r\n--------------------------------------------------------------------------------------------\r\n\r\n\r\nHow to reproduce:\r\n\r\n1. Reinstall MacOS (version 10.8.5)\r\n2. Download Processing\r\n3. Install SimpleOpenNI through the autoinstaller\r\n\r\nThe provided libs libfreenect.0.1.2.dylib and libusb-1.0.0.dylib seem to be corrupt\r\n\r\nHow to solve: \r\n\r\n1. replace libfreenect.0.1.2.dylib and libusb-1.0.0.dylib in /Users/[yourname]/Documents/Processing/libraries/SimpleOpenNI/library/osx/OpenNI2/Drivers with the same drivers provided on https://github.com/kronihias/head-pose-estimation/tree/master/mac-libs\r\n\r\n2. rerun sketch\r\n\r\nOn which system: \r\n\r\nMacbook air mid 2011 model\r\n\r\nhardware specs: \r\n\r\n  Model Name:\tMacBook Air\r\n  Model Identifier:\tMacBookAir3,2\r\n  Processor Name:\tIntel Core 2 Duo\r\n  Processor Speed:\t1.86 GHz\r\n  Number of Processors:\t1\r\n  Total Number of Cores:\t2\r\n  L2 Cache:\t6 MB\r\n  Memory:\t4 GB\r\n  Bus Speed:\t1.07 GHz\r\n\r\nChipset Model:\tNVIDIA GeForce 320M\r\n  Type:\tGPU\r\n  Bus:\tPCI\r\n  VRAM (Total):\t256 MB\r\n  Vendor:\tNVIDIA (0x10de)\r\n  Device ID:\t0x08a3\r\n  Revision ID:\t0x00a2\r\n  ROM Revision:\t3571\r\n\r\n\r\nStrangely I could not reproduce this issue on a newer MacBook (model oct. 2012) air running OSx 10.8.5 with the same java version.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/processing/processing/issues/comments/124725189","html_url":"https://github.com/processing/processing/issues/2201#issuecomment-124725189","issue_url":"https://api.github.com/repos/processing/processing/issues/2201","id":124725189,"user":{"login":"funkytaco","id":1712205,"avatar_url":"https://avatars.githubusercontent.com/u/1712205?v=3","gravatar_id":"","url":"https://api.github.com/users/funkytaco","html_url":"https://github.com/funkytaco","followers_url":"https://api.github.com/users/funkytaco/followers","following_url":"https://api.github.com/users/funkytaco/following{/other_user}","gists_url":"https://api.github.com/users/funkytaco/gists{/gist_id}","starred_url":"https://api.github.com/users/funkytaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkytaco/subscriptions","organizations_url":"https://api.github.com/users/funkytaco/orgs","repos_url":"https://api.github.com/users/funkytaco/repos","events_url":"https://api.github.com/users/funkytaco/events{/privacy}","received_events_url":"https://api.github.com/users/funkytaco/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T21:10:01Z","updated_at":"2015-07-24T21:10:01Z","body":"I modified one line in the Makefile:\r\n\r\n    g++ src/OSCeleton.cpp src/viewer.cpp -O3 -Wno-write-strings -Iliblo-0.26-modified -I/usr/X11/include -I/usr/include/ni -lOpenNI -lstdc++ -L/usr/X11/lib -framework OpenGL -framework GLUT liblo-0.26-modified/src/.libs/*.o -o osceleton\r\n\r\nBased on [this SO answer](http://stackoverflow.com/questions/21105983/include-gl-glut-h-file-not-found-in-xcode) I modified viewer.cpp:\r\n\r\n\t#ifndef __MAC__\r\n\t#define __MAC__ 1\r\n\t#endif\r\n\r\n\t#ifdef __MAC__\r\n\t# include <OpenGL/glu.h>\r\n\t# include <OpenGL/gl.h>\r\n\r\n\t#else\r\n\t#include <GL/glu.h>\r\n\t# include <GL/gl.h> \r\n\t#endif\r\n\r\n\r\n$ ls /System/Library/Frameworks/GLUT.framework/headers\r\n\r\n\tcopy.h\t\tglsmapint.h\tglutf90.h\tintersect.h\tsegment.h\tvvector.h\r\n\textrude.h\tglut.h\t\tglutstroke.h\tport.h\t\ttube.h\r\n\tglsmap.h\tglutbitmap.h\tgutil.h\t\trot.h\t\ttube_gc.h\r\n\r\n$ ls /System/Library/Frameworks/OpenGL.framework/Headers/\r\n\r\n\tCGLContext.h\t\tCGLMacro.h\t\tOpenGLAvailability.h\tglext.h\t\t\tglu.h\r\n\tCGLCurrent.h\t\tCGLRenderers.h\t\tgl.h\t\t\tgliContext.h\t\tgluContext.h\r\n\tCGLDevice.h\t\tCGLTypes.h\t\tgl3.h\t\t\tgliDispatch.h\t\tgluMacro.h\r\n\tCGLIOSurface.h\t\tOpenGL.h\t\tgl3ext.h\t\tgltypes.h\r\n\r\nI changed common.h to this:\r\n\r\n\t#ifndef __MAC__\r\n\t#define __MAC__ 1\r\n\t#endif\r\n\r\n\t#ifdef __MAC__\r\n\t# include <GLUT/glut.h>\r\n\t#else\r\n\t#endif\r\n\r\n\textern int window;\r\n\r\n\t#include \"viewer.h\"\r\n\r\nI may have modified another file or two, but if I did, they were all errors relationg to the GL library."}}