Skip to content

Weird Error 506 - could not read MSX input file. #5

@sichu366

Description

@sichu366

Hi, I encounter a very interesting bug here. The name of the reservoir in a network made a difference when loading MSX file via loadMSXFile command.

In order to reproduce, please
(1) download bugreport.zip first
(2) run bugreport.m

when running case 1, there is Error 506 - could not read MSX input file.
when running case 2, there is no error.
And the code is exactly the same for case 1 and case 2 (only three lines), the only difference is the reservoir's name is different in source file Network_1.inp and Network_2.inp

I put the code here for your convinence
% Case 1
close all; clear;
G = epanet('Network_1.inp'); % Load EPANET Input file
G.loadMSXFile('Arsenite.msx'); % Load MSX file

% Case 2
close all; clear;
G = epanet('Network_2.inp'); % Load EPANET Input file
G.loadMSXFile('Arsenite.msx'); % Load MSX file

bugreport.zip

The details of error:

EPANET loaded successfully.
Loading File "Network_1.inp"...
Input File "Network_1.inp" loaded sucessfuly.
Error 506 - could not read MSX input file.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Error 519 - an MSX project was not opened.
Output argument "value" (and maybe others) not assigned during call to
"epanet/getMSXSourceType".

Error in epanet>MSXMatlabSetup (line 7402)
obj.MSXSourceType = obj.getMSXSourceType;

Error in epanet/loadMSXFile (line 2882)
MSXMatlabSetup(obj,msxname);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions