Converting sketch from P1.5 to P2 fails - can't tell why - stumpped

I'm converting my application from P1.5 to P2 and have been going through the changes, running, addressing the thrown error, fixing the incompatibility and running again. However, I now get to a point where my sketch fails immediatly after the window renders for an instance. The error dumps a lot of data and therefore I can't see the actual error thrown as it's scrolled off the console and beyond the buffer. I simply get a long listing that looks like this small extract. I'm hoping somebody recognizes this and can share their remedy. AFAIK I have updated everything for 2.0. Any suggestions...? Is there a way to redirect the console to a text file tat I can go back through to find the error thrown?

3668  (0x14d35ecc)  [00|00| 5567]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3669  (0x14d35edc)  [00|00| 5569]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3670  (0x14d35eec)  [00|00| 5570]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3671  (0x14d35efc)  [00|00| 5571]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3672  (0x14d35f0c)  [00|00| 5572]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3673  (0x14d35f1c)  [00|00| 5574]
                 [   0x00000000]
                 [   0x00000000]
                 [   0x00000000]
                 -------------
3674  (0x14d35f2c)  [00|b7| 5575]
                 [   0x141660c0]
                 [   0x00000000]
                 [   0x80800001]
                 -------------

Answers

  • Your error log doesn't really describe anything. Why don't you post some more information about your sketch? Or before you do that, delete functionality from your sketch step by step and find out what's responsible for the crash.

  • Perhaps it is a dump from some native library? Are you sure all the libraries you use are compatible with 2.0?

  • on linux, and probably mac, the console output gets written to a logfile automatically, but i think that might be 1.5.1 only. it's also hard to find, being randomly named. ls -ltr /tmp might help.

    with 2.0 i'm getting output in the terminal window i started processing in so that's just a case of using ./processing | tee /tmp/processing.log

    ah! just found 2.0 output in ~/.processing/console there are timestamped .err and .out files. which it doesn't appear to clean up...

  • edited October 2013

    and this entry in preferences.txt might be germaine

    console.length=500

  • Ok, increasing the console.length got me this error message:

    =========================================
    Native lib Version = RXTX-2.1-7
    Java lib Version   = RXTX-2.1-7
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1ad613b5, pid=6388, tid=4396
    #
    # JRE version: 6.0_37-b06
    # Java VM: Java HotSpot(TM) Client VM (20.12-b01 mixed mode windows-x86 )
    # Problematic frame:
    # C  [ig7icd32.dll+0x2c13b5]
    #
    # An error report file with more information is saved as:
    # C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\hs_err_pid6388.log
                     -------------
      0  (0x14c25034)  [b5|b4|    1]
                     [   0x14bfeb80]
                     [   0x00000014]
                     [   0x78000002]
                     -------------
      1  (0x14c25044)  [b6|00|    2]
                     [   0x00000000]
                     [   0x149fa7d0]
                     [   0x7c800001]
                     -------------
      2  (0x14c25054)  [00|00|    4]
                     [   0x00000000]
                     [   0x00000000]
                     [   0x00000000]
                     -------------
      3  (0x14c25064)  [00|00|    7]
                     [   0x00000000]
                     [   0x00000000]
                     [   0x00000000]
                     -------------
      4  (0x14c25074)  [00|00|    8]
                     [   0x00000000]
                     [   0x00000000]
                     [   0x00000000]..............ETC.
    

    And here's the log referenced above (forgive the loooong paste...). I'm going to wade through this tonight to see if I can spot the issue.

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1ad613b5, pid=6388, tid=4396
    #
    # JRE version: 6.0_37-b06
    # Java VM: Java HotSpot(TM) Client VM (20.12-b01 mixed mode windows-x86 )
    # Problematic frame:
    # C  [ig7icd32.dll+0x2c13b5]
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
    
    ---------------  T H R E A D  ---------------
    
    Current thread (0x18972400):  JavaThread "Animation Thread" [_thread_in_native, id=4396, stack(0x1a6a0000,0x1a6f0000)]
    
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000350
    
    Registers:
    EAX=0x00000000, EBX=0x14b1f768, ECX=0x00000006, EDX=0x14c25020
    ESP=0x1a6ef89c, EBP=0x1a6ef8b8, ESI=0x14b1f768, EDI=0x18972400
    EIP=0x1ad613b5, EFLAGS=0x00010206
    
    Top of Stack: (sp=0x1a6ef89c)
    0x1a6ef89c:   6450a1a4 00000001 00000000 1a6ef8a8
    0x1a6ef8ac:   1421b3f8 1a6ef8d8 14220280 1a6ef900
    0x1a6ef8bc:   0215e7f2 18972528 1a6ef91c 00000001
    0x1a6ef8cc:   1ad613a0 00000000 00000000 00000000
    0x1a6ef8dc:   1a6ef8dc 1a6ef8e0 00000000 1a6ef91c
    0x1a6ef8ec:   14c25020 00000000 14b1f768 00000000
    0x1a6ef8fc:   1a6ef910 1a6ef940 02152ea1 00000000
    0x1a6ef90c:   0215b809 1ad613a0 00000000 00000001 
    
    Instructions: (pc=0x1ad613b5)
    0x1ad61395:   8b 80 d8 03 00 00 ff e0 cc cc cc 8b 0d 50 37 25
    0x1ad613a5:   1b 64 a1 2c 00 00 00 8b 04 88 8b 80 04 00 00 00
    0x1ad613b5:   8b 80 50 03 00 00 ff e0 cc cc cc 8b 0d 50 37 25
    0x1ad613c5:   1b 64 a1 2c 00 00 00 8b 04 88 f2 0f 10 44 24 0c 
    
    
    Register to memory mapping:
    
    EAX=0x00000000 is an unknown value
    EBX=0x14b1f768 is an oop
    {method} 
     - klass: {other class}
    ECX=0x00000006 is an unknown value
    EDX=0x14c25020 is an oop
    {constant pool cache} 
     - klass: {other class}
    ESP=0x1a6ef89c is pointing into the stack for thread: 0x18972400
    EBP=0x1a6ef8b8 is pointing into the stack for thread: 0x18972400
    ESI=0x14b1f768 is an oop
    {method} 
     - klass: {other class}
    EDI=0x18972400 is a thread
    
    
    Stack: [0x1a6a0000,0x1a6f0000],  sp=0x1a6ef89c,  free space=318k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [ig7icd32.dll+0x2c13b5]  DrvSetCallbackProcs+0x3f3f5
    j  jogamp.opengl.gl4.GL4bcImpl.dispatch_glDepthMask1(ZJ)V+0
    j  jogamp.opengl.gl4.GL4bcImpl.glDepthMask(Z)V+34
    j  processing.opengl.PGL.depthMask(Z)V+4
    j  processing.opengl.PGraphicsOpenGL.backgroundImpl()V+8
    j  processing.core.PGraphics.backgroundFromCalc()V+122
    j  processing.core.PGraphics.background(I)V+6
    j  processing.core.PGraphics.reapplySettings()V+190
    j  processing.opengl.PGraphicsOpenGL.setSize(II)V+15
    j  processing.core.PApplet.resizeRenderer(II)V+90
    j  processing.core.PApplet.run()V+165
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub
    V  [jvm.dll+0xfb7cb]
    V  [jvm.dll+0x18d3d1]
    V  [jvm.dll+0xfb971]
    V  [jvm.dll+0xfb9cb]
    V  [jvm.dll+0xb5e99]
    V  [jvm.dll+0x119ab4]
    V  [jvm.dll+0x14209c]
    C  [msvcr71.dll+0x9565]  endthreadex+0xa0
    C  [KERNEL32.dll+0x2850d]  BaseThreadInitThunk+0xe
    C  [ntdll.dll+0x5bf39]  RtlInitializeExceptionChain+0x85
    C  [ntdll.dll+0x5bf0c]  RtlInitializeExceptionChain+0x58
    
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  jogamp.opengl.gl4.GL4bcImpl.dispatch_glDepthMask1(ZJ)V+0
    j  jogamp.opengl.gl4.GL4bcImpl.glDepthMask(Z)V+34
    j  processing.opengl.PGL.depthMask(Z)V+4
    j  processing.opengl.PGraphicsOpenGL.backgroundImpl()V+8
    j  processing.core.PGraphics.backgroundFromCalc()V+122
    j  processing.core.PGraphics.background(I)V+6
    j  processing.core.PGraphics.reapplySettings()V+190
    j  processing.opengl.PGraphicsOpenGL.setSize(II)V+15
    j  processing.core.PApplet.resizeRenderer(II)V+90
    j  processing.core.PApplet.run()V+165
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub
    
    ---------------  P R O C E S S  ---------------
    
    Java Threads: ( => current thread )
      0x1a42cc00 JavaThread "Thread-5" [_thread_in_native, id=7048, stack(0x21c60000,0x21cb0000)]
      0x1a425000 JavaThread "Animation Thread-SharedResourceRunner" daemon [_thread_blocked, id=6512, stack(0x1a950000,0x1a9a0000)]
      0x0070c800 JavaThread "DestroyJavaVM" [_thread_blocked, id=1452, stack(0x00430000,0x00480000)]
    =>0x18972400 JavaThread "Animation Thread" [_thread_in_native, id=4396, stack(0x1a6a0000,0x1a6f0000)]
      0x18a1ec00 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=5872, stack(0x1a1d0000,0x1a220000)]
      0x18a1e400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=4036, stack(0x1a140000,0x1a190000)]
      0x18925c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=6292, stack(0x19200000,0x19250000)]
      0x18925400 JavaThread "AWT-Shutdown" [_thread_blocked, id=92, stack(0x19170000,0x191c0000)]
      0x18921c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8784, stack(0x190e0000,0x19130000)]
      0x0059f400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6544, stack(0x187d0000,0x18820000)]
      0x0059e400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=3252, stack(0x18740000,0x18790000)]
      0x00593c00 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=228, stack(0x186b0000,0x18700000)]
      0x0058fc00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=3400, stack(0x18620000,0x18670000)]
      0x0058c400 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=3620, stack(0x18590000,0x185e0000)]
      0x0057f000 JavaThread "Attach Listener" daemon [_thread_blocked, id=7464, stack(0x18480000,0x184d0000)]
      0x0057d000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=208, stack(0x183f0000,0x18440000)]
      0x0055f800 JavaThread "Finalizer" daemon [_thread_blocked, id=9088, stack(0x18360000,0x183b0000)]
      0x0055e000 JavaThread "Reference Handler" daemon [_thread_blocked, id=9104, stack(0x182d0000,0x18320000)]
    
    Other Threads:
      0x0055a800 VMThread [stack: 0x18240000,0x18290000] [id=6564]
      0x005ab000 WatcherThread [stack: 0x18860000,0x188b0000] [id=184]
    
    VM state:not at safepoint (normal execution)
    
    VM Mutex/Monitor currently owned by a thread: None
    
    Heap
     def new generation   total 10496K, used 80K [0x04150000, 0x04cb0000, 0x096a0000)
      eden space 9344K,   0% used [0x04150000, 0x041642f8, 0x04a70000)
      from space 1152K,   0% used [0x04a70000, 0x04a70000, 0x04b90000)
      to   space 1152K,   0% used [0x04b90000, 0x04b90000, 0x04cb0000)
     tenured generation   total 23196K, used 13917K [0x096a0000, 0x0ad47000, 0x14150000)
       the space 23196K,  59% used [0x096a0000, 0x0a4374c8, 0x0a437600, 0x0ad47000)
     compacting perm gen  total 14848K, used 14636K [0x14150000, 0x14fd0000, 0x18150000)
       the space 14848K,  98% used [0x14150000, 0x14f9b0a8, 0x14f9b200, 0x14fd0000)
    No shared spaces configured.
    
    Code Cache  [0x02150000, 0x02280000, 0x04150000)
     total_blobs=771 nmethods=336 adapters=379 free_code_cache=32336640 largest_free_block=0
    
    Dynamic libraries:
    0x00400000 - 0x00425000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\java.exe
    0x77830000 - 0x77987000     C:\windows\SYSTEM32\ntdll.dll
    0x70d90000 - 0x70dcf000     C:\Program Files\AVAST Software\Avast\snxhk.dll
    0x77200000 - 0x77330000     C:\windows\SYSTEM32\KERNEL32.dll
    0x77670000 - 0x77716000     C:\windows\SYSTEM32\KERNELBASE.dll
    0x704d0000 - 0x70577000     C:\windows\system32\apphelp.dll
    0x76e00000 - 0x76eae000     C:\windows\SYSTEM32\ADVAPI32.dll
    0x76770000 - 0x76821000     C:\windows\SYSTEM32\msvcrt.dll
    0x76850000 - 0x76884000     C:\windows\SYSTEM32\sechost.dll
    0x775c0000 - 0x7766c000     C:\windows\SYSTEM32\RPCRT4.dll
    0x74e60000 - 0x74e7c000     C:\windows\SYSTEM32\SspiCli.dll
    0x74e50000 - 0x74e59000     C:\windows\SYSTEM32\CRYPTBASE.dll
    0x74df0000 - 0x74e41000     C:\windows\SYSTEM32\bcryptPrimitives.dll
    0x7c340000 - 0x7c396000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\msvcr71.dll
    0x6d8c0000 - 0x6db70000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\client\jvm.dll
    0x774a0000 - 0x775b6000     C:\windows\SYSTEM32\USER32.dll
    0x70d60000 - 0x70d81000     C:\windows\SYSTEM32\WINMM.dll
    0x76950000 - 0x76a4d000     C:\windows\SYSTEM32\GDI32.dll
    0x702a0000 - 0x702cb000     C:\windows\SYSTEM32\WINMMBASE.dll
    0x76510000 - 0x76556000     C:\windows\SYSTEM32\cfgmgr32.dll
    0x76830000 - 0x7684e000     C:\windows\SYSTEM32\DEVOBJ.dll
    0x771d0000 - 0x771f0000     C:\windows\system32\IMM32.DLL
    0x75110000 - 0x751ed000     C:\windows\SYSTEM32\MSCTF.dll
    0x6d870000 - 0x6d87c000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\verify.dll
    0x6d3d0000 - 0x6d3ef000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\java.dll
    0x6d420000 - 0x6d449000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\jdwp.dll
    0x6d740000 - 0x6d746000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\npt.dll
    0x6d8b0000 - 0x6d8bf000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\zip.dll
    0x6d2b0000 - 0x6d2b7000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\dt_socket.dll
    0x77720000 - 0x77770000     C:\windows\SYSTEM32\WS2_32.dll
    0x76450000 - 0x76458000     C:\windows\SYSTEM32\NSI.dll
    0x73e80000 - 0x73eca000     C:\windows\system32\mswsock.dll
    0x6d0b0000 - 0x6d1fc000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\awt.dll
    0x73ed0000 - 0x73f30000     C:\windows\SYSTEM32\WINSPOOL.DRV
    0x76eb0000 - 0x76fc9000     C:\windows\SYSTEM32\ole32.dll
    0x730b0000 - 0x732a8000     C:\windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\COMCTL32.dll
    0x76a60000 - 0x76b96000     C:\windows\SYSTEM32\combase.dll
    0x702d0000 - 0x702e9000     C:\windows\system32\DWMAPI.DLL
    0x18eb0000 - 0x18f38000     C:\windows\system32\uxtheme.dll
    0x6d2e0000 - 0x6d32f000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\fontmanager.dll
    0x6cff0000 - 0x6d059000     C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
    0x76d60000 - 0x76deb000     C:\windows\SYSTEM32\OLEAUT32.dll
    0x75380000 - 0x76446000     C:\windows\system32\shell32.dll
    0x76910000 - 0x76950000     C:\windows\SYSTEM32\SHLWAPI.dll
    0x73370000 - 0x733e5000     C:\windows\SYSTEM32\shcore.dll
    0x69f70000 - 0x69fc0000     C:\windows\SYSTEM32\oleacc.dll
    0x73950000 - 0x7396a000     C:\windows\SYSTEM32\CRYPTSP.dll
    0x738a0000 - 0x738de000     C:\windows\system32\rsaenh.dll
    0x73700000 - 0x7371b000     C:\windows\SYSTEM32\USERENV.dll
    0x736d0000 - 0x736e1000     C:\windows\SYSTEM32\profapi.dll
    0x6d6b0000 - 0x6d6c3000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\net.dll
    0x736f0000 - 0x73700000     C:\windows\system32\napinsp.dll
    0x73650000 - 0x73664000     C:\windows\system32\pnrpnsp.dll
    0x73970000 - 0x73980000     C:\windows\system32\NLAapi.dll
    0x735d0000 - 0x73645000     C:\windows\SYSTEM32\DNSAPI.dll
    0x735c0000 - 0x735c9000     C:\windows\System32\winrnr.dll
    0x735b0000 - 0x735c0000     C:\windows\system32\wshbth.dll
    0x73550000 - 0x73557000     C:\Windows\System32\rasadhlp.dll
    0x744d0000 - 0x744f0000     C:\windows\SYSTEM32\IPHLPAPI.DLL
    0x744c0000 - 0x744c8000     C:\windows\SYSTEM32\WINNSI.DLL
    0x73560000 - 0x7359f000     C:\windows\System32\fwpuclnt.dll
    0x6d6d0000 - 0x6d6d9000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\nio.dll
    0x637c0000 - 0x637ca000     C:\Users\Stephen\AppData\Local\Temp\jogamp_0000\file_cache\jln7716875663952179283\jln8154501641914736837\gluegen-rt.dll
    0x76890000 - 0x76904000     C:\windows\SYSTEM32\clbcatq.dll
    0x6d400000 - 0x6d406000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\jawt.dll
    0x6a440000 - 0x6a44a000     C:\Users\Stephen\AppData\Local\Temp\jogamp_0000\file_cache\jln7716875663952179283\jln8154501641914736837\nativewindow_awt.dll
    0x6c100000 - 0x6c110000     C:\Users\Stephen\AppData\Local\Temp\jogamp_0000\file_cache\jln7716875663952179283\jln8154501641914736837\nativewindow_win32.dll
    0x550e0000 - 0x551ae000     C:\windows\SYSTEM32\OpenGL32.dll
    0x550b0000 - 0x550d3000     C:\windows\SYSTEM32\GLU32.dll
    0x702f0000 - 0x703c9000     C:\windows\SYSTEM32\DDRAW.dll
    0x6efe0000 - 0x6efe7000     C:\windows\SYSTEM32\DCIMAN32.dll
    0x64500000 - 0x64575000     C:\Users\Stephen\AppData\Local\Temp\jogamp_0000\file_cache\jln7716875663952179283\jln8154501641914736837\jogl_desktop.dll
    0x1aaa0000 - 0x1b2dc000     C:\windows\SYSTEM32\ig7icd32.dll
    0x1a9d0000 - 0x1a9e2000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\modes\java\libraries\serial\library\windows32\rxtxSerial.dll
    0x1b450000 - 0x1b477000     C:\windows\SYSTEM32\crtdll.dll
    0x6d4f0000 - 0x6d515000     C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin\jpeg.dll
    0x771f0000 - 0x771f6000     C:\windows\system32\PSAPI.DLL
    
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,address=8645,server=y,suspend=y -Djava.library.path=;C:\Users\Stephen\Documents\Processing2\Sketchbook\libraries\controlP5-2.0.4\controlP5\library;C:\Users\Stephen\Documents\Processing2\Sketchbook\libraries\peasycam_200\peasycam\library;C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\modes\java\libraries\serial\library\windows32;C:\Users\Stephen\Documents\Processing2\Sketchbook\libraries\sDrop_0.1.4\sDrop\library;C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared;C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin;. -ea 
    java_command: processing.core.PApplet --location=0,0 --external --display=0 MyDIYCNC_FabCAM_0_2_3p2 --sketch-path=C:\Users\Stephen\Documents\Processing2\Sketchbook\MyDIYCNC_FabCAM_0_2_3p2
    Launcher Type: SUN_STANDARD
    
    Environment Variables:
    PATH=C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared;C:\Users\Stephen\Downloads\Processing\processing-2.0.3-windows32\processing-2.0.3\java\bin
    USERNAME=Stephen
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
    
    
    
    ---------------  S Y S T E M  ---------------
    
    OS: Windows NT 6.2 Build 9200 
    
    CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
    
    Memory: 4k page, physical 4070676k(835128k free), swap 8264980k(4783428k free)
    
    vm_info: Java HotSpot(TM) Client VM (20.12-b01) for windows-x86 JRE (1.6.0_37-b06), built on Sep 24 2012 12:44:35 by "java_re" with MS VC++ 7.1 (VS2003)
    
    time: Tue Oct 22 18:13:39 2013
    elapsed time: 2 seconds
    
  • You have to find out what is this ig7icd32.dll file. Perhaps it is related to your graphic driver? Processing 2.0 isn't very forgiving for old / low end graphics cards.

  • Thanks PhiLho,

    That file ig7icd32.dll doesn't exist on my system. After consulting with my good friend Dr. Google it seems that it's an integrated Intel graphics chipset OpenGL driver for Windows 8.

    Strange though that this error doesn't show up on any of the many, many other Processing applications I have on this system.

    I'll see if my drivers need updating, and if all else fails I may (though I don't like this approach as it's not based in a known solution) download a copy of ig7icd32.dll to satisfy the error condition.

  • The error happens in this file, so it is used on your system!

    Perhaps your search skipped some system folders...

  • edited October 2013

    Yes, I know what you're saying but the search was throughout C: and no system files hidden or excluded. In any case I updated by graphic card drivers and the file then popped up in the same search and I have at least passed that issue and onto the next one.

    Now in P2 the openfile dialog I used in P1.5 passes back a null string instead of the file selected. I'm not seeing any errors though, only a null for the filename instead of the string of the file selected. Here's the code:

    void loadFile(){
      String oldPath = loadPath;
      String filterFiles = "Select your file...";
    
      selectInput(filterFiles, loadPath);  // Opens file chooser   P2 change
    
          if ((loadPath == null) && (oldPath == null)) {
            // If a file was not selected
            println("No file was selected...");
         } else if (loadPath != null) {                    
            try{
            lines = loadStrings(loadPath);  
                  } catch (Exception e) {
              e.printStackTrace();
              lines = null;
            }
    
    
              String[] parsePath = trim(split(loadPath, '\\'));  // split the line into \ delimited snippets and extract last one (filename)
              showFilename = parsePath[parsePath.length-1];     // take last snippet
              println(showFilename);
    
          }
    }
    
  • Look at the release notes / changes: selectInput changed in v.2, it no longer stops for user input, but relies on a callback function. Making it a bit harder to use...

  • edited November 2013

    Thank you all for the great help.

    I changed the selectInput code and that's now fine. However, now I'm getting a NullPointerException but can't tie that back to a specific section of my code. The error is thrown without pointing to a line of code. At the end of each error line there is a "java:" and a number. Does that number reference a line number or error code that I can trace? Also, this OpenGL error pops whether I declare OPENGL or P3D in my window definition.

    java.lang.NullPointerException
        at jogamp.opengl.gl4.GL4bcImpl.glDepthMask(GL4bcImpl.java:4258)
        at processing.opengl.PGL.depthMask(PGL.java:3732)
        at processing.opengl.PGraphicsOpenGL.backgroundImpl(PGraphicsOpenGL.java:5021)
        at processing.core.PGraphics.backgroundFromCalc(PGraphics.java:6967)
        at processing.core.PGraphics.background(PGraphics.java:6882)
    

    Incidentally, I don't get this error and the sketch works if I run in presentation mode (?)

  • P3D (and P2D) actually use OpenGL behind the scenes. If that helps...

  • I've made great progress and have my application working in 2.1. A lot of the OpenGL issues were apparently inherent in P2.0.3 and disappeared just by going to P2.1. Had quite a bit more rewrite to do with file selection dialog changes, but that's also done.

    My last challenge is that I connect to a processor board via the USB port. Once the user selects the USB port from a dropdown list (populated by Serial.list() ) I save that in a text file so that the next time they run the application it automatically connects to the board, so they don't have to select the same thing every time.

    The problem is that if the board is not connected then the COM port doesn't match/exist and an exception is thrown. In P 1.5.11 this was okay because it didn't stop the application. However in P2.1 it's a full-stop crash. I've tried catching the exception but it's not responding to the usual try-catch handling. Any thoughts?

    Here's the code:

    if (FCMconfig[0] != null){   // where FCMconfig[0] holds the COM port string
          println("About to test COM port "+FCMconfig[0]);
       try{  
        myPort = new Serial(this, FCMconfig[0], 9600);
       } catch (NullPointerException e){
         println ("NO USB INTERFACE");
         myPort = null;
       }
    

    Error reported:

    About to test COM port COM3
    java.lang.NullPointerException
        at processing.mode.java.runner.Runner.findException(Runner.java:926)
        at processing.mode.java.runner.Runner.reportException(Runner.java:871)
        at processing.mode.java.runner.Runner.exceptionEvent(Runner.java:797)
        at processing.mode.java.runner.Runner$2.run(Runner.java:686)
    

    Thanks in advance.

  • Perhaps, instead oftry/catchblock, you coulda tested if myPort isn'tnull? :-\"

  • It croaks on the assignment of myPort so I'd never get to the point where I could test myPort.

    Seems a bit kludgie but I guess I can use Serial.list() to cycle through available ports and see if I have a match. If not then the processor is not connected. At least in theory I think that should work. I'll test and post back here.

    It's just that it worked so well in 1.5.1 - I hate rework.

  • So, I built in cycling through the Serial.list() ports when Serial.list().length >0, and thereafter all port writes are now within if (myPort != null){ conditions so as to prevent a call to the port that has not yet been assigned. So far so good, seems to work.

  • Hey GoToLoop, thanks to your recommendation I installed P2.1 on a fresh Lubuntu box but it's throwing a graphics driver error when I run Processing

    libGL error: failed to load driver: i810

    Any idea how I can get Intel i810 graphics drivers for Windows to run on Lubuntu, or is that even an option? My good friend Dr. Google is not much help in this regard.

    Thanks in advance

  • edited November 2013

    I haven't recommend Lubuntu to any1! I've installed that b/c I had its CD in hand! :(|)
    My hardware is Q6600 + GeForce 9800GT. And OS is Lubuntu 13.04 64-bit.

    In my Processing v2.0.2's install, it works well. But anything other than JAVA2D generates lotsa console error warnings! X_X
    And I still need to install latest version. Gonna skip v2.1 this time I guess! %-(

    And I use nVidia's proprietary driver b/c 'tis extremely better than free Nouveau open source 1.
    But I've heard that at least for Intel's videos, there's no much diff. between open & proprietary drivers, I believe.

    Sorry, I dunno how to get/install Intel's proprietary drivers. But if you want to use bleeding edge, below's a PPA for it:
    sudo add-apt-repository ppa:oibaf/graphics-drivers && sudo apt-get update

    And some links about it:

    http://www.phoronix.com/scan.php?page=news_item&px=MTQ5OTk
    https://launchpad.net/~oibaf/+archive/graphics-drivers/

    And even some font beatifying: O:-)

    http://www.webupd8.org/2013/06/install-openjdk-patched-with-font-fixes.html
    http://www.webupd8.org/2013/06/better-font-rendering-in-linux-with.html

    If I'd recommend some distro, these 2 are in high regards: (*)

    http://distrowatch.com/table.php?distribution=mint
    http://distrowatch.com/table.php?distribution=deepin

Sign In or Register to comment.