LinwoodDev / Butterfly

🎨 Powerful, minimalistic, cross-platform, opensource note-taking app
https://butterfly.linwood.dev
GNU Affero General Public License v3.0
1.07k stars 77 forks source link

FormatException: Invalid Zip Signature #746

Closed lorena130 closed 1 month ago

lorena130 commented 1 month ago

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 ```shell #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) ``` ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
CodeDoctorDE commented 1 month ago

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 commented 1 month ago

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

CodeDoctorDE commented 1 month ago

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 commented 1 month ago

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