-
Notifications
You must be signed in to change notification settings - Fork 136
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
Access violation in Topic->Publish #12
Comments
Hi @Hemofektik |
Hi, the premature disconnects and the locking operation was for incoming messages only. But the problems fixed by that sound exactly as described by @aaronsnoswell but not for publishing messages. P.S.: I already checked in queued publishers that would allow this behavior to work (additionally to the main feature to send messages asynchronously to the rosbridge and queue the messages). I will make a pull request for that soon. |
Please check if #23 fixes your problem. |
@Hemofektik No I don't believe I was using multiple threads. Sorry I don't have my project where I was testing this library available any more so I'm unable to test :( |
I just read your initial post again and I think what you experienced was the GraceTime of the TCPConnection. It tries to send the message forcefully over a period of 4 seconds before it gives up and discards the message. This blocks the main thread for 4 seconds. This will happen for each message send as soon as the connection to the rosbridge_server is lost. IMHO, this GraceTime thingy has to be removed anyway because this type of error handling is way too deep buried into the Plugin and nobody is able anymore to decide by themselves to handle such situations differently. |
The handling of ROS Connections/sockets/publishing was refactored very much since back then. This problem most probably no longer exists. |
Thanks for the info. Then i'll close this issue. For future readers: Please don't hesitate to open new tickets when the problem appears again. Please reference this issue when you see this problem again. |
I'm seeing this on the latest codebase (with the required fixes to run on UE 4.24). I'm publishing EDIT: it seems the issue may have been not having |
I've seen an access violation crash in the code for Topic->Publish that seems to be a race condition. So far I've seen it under two circumstances;
I'll add more details as I look into this over the coming week or two.
The text was updated successfully, but these errors were encountered: