{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/1981","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/1981/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/1981/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/1981/events","html_url":"https://github.com/espressif/esp-idf/issues/1981","id":324826655,"number":1981,"title":"esp32 hangs in intr_alloc.c ( portEXIT_CRITICAL(&spinlock); )","user":{"login":"PhilColbert","id":17898944,"avatar_url":"https://avatars3.githubusercontent.com/u/17898944?v=4","gravatar_id":"","url":"https://api.github.com/users/PhilColbert","html_url":"https://github.com/PhilColbert","followers_url":"https://api.github.com/users/PhilColbert/followers","following_url":"https://api.github.com/users/PhilColbert/following{/other_user}","gists_url":"https://api.github.com/users/PhilColbert/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilColbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilColbert/subscriptions","organizations_url":"https://api.github.com/users/PhilColbert/orgs","repos_url":"https://api.github.com/users/PhilColbert/repos","events_url":"https://api.github.com/users/PhilColbert/events{/privacy}","received_events_url":"https://api.github.com/users/PhilColbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-21T08:13:17Z","updated_at":"2018-05-22T09:42:37Z","closed_at":null,"author_association":"NONE","body":"After installing the new espidf and arduino component, Serial 1 ( serial 2 ) randomly hangs on boot.\r\n\r\nI have traced it to the last portEXIT_CRITICAL(&spinlock); call in function esp_err_t esp_intr_alloc_intrstatus in intr_alloc.c\r\n\r\n80% of the time this works, 20% of the time the system just stops and hangs there.\r\n\r\nThere is a gps currently attached to the port and continuously feeding serial data into it if thats relevant.\r\n\r\nAny ideas ?\r\n\r\n\r\nJust a very simple program hangs 20% of the time., I know this is arduino but it hangs in the espidf code.\r\n\r\n#include <Arduino.h>\r\n\r\n#include \"esp_log.h\"\r\n\r\nHardwareSerial GPSSerial(1);\r\n\r\nvoid setup()\r\n{\r\n\tesp_log_level_set(\"*\", ESP_LOG_VERBOSE);\r\n\tSerial.begin(115200);\r\n\tSerial.println(\"start\");\r\n\tGPSSerial.begin(9600, (uint32_t) SERIAL_8N1,33,(int8_t) 22);\r\n\r\n}\r\n\r\nvoid loop()\r\n{\r\n        delay(1000);\r\n\tSerial.println(\"running\");\r\n}\r\n\r\n\r\nI have tried different setups, with and without the GPS attached and it randomly stops at the same place.\r\n\r\nthis never happened with the older ESPIDF code.\r\n\r\nv3.1-dev-439-g37765d00-dirty - no hangs\r\n\r\nv3.1-dev-858-gf885e8b8-dirty - hanging."},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/390929322","html_url":"https://github.com/espressif/esp-idf/issues/1981#issuecomment-390929322","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/1981","id":390929322,"user":{"login":"PhilColbert","id":17898944,"avatar_url":"https://avatars3.githubusercontent.com/u/17898944?v=4","gravatar_id":"","url":"https://api.github.com/users/PhilColbert","html_url":"https://github.com/PhilColbert","followers_url":"https://api.github.com/users/PhilColbert/followers","following_url":"https://api.github.com/users/PhilColbert/following{/other_user}","gists_url":"https://api.github.com/users/PhilColbert/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilColbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilColbert/subscriptions","organizations_url":"https://api.github.com/users/PhilColbert/orgs","repos_url":"https://api.github.com/users/PhilColbert/repos","events_url":"https://api.github.com/users/PhilColbert/events{/privacy}","received_events_url":"https://api.github.com/users/PhilColbert/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T09:42:37Z","updated_at":"2018-05-22T09:42:37Z","author_association":"NONE","body":"Ok, found the problem - please can someone test?!\r\n\r\nSpent this morning, completely installing the latest IDF, Arduino , everything new.\r\n\r\nIf CONFIG_LOG_DEFAULT_LEVEL is set to  NONE then there is no hanging.\r\n\r\nas soon as \r\n\r\nCONFIG_LOG_DEFAULT_LEVEL is set to VERBOSE the esp32 will hang and freeze about 20% of the time as per the above log output.\r\n\r\nAny ideas?\r\n\r\nThanks\r\n\r\n"}}
{"actor":{"display_login":"PhilColbert"}}