Calling any of the PolyB functions returns EXCEPTION_ACCESS_VIOLATION

Calling any of the PolyB functions returns EXCEPTION_ACCESS_VIOLATION

Anonymous
Not applicable
902 Views
2 Replies
Message 1 of 3

Calling any of the PolyB functions returns EXCEPTION_ACCESS_VIOLATION

Anonymous
Not applicable

 

Calling any of the PolyB functions returns EXCEPTION_ACCESS_VIOLATION

 

full error:

-- Known system exception
-- ########################################################################
-- Address: 0x37a0fa21; 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: 0xFFFFFFFFFFFFFFFF
-- ########################################################################
-- MAXScript callstack:
--	thread data: threadID:9380
--	------------------------------------------------------
--	[stack level: 0]
--	In top-level
-- ########################################################################
-- C++ callstack:
-- (PolyTools): (filename not available): LibShutdown
-- (MAXScrpt): (filename not available): Primitive::apply
-- (MAXScrpt): (filename not available): CodeTree::eval
-- (MAXScrpt): (filename not available): Listener::set_style
-- (USER32): (filename not available): IsWindowInDestroy
-- (USER32): (filename not available): IsWindowInDestroy
-- (USER32): (filename not available): IsWindowInDestroy
-- (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): CallWindowProcW
-- (USER32): (filename not available): DispatchMessageW
-- (USER32): (filename not available): IsDialogMessageW
-- (3dsmax): (filename not available): NURBSTextureChannel::GetTextureSurface
-- ((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)
-- ((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)
-- ########################################################################


From what I searched around my guess is that PolyBOcclusionMap is the function that gets called in the Render Surface Map window.
There is no callback upon clicking any of the buttons, and I really need access to it.

Is there a way to get access to PolyBOcclusionMap without it throwing that exception?

 

Currently working with 3DS Max 2017 on windows 10
It would be used in 3DS Max 2018 too

 

Kind regards

0 Likes
Accepted solutions (1)
903 Views
2 Replies
Replies (2)
Message 2 of 3

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

@Anonymous wrote:

 

Calling any of the PolyB functions returns EXCEPTION_ACCESS_VIOLATION

 


it's more likely that you are calling them incorrectly ... for example, let's try to call PolyBOcclusionMap

 

# we need an editable poly node
# the texture channel we want to use must be supported

 

now we go:

(
	b = box()
	addmodifier b (UVW_Map())
	converttopoly b

	bmp_width = 128
	bmp_height = 128
	map_channel = 1
	blur_value = 1
	seam_bleed = 0

	PolyBOcclusionMap b bmp_width bmp_height map_channel blur_value seam_bleed
)

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Found a code snippet later in the polyboost macros that supplied more commands to th

 

 

at function.

 

But somehow when you call the function below it says it only needs a static object as argument.

Help PolyBOcclusionMap

 
which is why I only called it with $ as argument, returning me the error.

My guess was that they have a global struct to keep all settings like: UV channel, blur, contrast, resolution, ... because polyboost itself is a struct and in some of their macros they use VCGetSetting 101 for resolutions etc.
Guess I was wrong


thank you for clarifying 

0 Likes