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

JS crash: |ReferenceError: _dlopen is not defined|. #2

Closed
jn0 opened this issue Apr 12, 2011 · 4 comments
Closed

JS crash: |ReferenceError: _dlopen is not defined|. #2

jn0 opened this issue Apr 12, 2011 · 4 comments

Comments

@jn0
Copy link

jn0 commented Apr 12, 2011

The code: import os; print os.fork.__doc__ leads to:
JS crash: |ReferenceError: _dlopen is not defined|. Please let us know about this problem!

@jn0
Copy link
Author

jn0 commented Apr 12, 2011

@kzigadlo
Copy link

I've noticed that this error no longer appears in the python demo, but I was messing around with the OPENjpeg demo (http://syntensity.com/static/openjpeg.html), and I got a similar issue when I tried to add some options to the command line string. Here is the modification:

try {
callMain(['-i', 'image.j2k', '-o', 'image.raw', '-l','3']);
} catch(e) {
alert(e.name + ": " + e.message);
}

instead of callMain(['-i', 'image.j2k', '-o', 'image.raw']); in j2k_to_image() (line 17). The error message is nearly identical:

 Reference Error: ___01__isoc99sscanf_ is not defined

Seems like a library import issue, but OPENjpeg imports the correct library, <stdio.h>. I tracked the function down in openjpeg.cc.js, and it is only used when either the '-l' or '-r' options are specified, which is why the code works in all other cases.

@max99x
Copy link
Contributor

max99x commented Jun 30, 2011

These are basically parts of the standard C library that are not yet implemented or not linked correctly to their implementations. dlopen() was recently implemented. ___01__isoc99sscanf_ should probably be linked to sscanf.

@kripken
Copy link
Member

kripken commented Jul 12, 2012

This should no longer be an issue since we moved to bundled headers (which avoid weirdness like ___01__isoc99sscanf_), but would require a rebuild of course so the online python demo might still not work. If you rebuild and it still fails please comment.

@kripken kripken closed this as completed Jul 12, 2012
Becavalier added a commit to Becavalier/emscripten that referenced this issue May 29, 2018
# This is the 1st commit message:
Complete 'TODO: use TextDecoder'

# This is the commit message emscripten-core#2:

Fix format.

# This is the commit message emscripten-core#3:

Fix ci.
VirtualTim referenced this issue in VirtualTim/emscripten Mar 21, 2019
ids1024 pushed a commit to ids1024/emscripten that referenced this issue Apr 28, 2019
…-start-func

Single __browsix_start function
jaikanthjay46 added a commit to jaikanthjay46/emscripten that referenced this issue Nov 3, 2019
jaikanthjay46 added a commit to jaikanthjay46/emscripten that referenced this issue Nov 4, 2019
changes based on review

removed debug statments

improve performance

improve performance

improve performance

Added test

Added test emscripten-core#2

only one engine

removed file
Tandaradei added a commit to Tandaradei/emscripten that referenced this issue May 5, 2020
kainino0x added a commit that referenced this issue May 15, 2020
* Updated WebGPU

* Updated AUTHORS

* Updated WebGPU

* Updated AUTHORS

* Fixed review issues

- Changed 'const * nextInChain' to 'chain' for chained descriptors
- Removed unnecessary structs/enums for web
- Changed wgpuDeviceGetDefaultQueue so it returns the same queue
     when called multiple times with the same device
- Changed makeCheckDescriptor to also work with 'chain' member (hacky)

* Fixed review #2 issues

* Updated shader module creation

* Fixed struct_info.json

* Shader module descriptor chaining

* Apply suggestions from code review

* Adapt to Dawn webgpu.h

* Remove some unused and deprecated bits

Co-authored-by: Kai Ninomiya <kainino@chromium.org>
Co-authored-by: Hugo Amiard <hugo.amiard@laposte.net>
Honry pushed a commit to Honry/emscripten that referenced this issue Feb 14, 2022
tlively pushed a commit to tlively/emscripten that referenced this issue Mar 23, 2022
…access-folder

Restrict PThreadFS to persistent to /filesystemaccess folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants