Code Monkey home page Code Monkey logo

ofxwatchdog's Introduction

ofxWatchdog version 2

A process watchdog timer for openFrameworks applications.
You can watch your application's hang-up, illegal memory access,
illegal instruction, segmentation fault, zero devide, abort (uncaught C++ exception).
Then exit safely or reboot application.

If you are using openFrameworks 0.9.4 or older, please use version1_final tag version instead.



Only two functions to use:

o ofxWatchdog::boot(int msec, bool reboot, bool override, bool verbose)
o ofxWatchdog::trap(void)

Optionally you can use:

o ofxWatchdog::clear(void)



Development environment:
[version 2]
<NEW!> o MacOS X 10.14.2 + Xcode 10.1 + of 0.10.1 osx
o MacOS X 10.14 + Xcode 10.0 + of_v20181009_osx_nightly

[version 1]
o MacOS X 10.12.6 + Xcode 9.0 + of 0.9.4 osx
o MacOS X 10.11.3 + Xcode 6.2 + of 0.9.2 osx
o MacOS X 10.10.3 + Xcode 6.3.1 + of 0.8.4 osx
o ubuntu linux 14.04 LTS + Code::Blocks 13.12 + of 0.8.4 linux 64
o MacOS X 10.10 + Xcode 6.1 + of 0.8.4 osx
o MacOS X 10.9.4 + Xcode 5.1.1 + of 0.8.3 osx
o MacOS X 10.8.5 + Xcode 5.0 + of 0.8.0 osx
o MacOS X 10.7.5 + Xcode 4.6.2 + of 0.8.0 osx

ofxwatchdog's People

Contributors

frauzufall avatar toolbits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ofxwatchdog's Issues

‘PATH_MAX’ was not declared

Hey, thank you for this addon, it looks really promising!
I get this error though when compiling an example:

../../../addons/ofxWatchdog/src/ofxWatchdog.cpp: In static member function ‘static void ofxWatchdog::child()’:
../../../addons/ofxWatchdog/src/ofxWatchdog.cpp:313:15: error: ‘PATH_MAX’ was not declared in this scope
     char path[PATH_MAX];

Any hints what could be the problem? I am on Ubuntu 15.10 64bit.

ofExit()

When I close the application, for example by pressing a button.

in void testApp::keyPressed(int key) throw (std::exception)

case 'q':
{
    ofExit();
    break;
}

I can not write in the command line. The cursor flashes and nothing appears as I write. However, when I type a command and press enter it executes. I have to reboot to be able to again normally write.

does it work with OF 0.9.0

I tried it with OF0.9.0 and build a new project with projector Generator. The app on start up throws this many times in a row
ofxWatchdog [parent] detects SIGSEGV.

Urgent- need feedback on configuring

Hi
Thanks you for sharing with the community!
Couple questions regarding initializing.
1 What would be the purpose and result of setting the 3rd parmeter, 'use internal signal handler' to true?

2 If the last parameter 'print more log info', is set to true, is this log info printed to an external file, or?

Thanks in advance!

bach 44 at gmail dot com

cross platform?

not really an issue but a question: Is this addon cross platform or does it use OS X only features?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.