Skip to content
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

Bug: target-generation script is having issues #102

Closed
mmocny opened this issue May 4, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@mmocny
Copy link
Collaborator

commented May 4, 2019

$ node target-generation/generator.js --files=/Users/mmocny/Downloads/life-before-google.jpeg
TypeError: global.Module._processImage is not a function
    at PlanarTargetIndexer.processImageFrame (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-utility.js:60:19)
    at srcFiles.map (/Users/mmocny/dev/perception-toolkit/target-generation/generator.js:100:17)
    at Array.map (<anonymous>)
    at Object.onRuntimeInitialized (/Users/mmocny/dev/perception-toolkit/target-generation/generator.js:97:30)
    at doRun (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:318206)
    at run (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:318502)
    at runCaller (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:317796)
    at removeRunDependency (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:17773)
    at receiveInstance (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:19068)
    at receiveInstantiatedSource (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:19542)
TypeError: global.Module._processImage is not a function
    at PlanarTargetIndexer.processImageFrame (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-utility.js:60:19)
    at srcFiles.map (/Users/mmocny/dev/perception-toolkit/target-generation/generator.js:100:17)
    at Array.map (<anonymous>)
    at Object.onRuntimeInitialized (/Users/mmocny/dev/perception-toolkit/target-generation/generator.js:97:30)
    at doRun (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:318206)
    at run (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:318502)
    at runCaller (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:317796)
    at removeRunDependency (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:17773)
    at receiveInstance (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:19068)
    at receiveInstantiatedSource (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:19542)

/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26
var Module=typeof ModuleFactory!=="undefined"?ModuleFactory:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(Module["ENVIRONMENT"]){throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s
abort({}) at Error
    at jsStackTrace (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:11255)
    at stackTrace (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:11426)
    at process.abort (/Users/mmocny/dev/perception-toolkit/target-generation/planar-target-indexer-loader.js:26:319302)
    at process.emit (events.js:182:13)
    at emitPromiseRejectionWarnings (internal/process/promises.js:119:20)
    at process.internalTickCallback (internal/process/next_tick.js:78:34)

@mmocny mmocny assigned mmocny and paullewis and unassigned mmocny May 4, 2019

@mmocny

This comment has been minimized.

Copy link
Collaborator Author

commented May 4, 2019

I checked out da826db and it works, so something broke in 1801dbe.

@mmocny

This comment has been minimized.

Copy link
Collaborator Author

commented May 4, 2019

So indeed, _processImage fn is no longer in that large blob of JS. Has it been renamed?

@mmocny mmocny closed this May 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.