[Vm-dev] [Pharo-dev] LibFFI/NB Cairo External Module Not Found debugging

Guillermo Polito guillermopolito at gmail.com
Mon May 21 07:15:49 UTC 2018


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 at 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 at gmail.com> wrote:
>
>>
>>
>> On Sat, May 19, 2018 at 1:37 PM, Peter Uhnák <i.uhnak at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180521/94567942/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 79229 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180521/94567942/attachment-0001.png>


More information about the Vm-dev mailing list