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

UTF decode errors importing .F3D #88

Open
dezanche opened this issue Oct 29, 2024 · 3 comments
Open

UTF decode errors importing .F3D #88

dezanche opened this issue Oct 29, 2024 · 3 comments
Assignees
Labels
bug Fixed Issue is fixed

Comments

@dezanche
Copy link

I'm getting the following error on pretty much any .F3D file I try to import (the rest don't import anything):

14:24:08  Reading: C:\Users\...\Fusion360\Admin Project\Fabricate ready\Full 3D model_v16.f3d
14:24:08  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 147, in open
    _open(filename, skip, only, root)
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 127, in _open
    reader = read(filename)
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerIL.py", line 70, in read
    if (importerF3D.read(filename)):
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerF3D.py", line 144, in read
    folder = read_manifest(f3d, 'Manifest.dat')
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerF3D.py", line 107, in read_manifest
    folder, i = getLen32Text16(data, i) # -> folder name
  File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\InventorLoader\.\importerUtils.py", line 895, in getLen32Text16
    txt = data[i: end].decode('UTF-16LE')
  File "C:\Program Files\FreeCAD 0.21\bin\lib\encodings\utf_16_le.py", line 16, in decode
    return codecs.utf_16_le_decode(input, errors, True)
<class 'UnicodeDecodeError'>: 'utf-16-le' codec can't decode byte 0x01 in position 5420: truncated data>

Any ideas?

@jmplonka jmplonka self-assigned this Dec 5, 2024
@jmplonka jmplonka added the bug label Dec 5, 2024
@jmplonka
Copy link
Owner

jmplonka commented Dec 5, 2024

Let me check it out, but therefore I need an example, seems to be a Fusion-Version issue.
Could you share the file?

@dezanche
Copy link
Author

dezanche commented Dec 5, 2024

Thanks, here is a file that gives that error
Full 3D model_v16.zip
(zipped otherwise it won't let me upload it); I have others from the same project that don't give an error but don't import anything.
This is all under FreeCAD 0.21.1

@jmplonka jmplonka added the Fixed Issue is fixed label Dec 6, 2024
@jmplonka
Copy link
Owner

jmplonka commented Dec 6, 2024

but there still remains an AccessViolation while converting model.

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

No branches or pull requests

2 participants