Async fs calls early in a scope search() handler crash the scope and/or Unity

Bug #1598967 reported by Stuart Langridge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity-js-scopes
New
Undecided
Alexandre Abreu

Bug Description

While developing a JS scope, I made an async node fs.readdir call early on in my search() handler. This, basically, causes my scope to crash, and sometimes takes down all of Unity with it. It seems that being asynchronous here before returning a SearchQuery really isn't liked by the JS scopes stuff. I eventually worked around this by doing fs.readdirSync and feeling guilty about it, but there is some sort of error with the thread of control there, I think.

Changed in unity-js-scopes:
assignee: nobody → Alexandre Abreu (abreu-alexandre)
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Do you have a bit more context on your search() handler? Did you test on the device or desktop? Could you "grep DEN /var/log/syslog" to check for an apparmor denial?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.