Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report, Error on line 13334: No right parenthesis found in line #3

Open
yanzhenxing opened this issue Feb 27, 2017 · 1 comment

Comments

@yanzhenxing
Copy link

Hi, Ruben,

I find another bug.

When I use IfcStepStreamingDeserializer to process data, It throws exception "Error on line 13334: No right parenthesis found in line". I debug the code, find that (line 239 to 248):

				if (line.length() > 0 && line.charAt(0) == '#') {
					while (line.endsWith("*/")) {
						line = line.substring(0, line.lastIndexOf("/*")).trim();
					}
					if (line.endsWith(";")) {
						processRecord(line);
					} else {
						return false;
					}
				}

while the line ends with ";", it will be considered as the end of one item. But I found a special ifc file, which contains an item as follow:

#13430 = IFCPROPERTYSINGLEVALUE ('970', '', IFCLABEL ('970;1;Einbauventil;;ZYLI;0;0;0;1;0;0;0;1;0;44;10;
'), $);

In this case, the line will be parsed as "#13430 = IFCPROPERTYSINGLEVALUE ('970', '', IFCLABEL ('970;1;Einbauventil;;ZYLI;0;0;0;1;0;0;0;1;0;44;10;". And an exception is thrown.

@hlg
Copy link
Member

hlg commented Aug 22, 2017

Do you have a line break after the last semicolon in the label string? Then this is the cause of failure and might have to be removed. Should be doublechecked with ISO 1030-21, whether it is allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants