Skip to content

vef2vts will core dump if the obj file contains non-numeric usemtl [material name] #23

@dominoc

Description

@dominoc

If a Wavefront .obj file contains a material name with non-numeric characters e.g. "texture0"
...example snippet of obj file....
tllib 000009_000013-L-1.mtl
usemtl texture0
v 1945.47076416015625 -2560.4603881826624274 353.8007472991943132
....etc....

the vef2vts executable will crash with the following messages:
2018-07-30 10:24:50 I3 [8511(main)]: Loading window mesh from: "000009_000013/1/000009_000013-L-1.obj" {vef2vts.cpp:assign():713}
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::bad_lexical_cast >'

what(): bad lexical cast: source type value could not be interpreted as target
Aborted (core dumped)

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