OSC MalformedPacketException

I’m getting a

terminate called after throwing an instance of 'osc::MalformedPacketException'
  what(): element size must be multiple of four

I know the incoming packet was malformed, so my question is what is the pattern to catch these and not terminate app. Update looks like this:

void ofApp::update(){

    // check for waiting messages
        ofxOscMessage m;
        if(m.getAddress() == "/key/1"){
            key1 = m.getArgAsInt32(0);

I tried some try{} catch{} blocks around the OSC functions, but app still terminates. Is there an example of how to deal with malformed packets gracefully? or is it a problem with ofxOsc?

Sorry for resurrecting this old thread, but I have exactly the same question!

I get “libc++abi.dylib: terminating with uncaught exception of type osc::MalformedMessageException: type tags not present” and I would love to catch the exception, but I don’t know where to do it.

I think the exception is raised in the listener thread of ofxOsc, so how do I catch it?

Same issue here. Anyone was able to solve it?

Same issue here. Bump in case there are any new thoughts?