You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A problem appeared in one of the projects, the process was silently terminating. In the end, the reason was determined - loadImage. A URL object was passed to the function as src instead of a string or buffer. But, what is strange is the process termination with no way to understand what is happening. Even the debugger (Node.js) could not help.
I think it would be more informative to throw an exception in canvas/lib/image.js when an invalid parameter is passed to setter. At the moment it is checking for a string or buffer and nothing else.
I was expecting an exception to be thrown that I could catch or at least a process crash with some information about the problem, but the process silently terminates. Is this a problem in bindings? Can someone explain the mechanism of this error? (I don't know C++ and bindings.)
Activity