这是indexloc提供的服务,不要输入任何密码
Skip to content

Preset creation fails with miniz error #1552

@J5lx

Description

@J5lx

Issue Summary

It is currently not possible to create new presets because of an error. This issue appears to have been introduced by #1436, but so far I haven’t looked into it beyond that. Judging by the error message, the zip file name seems to be empty or something.

Actual Results

An error message appears with the following message:

Miniz Error

An internal error occurred. Your file may not be saved successfully.

Error: your file may not have saved successfully.If you believe that this error is an issue with Pencil2D, please create a new issue at https://github.com/pencil2d/pencil2d/issues
Please include the following details in the issue:

FileManager::save
sFileName = 
New zipped Pencil File Format (*.pclx) !
TempWorkingFolder = /tmp/Pencil2D/1_Y2xD_kvcpytq8/
Total 3 layers
Layer[0] = [id=1, name=Camera Layer, type=5]
Layer[1] = [id=2, name=Vector Layer, type=2]
Layer[2] = [id=3, name=Bitmap Layer, type=1]
All Layers saved
Writing main xml file...
Done writing main xml file at
/tmp/Pencil2D/1_Y2xD_kvcpytq8/main.xml
Miniz
  Creating Zip  from folder /tmp/Pencil2D/1_Y2xD_kvcpytq8/
  Miniz writer init failed: 17
  Add file to zip: data/002.001.vec
    Cannot add data/002.001.vec: error 24, invalid parameter
  Add file to zip: data/003.001.png
    Cannot add data/003.001.png: error 24, invalid parameter
  Add file to zip: data/palette.xml
    Cannot add data/palette.xml: error 24, invalid parameter
  Add file to zip: main.xml
    Cannot add main.xml: error 24, invalid parameter
  Miniz finalize archive failed
System Info
Pencil version: 0.6.5 (dev)
Build ABI: x86_64-little_endian-lp64
Kernel: linux, 5.9.14-arch1-1
Operating System: Arch Linux
end

A new preset is not created.

Expected Results

No error message appears and a new preset is created.

Steps to reproduce

  1. Go to Edit → Preferences
  2. Navigate to the Files category
  3. In the Startup Settings section, use the + button

System Information

  • Pencil2D Version: 6f0b75b
  • Operating System: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions