Common Error Messages
Only the most common error messages are listed here. Exact message text may vary slightly.
Placeholder notation:
%s— a text label (e.g. file name)%d— an integer%d.d— a floating-point number
1. SELES Start-up or Window Creation
InitializeOpenGl: HDC Invalid
InitialsizeOpenGl: RC invalid
Problem with OpenGL, the graphics display library used by SELES. Check your graphics drivers or OpenGL installation.
2. Opening and Saving Raster Files
Could not open GeoTiff file %s for writing legend.
GeoTiff raster file could not be opened to write legend information. Ensure the file is not locked by another application.
Cannot save 64-bit rasters that need more than 52 bits as GeoTiffs (%s) - not supported by GDAL
GeoTiff files are limited to 52 bits per cell. Use a different format for rasters requiring larger ranges.
3. Loading SELES Model Files
3.1 Loading and Reloading a .sel File
Error %s in model file at or near [%s][%s] in file %s
Syntax error. The message indicates the general text near the error (first brackets) and the specific text at detection (second brackets). The actual error may not be at the reported location. Use the LSEditor to resolve syntax errors.
Cannot open file: %s. Check that file exists at path specified and has read access.
Paths to sub-files are relative to the loading model file
An input .txt file referenced in the .sel file was not found.
File contains an error (possibly near end)
The end of the .sel file was reached before expected, usually caused by an unclosed expression (e.g. IF … END).
Shouldn't treat a global variable (%s) as a global constant (in lsevent: %s).
Cannot convert a global constant (%s) to a global variable (in lsevent: %s).
Mismatch between variable type in the .sel file and how it is declared in a landscape event.
Invalid macro array: %s
The macro state variable has loading errors.
Invalid landscape event (%s): layer %s not defined in .sel file
A layer variable in the landscape event is not defined in the state space.
Setting up initial state for variable %s: Cannot locate initial state viewname: %s
Scheduling output for variable %s: Cannot locate output viewname: %s
SELES could not find the raster view specified for a spatial variable's initial state or scheduled output.
Warning: bounds [%Id,%Id] for dynamic layer %s must be at least as big as bounds [%Id,%Id] for its initial state layer: %s. Re-adjusting.
The bounds for a spatial variable must encompass the full range of the initial state raster.
Warning: Sub or super-sampling raster for variable: %s.
A raster does not match the model dimensions and will be resampled. Align all spatial inputs before loading.
Error setting up SELES model. Cannot setup model as specified
General model setup failure. Check previous error messages for specifics.
script variable not found: %s
An external script variable referenced in the .sel file was not defined by the loading scenario.
3.2 Loading Landscape Events
Parsing error in LSevent or expr (%s) at or near [%s][%s]
(likely cause: keyword or punctuation expected)
Syntax error in a .lse file. Use the LSEditor's Parse function to find the location.
Cannot mix random and ordered with absolute initiation
Cannot mix random and reordered with absolute initiation
Invalid combination of flags for ProbInit in a landscape event.
Landscape event: %s : Invalid Property: <property name>
Syntax error in the named property.
3.3 Errors in Expressions
Invalid Expression Variable: %s. Layer or location variables not permitted here.
A spatial layer or Location variable is used outside a spatial context.
Invalid Expression Variable: %s. SOURCE Layer or SOURCE location variables not permitted here.
Invalid Expression Variable: %s. SOURCE Cell variables not permitted here.
The SOURCE keyword is used outside a recipient context (SpreadProb, NumRecipients, SpreadLocation).
Invalid Expression Variable: %s. Event variables not permitted here.
Invalid Expression Variable: %s. Cluster variables not permitted here.
Invalid Expression Variable: %s. Cell variables not permitted here.
A dynamic context variable is used in a property where its scope is not available.
Invalid Expression Variable: %s. Index variable not permitted here.
Index is only available in OVER INDEX expressions, indexed output records, and array sorting.
Invalid Expression Variable: %s. Structured variables only permitted in set, list and graph functions.
A set, list, graph, or tree variable is used in a normal expression, which would corrupt it.
4. Running Scenario Script Files
Cannot open scenario script file: %s.
The scenario file was not found or is locked. Note: paths to sub-scenarios are relative to the loading scenario and cannot use script variables.
Error %s in file: %s at or near [%s][%s]
Syntax error in a scenario file. Use File → Dry Run to check syntax without running simulations.
File %s contains an invalid command near text: %s
Unrecognised command — usually also a syntax error.
At least one incomplete loop/while/if statement in scenario
An if, while, or for block is missing its closing end keyword.
invalid specification - Script variable must be numeric: %s (%s)
A script variable is used where a number is required but its value is not numeric.
need to access vector/array global variable/constant with index: %s
out of bound index to vector/array global variable/constant: %s[%d].
out of bound index for global variable/constant: %s. Valid range: %Id. Index: %d
Array indexing errors — missing index or index out of range.
cannot access global output variable as a number: %s.
Output record variables can only be used in OUTPUT expressions.
WARNING re-assigning global constants has no effect: %s.
Attempt to reassign a global constant in a scenario. Use external script variables instead.
there is no simulation currently loaded
SimStart called before loading a dynamic model.
cannot change to specified directory: %s
invalid specification for loop: %s = %s
no wildcard character in loop expression: %s
Cannot find raster named %s to save.
Various scenario command errors — see message text for context.
5. Errors During Simulation
The previous simulation has not yet terminated...wait a bit.
An action must wait for the simulation to fully stop.
Warning: Cannot close document during a simulation
Cannot reload a dynamic model while a simulation is running
Rasters used in the state space cannot be closed, and the .sel file cannot be reloaded, while a simulation is running.
Could not open scenario record file %s for write access.
Could not open record file %s for write access.
Could not open record file %s for append access.
An output record file is locked by another application. Close any application that has the file open.
"Output Record length too long!. Fatal Error."
The output record specification exceeds the allocated buffer. Reduce the size of the OUTPUT expression in the landscape event.
5.1 Scheduled Raster Output
Directory specified for output file not found
Directory specified for output file is not a directory
Specified output file is a directory
Incorrect path or filename for time-series raster output in the .sel file.
5.2 Simulation Probe
Cannot probe selected property: no preliminary assignments to probe
Cannot probe selected property: no consequent assignments to probe
The probe requires at least one preliminary or consequent expression in the selected property.
5.3 Warnings That Do Not Stop a Simulation
Error: attempt to divide by zero
Division by zero is treated as 0 (not infinity). The message is written to seles.log — check this file regularly during model development.
6. Other User Interface Operations
6.1 New Layer (File menu)
"Invalid dimensions"
Rows and columns in the New Layer dialog must be > 0.
6.2 Raster View Dialog (View menu)
Cannot use selected image as mask/hue/height: layers must have the same dimensions.
Overlay operations require rasters of identical dimensions.
6.3 Name Document (Window menu)
Document name must have at least one character: %s
Cannot have two windows with the same name: %s
6.5 Align Layer (StaticModels menu)
WARNING: Layers to align may not have the same projection: %d vs %d
Warning: Layers to align should have the same cell size (resolution): %f vs %f
The two layers are already aligned
Alignment requires the same projection and cell size. Re-project and re-scale in a GIS if needed.
6.6 Rescale Layer (StaticModels menu)
Scale factor must be positive
Warning: Scale factor must be greater than zero! Cannot resize.