GithubHelp home page GithubHelp logo

Comments (4)

leif81 avatar leif81 commented on May 26, 2024 1

I'm guessing PduFactory.createPdu is throwing that exception. It's hard to know exactly why without your data, but could one of the Pdu's be malformed?

That error message your're seeing repeated...I think what should be happening is the catch in PduFacotry.getPdusFromBundle should be calling break. Otherwise the value of pduStartPointInData won't change and on the next loop it will call createPdu with the same byte buffer. That part is an easy improvement, I'll fix that.

https://github.com/open-dis/open-dis-java/blob/master/src/main/java/edu/nps/moves/disutil/PduFactory.java#L426

from open-dis-java.

scottrbrtsn avatar scottrbrtsn commented on May 26, 2024

This was triggered by a pdu made during development, and was also structured to be a DataPdu but with pduType set to be a SetDataPdu, and was structured incorrectly.

I copied the function and added a break. This proved to fix the problem as it no longer continued in the infinite loop.

from open-dis-java.

leif81 avatar leif81 commented on May 26, 2024

Ok good to hear.

Btw if you pull the latest build from jitpack it will have this fix in it now.

from open-dis-java.

mcgredonps avatar mcgredonps commented on May 26, 2024

from open-dis-java.

Related Issues (20)

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.