LibFFI/NB Cairo External Module Not Found debugging
Hi, some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom). The problem is that I have no idea how to even start debugging this. Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into? Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library. Any pointers / docs / ideas appreciated. Thanks, Peter
I've not used this, just found it poking around... https://blogs.msdn.microsoft.com/junfeng/2006/11/20/debugging-loadlibrary-fa... cheers -ben On 19 May 2018 at 19:37, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom).
The problem is that I have no idea how to even start debugging this.
Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into?
Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library.
Any pointers / docs / ideas appreciated.
Thanks, Peter
On Sat, May 19, 2018 at 1:37 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom).
The problem is that I have no idea how to even start debugging this.
Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into?
Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library.
Any pointers / docs / ideas appreciated.
You can see the actual code from https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q=fi... ?
Thanks, Peter
-- Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>* *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
A bit further, the windows specific code is in https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/e17db79411cfec767e04f... check the users of LoadLibrary, which comes form the windows std libraries. https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175%28v=vs.85%... On Sun, May 20, 2018 at 9:46 PM, Guillermo Polito <guillermopolito@gmail.com
wrote:
On Sat, May 19, 2018 at 1:37 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom).
The problem is that I have no idea how to even start debugging this.
Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into?
Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library.
Any pointers / docs / ideas appreciated.
You can see the actual code from
https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q= findAndLoadModule%28char+*pluginName%2C+sqInt+ffiLoad%29&type=
?
Thanks, Peter
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
-- Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>* *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
Andd... maybe we want to discuss this in vm-dev and not in pharo-users :) On Mon, May 21, 2018 at 9:15 AM, Guillermo Polito <guillermopolito@gmail.com
wrote:
A bit further, the windows specific code is in
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/ e17db79411cfec767e04f3d94d12a642d920a30e/platforms/win32/vm/ sqWin32ExternalPrims.c
check the users of LoadLibrary, which comes form the windows std libraries.
https://msdn.microsoft.com/en-us/library/windows/desktop/ ms684175%28v=vs.85%29.aspx
On Sun, May 20, 2018 at 9:46 PM, Guillermo Polito < guillermopolito@gmail.com> wrote:
On Sat, May 19, 2018 at 1:37 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom).
The problem is that I have no idea how to even start debugging this.
Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into?
Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library.
Any pointers / docs / ideas appreciated.
You can see the actual code from
https://github.com/OpenSmalltalk/opensmalltalk-vm/search? utf8=%E2%9C%93&q=findAndLoadModule%28char+*pluginName%2C+ sqInt+ffiLoad%29&type=
?
Thanks, Peter
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
-- Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>* *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
participants (3)
-
Ben Coman -
Guillermo Polito -
Peter Uhnák