Skip to content

Can't open files containing linked objects in version 3.1 #1474

Open
@davidgiven

Description

@davidgiven
  • SolveSpace version: 3.1+ds1-3.1+b1
  • Operating system: Linux Debian testing

If I try to open a file containing a linked object, the linked object doesn't load, and all the constraints attached to the linked object break:

image

Examining the loaded file, it seems that the filename for the linked object hasn't been read properly out of the slvs file:

image

If I run solvespace with strace, this is corroborated. I can see it load the original file, then it tries to open .:

...
read(16, "2031085529958 1.9999999999999997"..., 4096) = 4096
read(16, "t 0 -24.24264068711928388211 -4."..., 4096) = 4096
read(16, "8024742503792481330\nAddCurve\nCur"..., 4096) = 4096
read(16, "7.71427983280334217397 Weight 1."..., 4096) = 4096
read(16, "0637458226738 47.720394026388149"..., 4096) = 533
read(16, "", 4096)                      = 0
close(16)                               = 0
openat(AT_FDCWD, ".", O_RDONLY)         = 16
newfstatat(16, "", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_EMPTY_PATH) = 0
read(16, 0x560f0e262d60, 4096)          = -1 EISDIR (Is a directory)
close(16)                               = 0
...

I noticed this with new files, i.e. the ones I'm currently working on, but trying to open some old ones which used to work also fails, so I think this is a new regression?

I'm enclosing the two files.

files.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions