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

Project crashed when createZipFile #694

Open
daiwj5 opened this issue Feb 23, 2024 · 2 comments
Open

Project crashed when createZipFile #694

daiwj5 opened this issue Feb 23, 2024 · 2 comments

Comments

@daiwj5
Copy link

daiwj5 commented Feb 23, 2024

I‘m using SSZipArchive in my project, and my project is written by swift. There is my code below:
SSZipArchive.createZipFile(atPath: zipPath, withFilesAtPaths: [destinedPath])

and i got crash info:

Thread 1: EXC_BAD_ACCESS (code=1, address=0x14000006b9001be8)

which was triggered by createZipFile function, and finally stop at:

Xnip2024-02-26_10-37-30

I have no idea about this, is there anyone met this situation before?

@daiwj5 daiwj5 changed the title I Project crashed when createZipFile Feb 23, 2024
@810152690
Copy link

810152690 commented Mar 6, 2024

我们遇到了,排查下来是有其他的三方库也定义了minizip里面函数(类似zipOpen2这些函数),但是代码走到了其他库代码,从而引起crash

@daiwj5
Copy link
Author

daiwj5 commented Mar 12, 2024

我们遇到了,排查下来是有其他的三方库也定义了minizip里面函数(类似zipOpen2这些函数),但是代码走到了其他库代码,从而引起crash

感谢答复,我们这也有类似zipOpen2这样的函数,不过堆栈显示的是当前库SSZipArchive的调用。另外我本地试了将SSZipArchive版本降到2.1.5就可以正常压缩创建zip文件,不过仍然想知道对SSZipArchive的最新库(或者比较新的那几个版本)是否有对应的更好的解决办法。此issue先保持open,后面再看下有没有其他的解决办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants