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

Error in reaper_sws64.dll when loading binary project files #354

Closed
Jeff0S opened this Issue Jul 8, 2014 · 6 comments

Comments

Projects
None yet
1 participant
@Jeff0S
Member

Jeff0S commented Jul 8, 2014

From Port.R...@gmail.com on August 22, 2011 00:34:12

Dear SWS developers,

I started developing my own project loading plugin for Reaper. As a template I took the m3u example from the SDK. I removed all the m3u relevant code from the LoadProject() method, which left me with the basic code creating an empty Reaper project. I compiled the plugin with VS2010 and ran it in Reaper 4.01. Using an ASCII file as a dummy project file, everything worked as expected.

Then I tried to load a dummy binary file. Reaper crashed with an unhandled exception and told me that the crash happened inside reaper_sws64.dll. I removed this DLL from Reaper's PlugIn directory and loading the binary file worked perfectly.

Since I'm not an expert on the SDK, I can only guess: Does the SWS extension have a kind of callback/hook registered to the LoadProject() method and tries to access/open the project file ? Does it assume that project files are non-binary ?

I'm using the latest release of the SWS extension (v2.1.0, August 9, 2011), Reaper 4.01, Win7 64bit.

Original issue: http://code.google.com/p/sws-extension/issues/detail?id=354

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From swstim on August 21, 2011 15:46:35

Hey there. Yeah, there's hooks for LoadProject in SWS, sounds like I'm choking on some binary data. There's some checks for bad project data but apparently not enough.

A project load extension needs to convert whatever format you're trying to load into reaper RPP format. If you haven't gotten that far I'm not too surprised you're getting crashing. I can look at the crash from my end if you want to send me what you have so far (DLL + binary)

Tim

Status: Investigating
Owner: swstim

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From Port.R...@gmail.com on August 21, 2011 16:20:44

Hi Tim,

thanks for the quick reply.

I've attached my DLL, binary test file and the source code. I just wanted to try to get some audio data from the Edius 6 editing software via AAF into Reaper. After having written the code which extracts the info from the AAF file, I decided to work on the Reaper side of the chain. So far I have only written a Reaper plugin which does nothing (see Edius6Reader.cpp). But even with this empty plugin (reaper_edius6.dll) I encounter a crash when I try to load the file 'Test5.aaf'. Or do I have a mistake in my plugin ?

Best regards,
Andreas

Attachment: Edius6Reader.cpp reaper_edius6.dll Test5.aaf

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From swstim on August 21, 2011 22:07:22

Thanks Andreas, this was incredibly useful. I've confirmed there's a bug in SWS, I've fixed it and it will be released soon as 2.1.0 #5. I'll post back here when it's up.

In the meantime you can just delete reaper_sws64.dll.

Tim

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From Port.R...@gmail.com on August 21, 2011 23:53:07

Thank you so much for the quick fix.

Andreas

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From swstim on August 22, 2011 22:29:40

v2.1.0 #5 is up here https://code.google.com/p/sws-extension/downloads/list Good luck with your project import plugin!

Status: Fixed

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From Port.R...@gmail.com on August 23, 2011 02:05:20

It works perfectly. Thank you again for your quick help.

@Jeff0S Jeff0S closed this Jul 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment