Skip to content

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

Description

@yanzhenxing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions