Skip to content

FormatException: Invalid Zip Signature #746

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

Closed
1 task done
lorena130 opened this issue Oct 4, 2024 · 4 comments
Closed
1 task done

FormatException: Invalid Zip Signature #746

lorena130 opened this issue Oct 4, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@lorena130
Copy link

What happened?

I can‘t open a file I edited yesterday. And then it was just working fine.
I get this error:
FormatException: Invalid Zip Signature
#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:47)
#7 _decode (package:butterfly/api/file_system.dart:16)
#8 TypedDirectoryFileSystem._toTypedAsset (package:lw_file_system/src/api/typed.dart:78)
#9 TypedDirectoryFileSystem.readAsset. (package:lw_file_system/src/api/typed.dart:117)

#10 GeneralDirectoryFileSystem.fetchAsset (package:lw_file_system/src/api/base/directory.dart:25)

#11 Stream.last. (dart:async/stream.dart:1607)

#12 _ProjectPageState._load (package:butterfly/views/main.dart:210)

Version

2.2.0

Platform

Windows

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:47)
#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
@lorena130 lorena130 added the bug Something isn't working label Oct 4, 2024
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Oct 4, 2024
@CodeDoctorDE
Copy link
Member

Hmm looks like the file got corrupted. Can you try exporting the data and sending it? (You can use the direct message on discord or matrix if you want to send it privately)

@lorena130
Copy link
Author

Mathe Schul_bung.zip
I hope this isthe I hope this is the right Format.

@CodeDoctorDE
Copy link
Member

hmm looks really like an archive corruption. I don't really know how I could fix this...
The page file couldn't be read here...

@CodeDoctorDE
Copy link
Member

i cannot find any problems. seems like the app is crashed or was in an invalid state. feel free to find a way that i can reproduce it, for now i don't see any problems on my side

@CodeDoctorDE CodeDoctorDE closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
@github-project-automation github-project-automation bot moved this from 📕 Todo to ✅ Done in Butterfly Oct 17, 2024
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
Archived in project
Development

No branches or pull requests

2 participants