{"action":"created","issue":{"url":"https://api.github.com/repos/robotology/icub-packaging/issues/4","repository_url":"https://api.github.com/repos/robotology/icub-packaging","labels_url":"https://api.github.com/repos/robotology/icub-packaging/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/robotology/icub-packaging/issues/4/comments","events_url":"https://api.github.com/repos/robotology/icub-packaging/issues/4/events","html_url":"https://github.com/robotology/icub-packaging/issues/4","id":173281740,"number":4,"title":"Windows binaries delivered in Release?","user":{"login":"pattacini","id":3738070,"avatar_url":"https://avatars.githubusercontent.com/u/3738070?v=3","gravatar_id":"","url":"https://api.github.com/users/pattacini","html_url":"https://github.com/pattacini","followers_url":"https://api.github.com/users/pattacini/followers","following_url":"https://api.github.com/users/pattacini/following{/other_user}","gists_url":"https://api.github.com/users/pattacini/gists{/gist_id}","starred_url":"https://api.github.com/users/pattacini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pattacini/subscriptions","organizations_url":"https://api.github.com/users/pattacini/orgs","repos_url":"https://api.github.com/users/pattacini/repos","events_url":"https://api.github.com/users/pattacini/events{/privacy}","received_events_url":"https://api.github.com/users/pattacini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mbrunettini","id":4234840,"avatar_url":"https://avatars.githubusercontent.com/u/4234840?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrunettini","html_url":"https://github.com/mbrunettini","followers_url":"https://api.github.com/users/mbrunettini/followers","following_url":"https://api.github.com/users/mbrunettini/following{/other_user}","gists_url":"https://api.github.com/users/mbrunettini/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrunettini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrunettini/subscriptions","organizations_url":"https://api.github.com/users/mbrunettini/orgs","repos_url":"https://api.github.com/users/mbrunettini/repos","events_url":"https://api.github.com/users/mbrunettini/events{/privacy}","received_events_url":"https://api.github.com/users/mbrunettini/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbrunettini","id":4234840,"avatar_url":"https://avatars.githubusercontent.com/u/4234840?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrunettini","html_url":"https://github.com/mbrunettini","followers_url":"https://api.github.com/users/mbrunettini/followers","following_url":"https://api.github.com/users/mbrunettini/following{/other_user}","gists_url":"https://api.github.com/users/mbrunettini/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrunettini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrunettini/subscriptions","organizations_url":"https://api.github.com/users/mbrunettini/orgs","repos_url":"https://api.github.com/users/mbrunettini/repos","events_url":"https://api.github.com/users/mbrunettini/events{/privacy}","received_events_url":"https://api.github.com/users/mbrunettini/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-08-25T18:54:11Z","updated_at":"2016-08-29T10:27:20Z","closed_at":null,"body":"@Anouk92 commented on [Wed Aug 24 2016](https://github.com/robotology/QA/issues/133)\n\nWhen I try to run this [_castesian-interface code_](https://github.com/lornat75/Teaching/tree/master/code/cartesian-interface) for the icub simulation that is provided from within the [**Teaching**](https://github.com/lornat75/Teaching) repository on GitHub, I get the following exception: \r\n\r\n```\r\n\"Unhandled exception at 0x00D831CA (msvcr120d.dll) in cartesian-interface.exe: 0xC0000005: Access violation reading location 0xBA006574.\"\r\n```\r\n\r\nThe program breaks in the code on the following line: [`if (!client.open(option))`](https://github.com/lornat75/Teaching/blob/master/code/cartesian-interface/src/main.cpp#L70)\r\n\r\nThe system I use is:\r\n\r\n- Windows 10\r\n- yarp 2.3.66 v12 x86\r\n- iCub 1.4.0 v12 x86\r\n- CMake 3.6.1 x86\r\n- Visual Studio 12 2013, also 32 bits\r\n\r\nCan someone tell me what I need to do to get the code running?\r\n\r\nThanks!\n\n---\n\n@pattacini commented on [Wed Aug 24 2016](https://github.com/robotology/QA/issues/133#issuecomment-242067722)\n\nHi @Anouk92 and welcome on board :smile: \r\n\r\nI've just tried out that code on my `Windows 10` with `Visual Studio 2013` and `yarp/devel` + `iCub/master` compiled at `32-bit` from sources. No problems spotted. The only significant difference I see is then that you used `yarp` and `iCub` pre-compiled binaries.\r\n\r\nThe exception you got indicates that there's a **memory safety violation**, which is in turn likely due to a [_dangling pointer_](https://en.wikipedia.org/wiki/Dangling_pointer). Given that the [`open`](https://github.com/robotology/icub-main/blob/master/src/libraries/icubmod/cartesianController/ClientCartesianController.cpp#L90) method of the client doesn't allocate and/or reference explicitly any memory location via pointers (as far as I see, at least), I would believe the failure might be caused by `yarp` calls themselves.\r\n\r\nTherefore, did you already check the **integrity of your installation**? In other words, a possibility would be also to run a different, simpler [**tutorial**](https://github.com/robotology/icub-tutorials/tree/master/src/motorControlBasic), which does some basic operations with ports and motor interfaces.\r\n\r\nWould you mind reporting on the results you'll get with that test?\n\n---\n\n@Anouk92 commented on [Thu Aug 25 2016](https://github.com/robotology/QA/issues/133#issuecomment-242313164)\n\nThank you for your response!\r\nI've tried several other tutorials, also the one you showed, and most of them seem to work. However, when trying the run the gaze-interface tutorial, I found that I could run the 'mover' project fine but the 'tracker' object gave the same exception: \r\n\r\n```\r\n\"Unhandled exception at 0x016731CA (msvcr120d.dll) in tracker.exe: 0xC0000005: Access violation reading location 0xBA006574.\"\r\n```\r\n\r\nNow the code breaks at line 58: 'if (!clientGaze.open(optGaze))', so again at the open method of the client.\r\n\r\n\r\n\n\n---\n\n@pattacini commented on [Thu Aug 25 2016](https://github.com/robotology/QA/issues/133#issuecomment-242350885)\n\nI and @Anouk92 had a debug stint, finding that the run-time failure is caused by a mismatch between the user code compiled in `Debug` and the `yarp` + `iCub` binaries shipped in `Release` (most likely).\r\nIn fact, **the same tutorial compiled in `Release` runs just fine**.\r\n\r\n@mbrunettini @drdanz are these considerations correct?\r\n- [ ] Are _Windows_ **pre-compiled binaries actually distributed in `Release`**?\r\n- [ ] Is there any **recommendation in the wiki** warning users to compile their code in `Release` mode while linking against those packages? \n\n"},"comment":{"url":"https://api.github.com/repos/robotology/icub-packaging/issues/comments/243088905","html_url":"https://github.com/robotology/icub-packaging/issues/4#issuecomment-243088905","issue_url":"https://api.github.com/repos/robotology/icub-packaging/issues/4","id":243088905,"user":{"login":"Anouk92","id":11156777,"avatar_url":"https://avatars.githubusercontent.com/u/11156777?v=3","gravatar_id":"","url":"https://api.github.com/users/Anouk92","html_url":"https://github.com/Anouk92","followers_url":"https://api.github.com/users/Anouk92/followers","following_url":"https://api.github.com/users/Anouk92/following{/other_user}","gists_url":"https://api.github.com/users/Anouk92/gists{/gist_id}","starred_url":"https://api.github.com/users/Anouk92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anouk92/subscriptions","organizations_url":"https://api.github.com/users/Anouk92/orgs","repos_url":"https://api.github.com/users/Anouk92/repos","events_url":"https://api.github.com/users/Anouk92/events{/privacy}","received_events_url":"https://api.github.com/users/Anouk92/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T10:27:20Z","updated_at":"2016-08-29T10:27:20Z","body":"Unfortunately the update didn't help, I still get the exception when running in Debug mode. In Release mode it does work."}}
{"actor":{"display_login":"Anouk92"}}