Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

FIXED: Win 2019.16600 c++ chop getInputChop

Report bugs so we can squash them!

FIXED: Win 2019.16600 c++ chop getInputChop

Postby DavidBraun » Wed Aug 14, 2019 6:45 pm

I'm creating a custom operator with two inputs. I'm testing it as a custom operator, NOT a c++ chop.

If I wire only one connection into its second input, it crashes on "inputs->getInputCHOP(0);"
In this case, isn't getInputCHOP(0) supposed to return nullptr, and I should therefore try to do getInputCHOP(1)?

Wrapping it in a try/catch doesn't prevent the error. Thanks for any advice/best practices.
Attachments
getinputchop.png
getinputchop.png (22.49 KiB) Viewed 522 times
DavidBraun
 
Posts: 348
Joined: Wed Feb 25, 2015 1:35 pm
Location: Chicago

Re: Win 2019.16600 c++ chop getInputChop

Postby ben » Fri Aug 30, 2019 3:18 pm

Thanks, looking at it.
User avatar
ben
Staff
 
Posts: 2599
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Win 2019.16600 c++ chop getInputChop

Postby malcolm » Tue Sep 10, 2019 1:39 pm

I'm unable to reproduce this issue in both 16600 and the latest build. Any extra info you can give or can you share your .toe file and source?
User avatar
malcolm
Staff
 
Posts: 4427
Joined: Tue Nov 13, 2007 1:11 am

Re: Win 2019.16600 c++ chop getInputChop

Postby DavidBraun » Tue Sep 10, 2019 2:22 pm

Yes here's the line of code that can help debug.
https://github.com/DBraun/PhaserCHOP/bl ... P.cpp#L199

I hope that if you hit F5 to build this solution (https://github.com/DBraun/PhaserCHOP/bl ... erCHOP.sln)
it'll put a dll in the Plugins folder. If F5 also opens TouchDesigner with the debugger, then you can create the custom operator from the op-create menu. If you then wire anything into the second or third input it'll crash. I'm hoping that getInputCHOP(0) will just return nullpointer, but it seems to crash. I'm testing with 18580 now.
DavidBraun
 
Posts: 348
Joined: Wed Feb 25, 2015 1:35 pm
Location: Chicago

Re: Win 2019.16600 c++ chop getInputChop

Postby malcolm » Tue Sep 10, 2019 3:32 pm

Thanks for the sample, this crash will be fixed in the next build we post.
User avatar
malcolm
Staff
 
Posts: 4427
Joined: Tue Nov 13, 2007 1:11 am

Re: FIXED: Win 2019.16600 c++ chop getInputChop

Postby DavidBraun » Tue Sep 10, 2019 3:38 pm

Woohoo thank you.
DavidBraun
 
Posts: 348
Joined: Wed Feb 25, 2015 1:35 pm
Location: Chicago


Return to Bugs

Who is online

Users browsing this forum: No registered users and 13 guests