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

[Bug]: FormatException: Invalid Zip Signature #759

Open
1 task done
lengerke opened this issue Nov 12, 2024 · 2 comments
Open
1 task done

[Bug]: FormatException: Invalid Zip Signature #759

lengerke opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lengerke
Copy link

What happened?

I cannot open one specific file anymore that I worked on. Before the file was corrupted, there was a significant delay between the stylo touching the display and the app drawing the corresponding line (up to several seconds). The tablet was otherwise responsive and I worked offline. I don't know if that is relevant, though.

Version

2.2.1

Platform

Android

Relevant log output

#0      new ZipFile (package:archive/src/zip/zip_file.dart:52)
#1      ZipFileHeader.readLocalFileHeader (package:archive/src/zip/zip_file_header.dart:104)
#2      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:63)
#3      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:24)
#4      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:16)
#5      noteDataMigrator (package:butterfly_api/src/converter/note.dart:16)
#6      new NoteData.fromData (package:butterfly_api/src/models/data.dart:29)
#7      _decode (package:butterfly/api/file_system.dart:16)
#8      TypedDirectoryFileSystem._toTypedAsset (package:lw_file_system/src/api/typed.dart:78)
#9      TypedDirectoryFileSystem.readAsset.<anonymous closure> (package:lw_file_system/src/api/typed.dart:117)
<asynchronous suspension>
#10     GeneralDirectoryFileSystem.fetchAsset (package:lw_file_system/src/api/base/directory.dart:25)
<asynchronous suspension>
#11     Stream.last.<anonymous closure> (dart:async/stream.dart:1607)
<asynchronous suspension>
#12     _ProjectPageState._load (package:butterfly/views/main.dart:210)
<asynchronous suspension>

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lengerke lengerke added the bug Something isn't working label Nov 12, 2024
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Nov 12, 2024
@CodeDoctorDE
Copy link
Member

Hmm, looks like a duplicate of #746 but I really don't know how to reproduce it.
Looks like a bug inside the zip library that I use. I'm always happy for contributions or reproducible steps that I can test.

@CodeDoctorDE
Copy link
Member

Did you have used any "non-ascii" names? Maybe this could be the problem: brendan-duncan/archive#354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📕 Todo
Development

No branches or pull requests

2 participants