Summary

Title:Crash when trying to run a sim with latest build
Category:Crash/Critical
Status:Open
Posted By:SteveDGreen ( Stephen Green )
Date Created:5 May 2017

Problem

Description:

Added Lucid liquid modifier to object, and ran a sim.

get a max crash in Max 2017 and 2018.

Have latest nvidia drivers + 980Ti and 1070

Windows 7


Steps to Reproduce:

Created a sphere
Added Liquid Lucid modifier
Ran Lucid sim
Crash

Steve, if you go to Global Settings is your library option set to CUDA?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi Marsel.

Yep, it's set to CUDA.

Thanks,

Steve

Hmm, strange. Everything works here as expected. Please confirm that you have these files in your 3dsmax root dir:

Ephere.Plugins.Lucid.FlexAdapterCuda.dll
Ephere.Plugins.Lucid.FlexAdapterD3D.dll
flexExtRelease_x64.dll
flexRelease_x64.dll

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Hi,

first 2 are in there, but not the 2 flex ones.

Thanks,

Steve

Strange, investigating...

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Yeah, tried a removal/reinstall but get the same.

There's nothing third-party I should install is there?

Thanks

No, these files should have been installed by Lucid. I'll get back to you on this.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

OK, thanks!

Nevermind, those two dlls shouldn't be there. Instead these should:

  • <3dsmax>/NvFlexDeviceRelease_x64.dll
  • <3dsmax>/NvFlexExtReleaseCUDA_x64.dll
  • <3dsmax>/NvFlexExtReleaseD3D_x64.dll
  • <3dsmax>/NvFlexReleaseCUDA_x64.dll
  • <3dsmax>/NvFlexReleaseD3D_x64.dll

More info: https://ephere.com/plugins/autodesk/max/lucid/docs/1/Installation.html#Verifying-Installation

Marsel Khadiyev (Software Developer, EPHERE Inc.)

All the files mentioned in the link are in their respective places apart from the ui script which is in the startup subfolder of scripts.

Please also see if these files are there. You might need to reinstall the latest nightly first:

  • <3dsmax>/amd_ags_x64.dll
  • <3dsmax>/cudart64_80.dll

If there is another cudart file in there, please try removing it.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I just tried the latest demo in Max 2018 (has no other extra plugins) in D3D mode. I have all the relevant files installed except the one that was mentioned last (amd_ags_x64.dll).

Same crash as above when clicking the simulation button.

 

I suspect the problem might be while installing the plugin in different workspaces and something got mixed up, or expected graphics components that depend on specific driver versions.

In my test system it's found in two workspaces and looks different in both.

1. Alt Menu and Toolbar --> it misses the Lucid menu entry but it has the Lucid toolbar. Except thet the popup button descriptions look like noise characters.

2. Main Toolbar  -> has the Lucid menu entry but misses the toolbar.

 

I had tried it earlier in Max 2017 wit the same results, except that the toolbar button descriptions were the proper ones.

 

In all cases, the error message was:

 

Assertion Error Information

File: Private\FlexSettingsObject.cpp

Line: 636

Fuction: Ephere::Plugins::Autodesk::Max::Lucid::FlexSettingsObject::SetDataToLucid

Expression: Assert failed: adapter != nullptr

 

I hope this pinpoints the error spot.

 

 

 

Hi Marsel

I don't have

  • <3dsmax>/amd_ags_x64.dll
  • <3dsmax>/cudart64_80.dll

    but do have cudart64_70.dll


Where is the latest nightly? All I can see on downloads is the latest stable from a day ago which is 1.4.0.11104.

Thanks,

Steve

 

Please uninstall, redownload, and reinstall it from the website. We made some fixes.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Thanks,

that seems to fix things!

Cheers

Steve

It doesn't change it for the trial version, but with the last fixed installer all the required files are in place. Maybe it has some specific hardware/driver requirements?

The error is different now though I can't make sense of it. The crash is handled but nothing else happens.

The following shows up in the Maxscript listener (Max 2018 only, I haven't tried another platform). No dump produced and no errors in the Max.log either:

-- MAXScript MacroScript Error Exception:
-- Known system exception
-- ########################################################################
-- Address: 0x9ef0b5c5; nCode: 0x00000000C0000005
-- Desc: EXCEPTION_ACCESS_VIOLATION The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
-- Read of Address: 0x0000000000000000
-- ########################################################################
-- MAXScript callstack:
-- thread data: threadID:9028
-- ------------------------------------------------------
-- [stack level: 0]
-- In codeblock macroScript: Lucid_Lucid_ToggleSandbox; filename: C:\Program Files\Autodesk\3ds Max 2018\scripts\startup\LucidUI.ms; position: 3081; line: 70
-- Locals:
-- Externals:
-- ------------------------------------------------------
-- [stack level: 1]
-- called from top-level
-- ########################################################################
-- C++ callstack:
-- (NvFlexReleaseD3D_x64): (filename not available): NvFlexGetDetailTimers
-- (NvFlexReleaseD3D_x64): (filename not available): NvFlexGetDetailTimers
-- (NvFlexReleaseD3D_x64): (filename not available): NvFlexGetDetailTimers
-- (NvFlexReleaseD3D_x64): (filename not available): NvFlexCreateSolver
-- (Ephere.Plugins.Lucid.FlexAdapte): (filename not available): NvFlexMakeShapeFlags
-- (Ephere.Plugins.Lucid.FlexAdapte): (filename not available): (function-name not available)
-- (Ephere.Plugins.Lucid): (filename not available): SetActivePhysicsStringParameter
-- (Ephere.Plugins.Autodesk.Max.Luc): (filename not available): LibVersion
-- (Ephere.Plugins.Autodesk.Max.Luc): (filename not available): LibVersion
-- (MAXScrpt): (filename not available): Primitive::apply
-- (MAXScrpt): (filename not available): CodeTree::eval
-- (MAXScrpt): (filename not available): clear_error_source_data
-- (MAXScrpt): (filename not available): Primitive::apply
-- (MAXScrpt): (filename not available): CodeTree::eval
-- (MAXScrpt): (filename not available): SourceFileWrapper::eval
-- (MAXScrpt): (filename not available): SourcePositionWrapper::apply_no_alloc_frame
-- (MAXScrpt): (filename not available): MacroEntry::EnableCompiles
-- (MAXScrpt): (filename not available): Listener::set_style
-- (USER32): (filename not available): CreateDialogParamW
-- (USER32): (filename not available): CreateDialogParamW
-- (USER32): (filename not available): CreateDialogParamW
-- (USER32): (filename not available): TranslateMessageEx
-- (USER32): (filename not available): CallWindowProcW
-- (USER32): (filename not available): CallWindowProcW
-- (UIControls): (filename not available): InitializeCustomUI
-- (UIControls): (filename not available): (function-name not available)
-- (USER32): (filename not available): TranslateMessageEx
-- (USER32): (filename not available): TranslateMessage
-- (USER32): (filename not available): IsDialogMessageW
-- (3dsmax): (filename not available): XMLAnimTreeEntry::GetType
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- (clr): (filename not available): LegacyNGenTryEnumerateFusionCache
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- (3dsmax): (filename not available): UtilGfx::kFONT_WIDTH
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- (3dsmax): (filename not available): (function-name not available)
-- ((module-name not available)): (filename not available): (function-name not available)
-- (ViewSystem): (filename not available): MaxGraphics::DeleteViewportViewSetting
-- ((module-name not available)): (filename not available): (function-name not available)
-- (clr): (filename not available): (function-name not available)
-- ########################################################################

Please check your 3dsmax root directory if cudart* file is there. Only one with "80" in its name should be there.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

There is a single cudart64_80.dll dated 3/29/2017. Is this used even on a non-NVidia system?

 

If you're not running on NVidia hardware, please make sure you switch to "Direct 3d" in global settings first.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I've done that already. I opened one of the sample scenes (FluidWithInitialState_2013) which was set up for Cuda, I changed it to D3D and saved it with another name. I reopened the new file.

I installed Max 2016 since that's what is used in the accompanying video and got a different error.

This time, it throws a Maxscript error on LucidUI.ms.

If I click 'Toggle Lucid Physics' either in the menu or toolbar, the error is on line 70 (if LucidIsStarted() then LucidStop() else LucidStart()).

If I click "Record Time Range" the error is on line 75 (LucidRecordActiveTimeRange()).

If I run the same commands in Maxscript, I get a 'system exception' with no other explanation.

In all of the above, the toolbar's popup descriptions are fine. Only in Max 2018 they look funky.

 

Could it be some special requirements with .NET?

The scipts and files are in the proper place and I can't imagine what throws it off.

I could try it on another computer at the office in a couple of days but they are all Cuda machines (no Max 2018 either) so it wouldn't help resolving this.

I'll post if I manage to locate where the problem is with this computer.

 

The funky text in the toolbar indicates that the Lucid plugin itself didn't load for some reason. You can also test it by executing some of Lucid commands in listener like LucidAddToolbar and see if they are present.

The other errors in 2016 seem like a driver problem or some other issue loading the Lucid/Flex libraries. Looks strange to me. Perhaps we can do a Teamviewer session so I can look at it directly on your computer sometime?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Thanks Marsel.

Running the commands on their own, gave exception errors.

Nevertheless it just dawned on me,

The change log referred to using the Flex 1.1 libraries for compatibility with old and/or non-Cuda systems.

I looked the SDK up at NVidia and it says:

"Major feature of this release is the introduction of DX11/DX12 support, in addition to default CUDA implementation, so FLEX solver will run across all compatible graphics cards including AMD and Intel ones."

And there's the problem.

The card on the test machine I use is DX9. Somehow Lucid was partially loaded without complaining. Probably it should post a message and refuse to load in cases like mine.

I tried it on another computer (Cuda) and Lucid worked beautifully.

Problem resolved. As for older non-NVidia hardware, I doubt NVidia would support them with a new Flex release. C'est la vie.

Thanks again and sorry to waste your time on a wild goose chase.

 

Thank you for digging this up, I'll include it in our help files for future reference. Glad it is working on the other computer.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I also experience issues when trying the demo. Everything seems t work just fine, until the "saving is disabled in this version" popup appears. After that if I hit the simulate button, Max hangs every time. I can also see that the values in the global settings resets after the popup. I assume that it should be possible to continue to test lucid after the popup box has appeared?

 

Using max2016 with the latest downloadable stable version of lucid.

 

Mvh. Martin