Code Monkey home page Code Monkey logo

Comments (14)

esimov avatar esimov commented on May 22, 2024

Please specify the Go version.

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

go version 1.14 linux/amd64

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

Thanks my bad didnt check the wasm readme section , downgraded to 13.5 and sample worked fine . Demo has issues below . Does it need exact 13 version ?

Uncaught Error: Go program has already exited
at global.Go._resume (wasm_exec.js:484)
at wasm_exec.js:497

from pigo.

esimov avatar esimov commented on May 22, 2024

I've checked the issue and looks like that starting from v1.14 the wasm_exec.js file has changed leading to incompatibility issues. So I modified the Makefile to copy the wasm_exec.js file directly from GOROOT without including into the project. Normally it should resolve the problem. Please check it and let me know if it's working.

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

Hi Esimov,

Sorry for the delay in response, Thanks for the quick fix ,

retried and screen is blank . Its failing with same errors both in 13 and 14 versions

UI Errors ----

(index):6 GET http://localhost:5000/js/wasm_exec.js net::ERR_ABORTED 404 (Not Found)
(index):18 Uncaught ReferenceError: Go is not defined
at (index):18

errors at serve console --
[158190:158190:0320/173159.776637:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
2020/03/20 17:32:00 [::1]:52398 GET /js/wasm_exec.js
2020/03/20 17:32:00 [::1]:52398 GET /js/wasm_exec.js
[158274:1:0320/173203.901608:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173203.902274:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173203.967039:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173203.967456:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173204.031353:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173204.031916:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
2020/03/20 17:32:04 [::1]:52398 GET /favicon.ico
2020/03/20 17:32:04 [::1]:52398 GET /favicon.ico
[158274:1:0320/173204.165088:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173204.165645:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173204.218946:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158274:1:0320/173204.219549:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.736291:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.743051:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.754674:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.757728:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.759382:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.761434:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.769508:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
[158559:1:0320/173205.772506:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
Fontconfig error: Cannot load default config file: No such file: (null)
2020/03/20 17:32:46 [::1]:52398 GET /
2020/03/20 17:32:46 [::1]:52398 GET /js/wasm_exec.js


Am i missing something ?

from pigo.

esimov avatar esimov commented on May 22, 2024

How did you tried to run the wasm demo?

Can you check if wasm_exec.js file is in wasm/js directory?

Also please specify the OS platform you are trying to run on? I'm afraid you are running on a windows system and the Makefile cp command is not available. But anyway please give the details for these questions.

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

rajesh@uar wasm]$ uname -a
Linux uar 5.5.9-arch1-2 #1 SMP PREEMPT Thu, 12 Mar 2020 23:01:33 +0000 x86_64 GNU/Linux
[rajesh@uar wasm]$ git pull
Already up to date.

Its arch linux

Checked it not there . All it has the minified js . Tried creating manually its not creating

[rajesh@uar wasm]$ GOOS=js GOARCH=wasm go build -o lib.wasm wasm.go
[rajesh@uar wasm]$ ls js
stats.min.js
[rajesh@uar wasm]$

from pigo.

esimov avatar esimov commented on May 22, 2024

Did you ran the app with the make command? It should copy the needed js files on the fly.

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

Did you ran the app with the make command? It should copy the needed js files on the fly.

yes it did. Closing this issue as sample works for me , since demo is still under dev its fine .

from pigo.

esimov avatar esimov commented on May 22, 2024

Ok I see now that you were referring to the masquerade demo. I've adapted the Makefile to apply the same rules on it as on the main demo.

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

Ok I see now that you were referring to the masquerade demo. I've adapted the Makefile to apply the same rules on it as on the main demo.

Thanks !!. How do I store and used the saved facial data ? Does pigo provides any storing mechanism?

from pigo.

esimov avatar esimov commented on May 22, 2024

Thanks !!. How do I store and used the saved facial data ? Does pigo provides any storing mechanism?

You mean the detection coordinates?

from pigo.

reachrkr avatar reachrkr commented on May 22, 2024

Thanks !!. How do I store and use the saved facial data ? Does pigo provides any storing mechanism?

You mean the detection coordinates?
yes

from pigo.

esimov avatar esimov commented on May 22, 2024

The wasm port does not provide any mechanism to store the detection coordinates, but the CLI app does. It's also possible to implement into the wasm demo too if that's what you meant. I can conceive as showing the coordinates on the top left corner of the detection window. If that's what you want you can open a new ticket.

from pigo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.