Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending more than about 78 bytes via TWI hangs indefinitely #99

Open
markmelvin opened this issue Dec 19, 2014 · 0 comments
Open

Sending more than about 78 bytes via TWI hangs indefinitely #99

markmelvin opened this issue Dec 19, 2014 · 0 comments

Comments

@markmelvin
Copy link

As discussed here:

https://groups.google.com/forum/#!topic/ioio-users/HvqKBGH7wNE

There seems to be an issue with the TWI interface. I have put together a small sample that illustrates the problem. The code seems to be hanging in FlowControlledPacketSender.FlushThread on this line:

        while (queue_.isEmpty() || readyToSend_ < queue_.peek().getSize()) {
===>        FlowControlledPacketSender.this.wait();
        }

There is some weirdness with the readyToSend_ variable. This number doesn't seem to jive with what the queue is able to handle and things lock up. I don't know the codebase well enough to take this much farther...

The sample project showing the bug is available here:

https://dl.dropboxusercontent.com/u/28800254/test_twi_bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant