ofxZipArchive backtrace crash

Hi there,

Using the excellent ofxZipArchive by Jeffrey Crouse, modified it to compile on modern OF, including ofxPoco,

mods:

> //
> //  ofxZipArchive.h
> //  zipTest
> //
> //  Created by Jeffrey Crouse on 3/19/15.
> //  Copyright (c) 2015 __MyCompanyName__. All rights reserved.
> //
> 
> #pragma once
> 
> #include "ofMain.h"
> 
> // #ifdef OF_USING_POCO
> #include "ofxXmlPoco.h"
> 
> [...]
> 
> // #else
> // #warning *** ofxZipUtils Requires Poco Library
> // #endif

Compiles but produces the following crash backtrace.

Any ideia whats going on?

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000002000000000 in ?? ()
(gdb) bt
#0  0x0000002000000000 in  ()
#1  0x00007ffff2ea70ed in XML_ParseBuffer () at /lib/x86_64-linux-gnu/libexpat.so.1
#2  0x00007fffe6cb95b0 in glPrimitiveBoundingBox ()
    at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#3  0x00007fffe6cb3979 in glPrimitiveBoundingBox ()
    at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#4  0x00007fffe6ca981d in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#5  0x00007fffe6c95f26 in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#6  0x00007fffe6c915d4 in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x00007fffe6c91b0d in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#8  0x00007ffff64e1a6e in  () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#9  0x00007ffff64e2334 in  () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#10 0x00007ffff64df285 in  () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#11 0x00007ffff64d8ee2 in glfwCreateWindow () at /usr/lib/x86_64-linux-gnu/libglfw.so.3
#12 0x0000555555745a59 in ofAppGLFWWindow::setup(ofGLFWWindowSettings const&) ()
#13 0x0000555555746d57 in ofAppGLFWWindow::setup(ofGLWindowSettings const&) ()
#14 0x00005555555eae08 in ofMainLoop::createWindow(ofWindowSettings const&) ()
#15 0x00005555555ddb78 in ofSetupOpenGL(int, int, ofWindowMode) ()
#16 0x00005555555b8954 in main ()

Thanks!

Hi, must have been a typo or something in my mod.

It works!

[notice ] ofxZipArchive: Opening data/archive.zip
[notice ] ofZipArchive: archive/
[notice ] ofZipArchive: archive/argon.txt
[notice ] ofZipArchive: archive/chores.jpg
[notice ] ofZipArchive: archive/coffee.jpg
[notice ] ofZipArchive: archive/finery.jpg
[notice ] ofZipArchive: archive/friends.jpg
[notice ] ofZipArchive: archive/home.jpg
[notice ] ofZipArchive: archive/youngones.gif
[notice ] Uncompressing archive/friends.jpg size = 51395

1 Like