marian-m12l / studio

STUdio - Story Teller Unleashed
https://marian-m12l.github.io/studio-website/
Mozilla Public License 2.0
683 stars 131 forks source link

Failed to fetch packs from library #371

Closed cauxNicolas closed 2 months ago

cauxNicolas commented 1 year ago

Describe the bug Impossible to add history.zip lunii version 2.22

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Logs Check the logs in the console for errors, if any. Join the studio-latest.log file if relevant. Also check the network tab of your browser's developer tools and look for HTTP calls in error, if any. HTTP responses may contain useful data.

malformed input off : 6, length : 1: Error 500: malformed input off : 6, length : 1 at java.base/java.lang.String.throwMalformed(String.java:1260) at java.base/java.lang.String.decodeUTF8_UTF16(String.java:1216) at java.base/java.lang.String.newStringUTF8NoRepl(String.java:749) at java.base/java.lang.System$2.newStringUTF8NoRepl(System.java:2473) at java.base/java.util.zip.ZipCoder$UTF8ZipCoder.toString(ZipCoder.java:199) at java.base/java.util.zip.ZipCoder.toString(ZipCoder.java:66) at java.base/java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:516) at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:153) at studio.core.v1.reader.archive.ArchiveStoryPackReader.readMetadata(ArchiveStoryPackReader.java:41) at studio.webui.service.LibraryService.readPackFile(LibraryService.java:436) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at studio.webui.service.LibraryService.packs(LibraryService.java:99) at studio.webui.api.LibraryController.lambda$apiRouter$1(LibraryController.java:40) at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48) at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316) at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:1623)

Desktop and environment (please complete the following information):

Additional context Add any other context about the problem here.

marian-m12l commented 2 months ago

Certainly a corrupted archive in the library.

I'm closing issues from past years. Feel free to reopen if needed.