Unzipping in the plugin crashing the browser
-
@Lindon Sounds like a write permission type problem - are you on macOS?
-
@d-healey hmm, this is happening on windows and macos.
-
@Lindon Does it work in a standalone build? Let's rule out the DAW.
-
@d-healey well its happening in every DAW - Reaper, Live, Waveform...
-
@Lindon When we get to the debugger stage it will be easier if the problem is happening in a standalone build.
-
@d-healey well tis looking more and more likely to be a file permissions thing...everything is working fine right up to the unzip command, how would I give the plugin permission to write to disk?
Meanwhile Im off to do this stand alone build...
-
@Lindon You shouldn't need to do anything special, as long as it's writing to a place the user has permission to write to it should work. You can use
File.hasWriteAccess()
to check before attempting the write.As a test try extracting everything to the downloads folder, if it crashes then it's probably not a permission issue.
-
@d-healey said in Unzipping in the plugin crashing the browser:
@Lindon When we get to the debugger stage it will be easier if the problem is happening in a standalone build.
Yep the stand alone is crashing when it gets to the unzipping part...
-
@Lindon Good, we have an easier task of debugging. Now try extracting everything to a folder you know has write permission.
-
@d-healey ok trying the user download folder
-
@Lindon nope crash there too....
-
@Lindon Aha so it's something more complicated. Can you share your download/extraction code with me?
-
okay well more investigation and no resolution - I'm now a bit lost about what to do....
-
@Lindon did you make a debug standalone?
-
@DanH said in Unzipping in the plugin crashing the browser:
@Lindon did you make a debug standalone?
nope _ Im not entirely clear how I go about doing that...
-
@Lindon open the autogeneratedProject in your build folder so you can open the project in Xcode, then choose to build in Running rather than Profiling.
When it's built (it should say debug after the app name) run it, then make it crash and look at the crash report. Post findings here...
-
@DanH said in Unzipping in the plugin crashing the browser:
@Lindon open the autogeneratedProject in your build folder so you can open the project in Xcode, then choose to build in Running rather than Profiling.
When it's built (it should say debug after the app name) run it, then make it crash and look at the crash report. Post findings here...
thanks well Im on windows but Im sure its similar...
-
@Lindon I guess, not so sure where the crash reports are and how readable they are...
-
@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?