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

Aseba crashes if an array with 40 or more elements is sent as an event. #619

Closed
tjenni opened this issue Apr 27, 2017 · 5 comments
Closed

Comments

@tjenni
Copy link

tjenni commented Apr 27, 2017

If I execute the following programm, Aseba Studio crashes if N=40 or bigger. For N=5 the program works correctly.

# initialize map
var map[N]
var i = 0

while  i < N do
	map[i] = 1
	i = i + 1
end

# send map as an event
onevent button.left
emit sendMap map
@tjenni tjenni changed the title Crash if an Array with 40 elements is sent. Aseba crashes if an Array with 40 or more elements is sent as an event. Apr 27, 2017
@tjenni tjenni changed the title Aseba crashes if an Array with 40 or more elements is sent as an event. Aseba crashes if an array with 40 or more elements is sent as an event. Apr 27, 2017
@stephanemagnenat
Copy link
Member

Which target do you use? A Thymio, a simulated Thymio, a dummy node?

@tjenni
Copy link
Author

tjenni commented May 2, 2017

I use a Thymio II robot and Aseba runs on macOS Sierra.

@stephanemagnenat
Copy link
Member

This bug appears to be a Thymio wireless bug. I can reproduce it with Thymio Wireless using Linux and OS X, but not with the same Thymio using the USB cable or with dummynode.

It seems that messages of 40 elements or more are truncated into invalid Aseba messages.

@stephanemagnenat
Copy link
Member

As this is a Thymio wireless bug, a corresponding issue has been opened Mobsya/aseba-target-thymio2#22.

@mbonani
Copy link
Member

mbonani commented Apr 17, 2018

fixed

@mbonani mbonani closed this as completed Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants