Unzipping in the plugin crashing the browser
-
@DanH said in Unzipping in the plugin crashing the browser:
@Lindon I guess, not so sure where the crash reports are and how readable they are...
yeah me neither - I'v opened projucer loaded the project into Visual Studio selected
Debug - started it - the app has opened, I've run it and its crashed (eventually) but I have no idea what im looking at now...
-
@Lindon trying it again and now nothing even starts...can anyone give me a clue how to start debugging this with Visual Studio?
-
@Lindon what happens if you make it crash while it's actually open in VS? It shouldn't crash but might point you in the right direction?
-
@DanH it wont even open in VS!!!
I open projucer File>Save Project and open in IDE
VS opens, I select Debug>Start Debugging(F5)
I get thisL:
No sign of the app actually starting..
-
@Lindon ok I stepped past all these breakpoints got it to loaad and run and got this when it crashes:
some sort of read access violation???
-
@Lindon I’m in the pub (suggest you do the same
). But what size is the file you’re trying to unzip?
-
@DanH just back from the pub --- 1.4Gb...
-
-
@Lindon Follow the call stack
Click the line that mentions the extractZipFile function and see what's going on.
-
@d-healey ok so doing that shows me this:
So there's a problem with the thread, and I have this in my pre-processors:
Would that make any difference?
-
@Christoph-Hart --- -you will want to see this answer I think:
..aaaaaand the answer is yes. If I set all the preprocessor commands I need to use the unlocker to off(zero) then the unzip code works fine.
So I need the unlocker and I need the unzipper - How do I proceed?
-
This post is deleted! -
@Lindon I actually use a separate standalone app as part of the installation process. It downloads the samples, unzips and installs them, creates the link file, and can handle the license activation too. So when the user opens the actual plugin for the first time they don't have anything to do, it works right off the bat.
Potentially a way around this.
-
@DanH Thanks but thats not possible with the distribution partner we are using.
-
@Lindon will users have to download the zip file when they open the plugin for the first time or will it already have been downloaded?
-
@DanH the plug-in does everything...
-
@Lindon the crash happens because you‘re extracting the zip archive in the message thread. How and where are you calling the method?
-
@Christoph-Hart said in Unzipping in the plugin crashing the browser:
@Lindon the crash happens because you‘re extracting the zip archive in the message thread. How and where are you calling the method?
Okay well I wasn't aware I was doing that, all I am doing is calling the unzip function from a button callback.
Here's a simple (thanks to Dave) example of what is happening. You just need to have a folder called testZips on the desktop with at least one zip file in it.
Load this snippet into HISE and it runs fine, compile it and it runs fine....
Now, put this in your extra definitions in preferences:
USE_COPY_PROTECTION=1
USE_SCRIPT_COPY_PROTECTION=1
HISE_DEACTIVATE_OVERLAY=1Run it in Hise and it all works fine, compile it and run it ....crash.
HiseSnippet 1137.3ocsV80iaTCD2ataq5tkhnR7x8lIOsABQIkRAQEP3xcAEwcWiZJmPUHU4rqSh640Nx16cW.NI9pvq7oiuAkY1cSxldoUnHZdXUl+7yyOOd7LdnQGysVsg3E77Ey4DuOvezBkaVuYLghL3HhmuuqcGxgKlyrVdBwyaueDM4ErOI+2+78GxjLULesJB4bsHlehHU3VqcX2eRHk8YI7mKRq38i5NHVq5ok5LfF642lLmEeAaJ+LF5VMeh2cNNQ3zlQNliaId6enNYwnY5qTE9etvJFK4nPGxHXgJT2WKSPFiZI8lIjICWtcsDXUFtdyuWwl+i8OUjHVoecR3ixMPWinZ9vq1lzauMnWmpzqcE5sEJ4UgR6WPoG3OJ1Hl6VaA4y87GnbbyDFj1qRkBeI09q876oAOTtVorK38MfvJDQOtc6lT3SimDBYdqidIyPOgMlK6P+V5RfS4td5z4ZEHDUuvbc.RXweaY4fZG+ZW8l0eFmkrfd0LthtPmQYFdqV+pJ2agRJTb5jLUrSnUzLEd79BwbaTiveOLPpiYRZhv.gtuPxGsv53oXzyO+LQUTdD2dgSOuQN2vrGZCIg0gKHFufv.wDZzmHrGwm.ANIBV5FMBCBLbWlQAdDDrLp+F.ZyvBPxWTKBqIs9m1B7odS5DlzxwkGvNQanQWSEpb7vRC6hfqaAYBCKFIRNqxw6LY7lq16Q5wuBYB5e.jlsZIu0bi.yuHlugVm9YTvoV8xLFHsiJAM0o+AEKtxrq8nPNmQA29.oTyzUZZ.qxtEBzXwQYPvM32aBBu41GqZ0gYNmV0AKeLZYT7xZmlP4kLimeXiGMkRUOPBCpVU7jvaf5lsWFVFj5MvcaYn5wjxw.5n2jCvJUgemoc7mpJJ5fc.8MMMYxVsUtVRnRbalwdYl2EvHUV5XtoZV.cDtfuYWC+2dWipM0hKRKUbTqFnDtmNmqdas5Hk4R3e+7fiXNF1poTG32btwIPJ3cD+RnucQim.+xaaPK3UG.PqXWt0OrrsTQBmHRP.kYex0qZt2U2cwJg+77tB6o5TXcXFPsWMK6R9.0PCGNLw1WjJA5dEA59kAJuhNON20un5tRXHeWkvzk28JQhaFjR8ZWiPv5ehWr+15QEVbmnRwe6RU8gqxZyhQ5LUBlxZ8JaEu5bafOLjLiKlNygw8uAdjlIcB7RBtSYRwTUZ9FKvGRpmvm3HimtbpWvcdM7CYOx10ZO3fCdcwvyaMX.FIoSxjL2lyovgykFfxvMFNfC.TVgaQ0g2+uM75+JEef+PgKd114XssvQnX88AGKG4ee+imLgG6VSv886+KueluSdlNyITSOk4LBn50+rrTn.yDygnqTbI1FvqFdgsPtMJiYfQbURt.VlTZrCJ6UZryRijTVrQ+x3hlO3iJtatFfSp72SE3eJJS6PxaHgOvqcq1jT38MuLNF29eNzCY6Xd3Nf4K1ALOZGv7k6.lGuCX9pc.yW+NwfOs7Gxb5zhqCfhgGm2k1y6XECprxqBI+KF7UzW
-
@Lindon does it crash if you defer the script?
-
Synth.deferCallbacks(true);
-- still crashes.
-- thank God because it would have been a NIGHTMARE to have to revisit years of work to assess if it would still work in this case...