Skip to content

Issue: 馃悰Bug report | Image library does not check for file extension and will fail without clear error messages#103

Description

@stevenlabelle

Description: When images are loaded with FERawImage::Load there is no check that the user entered the file extension type which will cause the program to terminate with the message "Model initialization failed".
E.g., when using FEBioWarp, if the user sets a target image to a raw file but does not include ".raw" in the name then FEBio will fail to initialize the constraint. The log error outputs are: "Nonlinear constraint 1 failed to initialize" and "Model initialization failed".

Version: Dev version 4.9.0.7d6f0796f

To reproduce:

  1. Create a model that uses image data (e.g., test1_v4.feb from the warp plugin).
  2. Remove ".raw" from the file name in the file field.
  3. Run FEBio. The model will fail without.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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