Skip to content

Commit

Permalink
Fix libc++abi.dylib: Pure virtual function called!
Browse files Browse the repository at this point in the history
On MacOS, we may end up with the following runtime error.
OpenEXR/dwaLookups.h
libc++abi.dylib: Pure virtual function called!

Fix dwaLookup generation which is due to calling the base function from constructor which calls the overriden method run, which causes the base class to call the pure virtual method only, which does not do anything. outfile ended up not being generated.
  • Loading branch information
dgmzc authored Mar 10, 2020
1 parent 6780843 commit 1b6c031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/dwaLookups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ namespace {
_worker(worker),
_output(output)
{
start();
}

virtual ~Runner()
Expand Down Expand Up @@ -512,6 +511,7 @@ generateLutHeader()
std::vector<LutHeaderWorker::Runner*> runners;
for (size_t i=0; i<workers.size(); ++i) {
runners.push_back( new LutHeaderWorker::Runner(*workers[i], (i==0)) );
runners.back()->start();
}

for (size_t i=0; i<workers.size(); ++i) {
Expand Down

0 comments on commit 1b6c031

Please sign in to comment.