-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mtoh plugin crash #314
Comments
I finally manage to get a log file : //===================================================== Exception code: C0000005: ACCESS_VIOLATION - illegal read at address 0xFFFFFFFF Call stack: //crash log file name = C:\Users\Chokmah\AppData\Local\Temp\MayaCrashLog200227.1933.log //==================================================== This part got my attention : Exception code: C0000005: ACCESS_VIOLATION - illegal read at address 0xFFFFFFFF |
It looks to be crashing in prman render delegate. The first step would be to remove this render delegate from the Pixar plugin search path. If mtoh will start working after and you will be able to switch to HdStorm...then I would suspect that your prman was built against different USD library than maya-usd. |
Hello kxl-adsk :) I built USD plugin for Renderman, with Pixar USD build_usd.py script. Second question, Anyway thanks a lot :) |
Hmmm...ok. Does it work correctly in the usdview? Given that you probably have both render delegates (storm and prman) in the same build location (i.e. <pixar_usd_folder>\plugin\usd) - can you move prman out of this folder? (then test again and see if you can reproduce the crash; you should have a different callstack) |
I try to get out hdxPrman folder out from <pixar_usd_folder>\plugin\usd. But for now, only GL(hydra) works, once I try to use Prman(Hydra) Maya crashes again. Here is the Maya log after the crash : Ho ! And yes, all work like a charm in usdview (GL and Prman). |
Just to be sure I understand. When you remove hdxPrman folder (and dlls) out of What did you do to get the crash after that? |
We have PR open which helps filtering out invalid render delegates from the list - check #292 Now, all of this doesn't explain your original crash in hdxPrman
The only thing I can do is continue guessing. Looking at the call stack - is it possible that you build USD (including hdxPrman) with a different version of render man pro server? (i.e. you are pointing Maya to c:\Program Files\Pixar\RenderManProServer-23.1, was this the same lib you used for building USD)? |
Yes I used same lib to build USD : python build_scripts\build_usd.py --prman --prman-location "C:\Program Files\Pixar\RenderManProServer-23.1" "C:\Program Files\USD" |
Ok. Let's see what will be the crash callstack with #292 (i.e. please merge it in and repeat the test with hdxPrman included in usd plugins) |
I have done like you said Krystian. With hdxPrman included in usd plugins, mtoh plugin crashes again. |
There is nothing that stands out in this log file for me. It's hard to tell if the issue is related to mtoh or hdxPrman. One thing you could do is to install pdb's when building USD (use this patch for USD |
Okay I'll do this Krystian. Thanks you a lot, I know it can be difficult to help users like me who are new to all this technical stuff (I mainly create maya tools and plugins using python at this time). I'll build USD with this patch as soon as possible. Thanks again :) |
I've also logged this information on our internal database, so we can keep track of it. it is currently logged as MAYA-103695 |
I have rebuildt USD with patch_for_USD_for_pdb.txt. I dont know if it will help : |
Weird, I was hoping to see lines at which this crash is happening, but it's not there.
You can notice that for modules in maya-usd, you get a BTW. When building USD, you are pointing it to build in c:\Program Files\USD ? |
Yes when building USD I am pointing it to build in c:\Program Files\USD (I hope I don't do something wrong) |
OK, this explains why we don't see the lines. You will have to investigate what went wrong since I'm using exactly the same patch and have .pdb files. |
Perhaps I don't use the patch correctly. I'll check about this. |
Just do
I used dev branch, but should be ok as well with master (20.02) |
Indeed I get the same messages using git status. No now I should rebuild USD using Prman plugin right ? |
Yes, please. Now you should have pdb's in the folder and callstack should include |
Hello again Krystian, I found time to build usd with Prman. But It seems I cannot read them. Do I need a specific tool to do that ? Here is the pdb file : But, more strangely, the second time I tried to load mtoh plugin, It worked ! (I do nothing except what you asked me). I tried one more time, it worked again. ... And I feel confused ... I don't like when something works suddenly without reason lol One last thing : The plugin loads successfully but when I choose Prman(Hydra) it renders nothing. I hope this pdb file is what you needed :$ |
I noticed another fact : I will continue to investigate, note another behaviors if it can help. Another fact too : |
I was off the last two days. Now that you have pdb's...can you give me the crash log? |
Hello Krystian, So here is the last one : Thanks you I learned something new :) |
Looking at the call stack and the place in HdxPrmanRenderDelegate where the crash happens (i.e. destructor) - you will have to bring this up on USD mailing list. Maya to hydra may have a different pattern than other applications, where it creates and destroys render delegates during its initialization. But there shouldn't be anything wrong in doing so, and render delegate destructor should properly handle it. As we see in the callstack you provided, prman render delegate doesn't like it (not sure what are the expectations around the shared context object which is in the center of this crash). |
OK, so I should transfert this log to Pixar USD mailing ? Thank you a lot ^^ |
Hello Krystian, I come back with very few news since I send a message on USD mailing list. I 'll come with news if I have some, and still continue to investigate until then :) |
@ChokmahBinah should we close the ticket here? We don't have much more to do for now. You can always reopen with new information if needed. |
I think you are right, I prefer coming back with real informations if i get some. Thank you for all your help Krystian :) |
Hello again, Here is the discussion copy on Pixar USD project: Hello everybody, and thank for all the work done around. I builted Pixar USD and Maya USD plugin. Here is the crash log : MayaCrashLog200307.0943.log
System Information (OS, Hardware) Windows 10 x64 Merge release v20.02 python build_usd.py --prman --prman-location C:\Program Files\Pixar\RenderManProServer-23.1 --alembic --openvdb "C:\Program Files\USD" --build-args boost,"--with-date_time --with-thread --with-system --with-filesystem" Thank you in advance for your help. Florian. Filed as internal issue #USD-5921 Thanks @ChokmahBinah -- we don't maintain mtoh here, please file an issue on the Autodesk project page here: https://github.com/Autodesk/maya-usd and hopefully someone there can help you out. I hope it will help. Thank you again :) |
Added more details to PixarAnimationStudios/OpenUSD#1134 (comment) |
Thanks you a lot @kxl-adsk |
Hi @kxl-adsk, should this one be closed at this point since Pixar is taking a look on their end? Thank you. |
Yes, now is a good time. Thx for catching it @santosd |
* MAYA-126758 - Support MDataServerOperation API refactor Change classnames to work with Maya API change.
Hello there, and thanks to everybody work trying to integrate USD in Maya.
Here Build for Maya 2020 worked like a charm.
Unfortunatly, mtoh maakes Maya crash everytime I try to activate it.
It worked only the first time I tried, but now I have systematic crashes.
And don't know why ..
Any idea here ?
Is there a way to get a crash log, or anything ? No message happen at Maya startup targeting any log file ...
Thanks in advance,
Florian.
System :
Windows 10
Maya 2020
The text was updated successfully, but these errors were encountered: