maya does not update recompilled plugin under linux

43 views
Skip to first unread message

Michał Frątczak

unread,
Jan 10, 2018, 8:12:50 AM1/10/18
to Python Programming for Autodesk Maya
Hi Group,

I am building a very minimal plugin under centos7 and noticed that maya stopped updating  .so file between compilations.

My loop looks like this:
    1. unload plugin in maya
    2. recompile/link
    3. load plugin in maya
    4. test...

It looks like maya keeps some kind of cache and I need to restart it to see changes in my .so file.
I 'think' (but not 100% sure) this started when I switched from static openEXR to dynamic linking and also added openVDB.so to link...

Any ideas what's wrong? Having to restart maya each time kill my productivity :/

thanks
-michal

Marcus Ottosson

unread,
Jan 10, 2018, 9:53:06 AM1/10/18
to python_in...@googlegroups.com
What happens if you copy the `.so` file to a different path, and load that?​

Michał Frątczak

unread,
Jan 10, 2018, 11:05:24 AM1/10/18
to Python Programming for Autodesk Maya


On Wednesday, January 10, 2018 at 3:53:06 PM UTC+1, Marcus Ottosson wrote:
What happens if you copy the `.so` file to a different path, and load that?​

The problem persists...
I tried both renaming file and cleaning build dir + rebuilding into new filename.so
In any case I need to restart maya to see effects. Funny...

Justin Israel

unread,
Jan 10, 2018, 1:53:00 PM1/10/18
to python_in...@googlegroups.com
Are you saying that it used to work, and now with either a different version of Maya, or a different version of Linux, it no longer works as you expect? 

In general, I would expect mixed results of unloading and reloading an so after making changes. If it worked before, and the behaviour has changed, then something could have changed in the way Maya is calling dlopen (http://man7.org/linux/man-pages/man3/dlopen.3.html). 


thanks
-michal

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f9b4ade8-a6e5-4dc6-883f-4e59fb932dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michał Frątczak

unread,
Jan 10, 2018, 4:40:42 PM1/10/18
to Python Programming for Autodesk Maya


On Wednesday, January 10, 2018 at 7:53:00 PM UTC+1, Justin Israel wrote:

Are you saying that it used to work, and now with either a different version of Maya, or a different version of Linux, it no longer works as you expect? 

In general, I would expect mixed results of unloading and reloading an so after making changes. If it worked before, and the behaviour has changed, then something could have changed in the way Maya is calling dlopen (http://man7.org/linux/man-pages/man3/dlopen.3.html). 


No, maya and its environment is exactly the same. It happened today, probably when I started linking my plugin dynamically against openEXR and openVDB .so files (before I used just EXR static .a libs).
Tomorrow I'll try to go back to static linking and check if that makes a difference.
Reply all
Reply to author
Forward
0 new messages