{"action":"created","issue":{"url":"https://api.github.com/repos/aseba-community/aseba/issues/573","repository_url":"https://api.github.com/repos/aseba-community/aseba","labels_url":"https://api.github.com/repos/aseba-community/aseba/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/aseba-community/aseba/issues/573/comments","events_url":"https://api.github.com/repos/aseba-community/aseba/issues/573/events","html_url":"https://github.com/aseba-community/aseba/issues/573","id":190978424,"number":573,"title":"Blockly crash (from the thymio forum)","user":{"login":"cbarraud","id":4930020,"avatar_url":"https://avatars.githubusercontent.com/u/4930020?v=3","gravatar_id":"","url":"https://api.github.com/users/cbarraud","html_url":"https://github.com/cbarraud","followers_url":"https://api.github.com/users/cbarraud/followers","following_url":"https://api.github.com/users/cbarraud/following{/other_user}","gists_url":"https://api.github.com/users/cbarraud/gists{/gist_id}","starred_url":"https://api.github.com/users/cbarraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbarraud/subscriptions","organizations_url":"https://api.github.com/users/cbarraud/orgs","repos_url":"https://api.github.com/users/cbarraud/repos","events_url":"https://api.github.com/users/cbarraud/events{/privacy}","received_events_url":"https://api.github.com/users/cbarraud/received_events","type":"User","site_admin":false},"labels":[{"id":154193,"url":"https://api.github.com/repos/aseba-community/aseba/labels/Bug","name":"Bug","color":"e102d8","default":false},{"id":291026009,"url":"https://api.github.com/repos/aseba-community/aseba/labels/Thymio%20Blockly","name":"Thymio Blockly","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T11:47:10Z","updated_at":"2016-11-24T16:18:04Z","closed_at":null,"body":"Hi,\r\n\r\nI just transmit a message from Thymio's forum: https://www.thymio.org/forum/t-1982307/blockly-plantage-lors-de-l-utilisation-de-repeter-jusqu-a#post-2685986\r\n\r\n-------------------------------\r\n\r\nBonjour\r\nNe trouvant pas de forum dédié à blockly, je poste dans celui concernant VPL, pour un crash de l'interface lors de l'utilisation de blockly.\r\nCe comportement a été constaté avec la version 1.5.3 d'AsebaStudio sur 2 ordinateurs différents (un sous Debian testing, l'autre sous Ubuntu).\r\nPour reproduire le bug, il suffit d'essayer de construire une boucle du type\r\n\"répéter jusqu'à (capteur de sol détecte quelque chose et vrai)\" :\r\n![image](https://cloud.githubusercontent.com/assets/4930020/20522442/9d423ae2-b0b0-11e6-8c6e-4bce5046a9f5.png)\r\n\r\nL'interface plante alors avec un SIGABRT. Voici la stacktrace récupérée par le test du bug sous gdb:\r\n\r\nStarting program: /usr/bin/asebastudio \r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n[New Thread 0x7fffe8336700 (LWP 7267)]\r\n[New Thread 0x7fffe7b35700 (LWP 7268)]\r\n[Thread 0x7fffe8336700 (LWP 7267) exited]\r\n[Thread 0x7fffe7b35700 (LWP 7268) exited]\r\n[New Thread 0x7fffe7b35700 (LWP 7271)]\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\nlibpng warning: iCCP: known incorrect sRGB profile\r\n[New Thread 0x7fffe8336700 (LWP 7272)]\r\n[New Thread 0x7fffdffff700 (LWP 7273)]\r\n[Thread 0x7fffe8336700 (LWP 7272) exited]\r\n[Thread 0x7fffdffff700 (LWP 7273) exited]\r\n[New Thread 0x7fffdffff700 (LWP 7274)]\r\n[New Thread 0x7fffe8336700 (LWP 7275)]\r\n[New Thread 0x7fffde7eb700 (LWP 7276)]\r\n[New Thread 0x7fff9787b700 (LWP 7281)]\r\n\r\nThread 10 \"Thread (pooled)\" received signal SIGABRT, Aborted.\r\n[Switching to Thread 0x7fff9787b700 (LWP 7281)]\r\n__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58\r\n58    ../sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.\r\n(gdb) bt\r\n#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58\r\n#1  0x00007ffff314940a in __GI_abort () at abort.c:89\r\n#2  0x000000000053f767 in Aseba::BinaryArithmeticNode::deMorganNotRemoval() ()\r\n#3  0x000000000053fa97 in Aseba::UnaryArithmeticNode::optimize(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#4  0x000000000053fb30 in Aseba::WhileNode::optimize(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#5  0x000000000053feb4 in Aseba::BlockNode::optimize(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#6  0x000000000053ff67 in Aseba::IfWhenNode::optimize(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#7  0x000000000053feb4 in Aseba::BlockNode::optimize(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#8  0x0000000000523c73 in Aseba::Compiler::compile(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, Aseba::BytecodeVector&, unsigned int&, Aseba::Error&, std::basic_ostream<wchar_t, std::char_traits<wchar_t> >*) ()\r\n#9  0x000000000049c157 in Aseba::compilationThread (targetDescription=..., commonDefinitions=..., \r\n    source=..., dump=dump@entry=true)\r\n    at /build/aseba-EiRPC2/aseba-1.5.3/clients/studio/MainWindow.cpp:1059\r\n#10 0x00000000004b8d74 in QtConcurrent::StoredFunctorCall4<Aseba::NodeTab::CompilationResult*, Aseba::NodeTab::CompilationResult* (*)(Aseba::TargetDescription, Aseba::CommonDefinitions, QString, bool), Aseba::TargetDescription, Aseba::CommonDefinitions, QString, bool>::runFunctor (this=0xf89b90)\r\n    at /usr/include/qt4/QtCore/qtconcurrentstoredfunctioncall.h:876\r\n#11 0x00000000004b3cc5 in QtConcurrent::RunFunctionTask<Aseba::NodeTab::CompilationResult*>::run (\r\n    this=0xf89b90) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:106\r\n#12 0x00007ffff3dbcdba in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#13 0x00007ffff3dc9daa in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4\r\n#14 0x00007ffff2cf7464 in start_thread (arg=0x7fff9787b700) at pthread_create.c:333\r\n#15 0x00007ffff31fd9df in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105\r\n(gdb)\r\n\r\n-------------------------------\r\n\r\n\r\nOn my platform (Windows 8.1, Aseba 1.5.3) it crashes also:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4930020/20522511/08c1c6a2-b0b1-11e6-8d77-31c4317f7f77.png)\r\n\r\nIt's really when you place the sensor (whichever) that it crashes.\r\n\r\nI'll put a reference to this issue in the forum.\r\n\r\nChristophe\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aseba-community/aseba/issues/comments/262810706","html_url":"https://github.com/aseba-community/aseba/issues/573#issuecomment-262810706","issue_url":"https://api.github.com/repos/aseba-community/aseba/issues/573","id":262810706,"user":{"login":"stephanemagnenat","id":390278,"avatar_url":"https://avatars.githubusercontent.com/u/390278?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanemagnenat","html_url":"https://github.com/stephanemagnenat","followers_url":"https://api.github.com/users/stephanemagnenat/followers","following_url":"https://api.github.com/users/stephanemagnenat/following{/other_user}","gists_url":"https://api.github.com/users/stephanemagnenat/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanemagnenat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanemagnenat/subscriptions","organizations_url":"https://api.github.com/users/stephanemagnenat/orgs","repos_url":"https://api.github.com/users/stephanemagnenat/repos","events_url":"https://api.github.com/users/stephanemagnenat/events{/privacy}","received_events_url":"https://api.github.com/users/stephanemagnenat/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T16:18:04Z","updated_at":"2016-11-24T16:18:04Z","body":"I cannot reproduce with master, it is most likely linked to a corrected compiler bug, please make sure with 1.5.4 that it is fixed and close the bug, thank you!"}}
{"actor":{"display_login":"stephanemagnenat"}}