siteviewer() Throws Unregonized Field Error when run on Compute Pool

15 views (last 30 days)
I am using the RF Propagation toolbox to perform some raytracing of a city environment to generate data. I have attached the scripts below.
I can run the script locally on Ubuntu 24 with MATLAB2024a, both by calling them from within a MATLAB session and via the command line as:
/usr/local/MATLAB/R2024a/bin/matlab -nodisplay -nosplash -r "run('path/to/txwiseNeRFData.m'); exit"
In both cases the script will run. However, when I attempt to run on my schools compute pool with the exact same command the script throws the error:
Warning: The following error was caught while executing 'rfprop.internal.onExit' class destructor:
Error using siteviewer
Unrecognized field name "hideBusyMessage".
Error in rfprop.internal.onExit/delete
Error in siteviewer/showBuildings
Error in siteviewer
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('buildParallelPropEnv', '/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m', 31)" style="font-weight:bold">buildParallelPropEnv</a> (<a href="matlab: opentoline('/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m',31,0)">line 31</a>)
viewer = siteviewer(Basemap = 'openstreetmap', Terrain=terrainModel,Name="Site Viewer (GMTED2010)", Buildings=buildings, Hidden=true);
> In siteviewer/showBuildings
In siteviewer
In <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('buildParallelPropEnv', '/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m', 31)" style="font-weight:bold">buildParallelPropEnv</a> (<a href="matlab: opentoline('/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m',31,0)">line 31</a>)
Analyzing and transferring files to the workers ...done.
Warning: The following error was caught while executing 'rfprop.internal.onExit' class destructor:
Error using siteviewer
Unrecognized field name "hideBusyMessage".
Error in rfprop.internal.onExit/delete
Error in siteviewer/showBuildings
Error in siteviewer
Error in <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('buildParallelPropEnv', '/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m', 31)" style="font-weight:bold">buildParallelPropEnv</a> (<a href="matlab: opentoline('/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m',31,0)">line 31</a>)
viewer = siteviewer(Basemap = 'openstreetmap', Terrain=terrainModel,Name="Site Viewer (GMTED2010)", Buildings=buildings, Hidden=true);
> In siteviewer/showBuildings
In siteviewer
In <a href="matlab:matlab.lang.internal.introspective.errorDocCallback('buildParallelPropEnv', '/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m', 31)" style="font-weight:bold">buildParallelPropEnv</a> (<a href="matlab: opentoline('/scratch/zt1/project/nchopra-prj/user/abeyer/beamforming-rt/buildParallelPropEnv.m',31,0)">line 31</a>)
Error using siteviewer
An UndefinedFunction error was thrown on the workers for 'isvalid'. This might
be because the file containing 'isvalid' is not accessible on the workers. Use
addAttachedFiles(pool, files) to specify the required files to be attached.
For more information, see the documentation for
'parallel.Pool/addAttachedFiles'.
Error in buildParallelPropEnv (line 31)
viewer = siteviewer(Basemap = 'openstreetmap', Terrain=terrainModel,Name="Site Viewer (GMTED2010)", Buildings=buildings, Hidden=true);
Error in txwiseNeRFData (line 120)
parfor site = 1:scen.nSamples
Error in run (line 112)
evalin('caller', strcat(scriptStem, ';'));
Caused by:
Incorrect number or types of inputs or outputs for function isvalid.
I have no idea why this is happening and can't find any explanation online. Has anybody else run into this or had any luck fixing it?
As a note I'm relying on the undocumented 'Hidden' option within siteviewer to launch one without a graphical interface. I don't think that's causing my problem since I can run the same script in the same way locally, but I have seen that flag cause some weird issues in the past.

Answers (0)

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!