Coder Social home page Coder Social logo

Propage h5wasm errors to viewer about h5web HOT 5 CLOSED

axelboc avatar axelboc commented on June 5, 2024
Propage h5wasm errors to viewer

from h5web.

Comments (5)

bmaranville avatar bmaranville commented on June 5, 2024 1

Opt-in to throwing error handler is available new release https://github.com/usnistgov/h5wasm/releases/tag/v0.7.2

from h5web.

axelboc avatar axelboc commented on June 5, 2024

Apparently, exception handling is disabled in Emscripten by default. So it might simply be a matter of compiling h5wasm with flag -fwasm-exceptions.

from h5web.

bmaranville avatar bmaranville commented on June 5, 2024

By default, the HDF5 library error handler function prints to the error stream for every error. This is what is ending up in the users' console. That error handler function can be overridden, but it would require writing a new error handler function in C, and setting that as the default. There don't seem to be a lot of examples of custom error handler functions.

It's possible that the C++ API for for HDF5 has exception handling in it already - but migrating to that API from the C API would also be some work.

from h5web.

bmaranville avatar bmaranville commented on June 5, 2024

There is a PR brewing for raising exceptions in h5wasm here: usnistgov/h5wasm#68
I still have to write some tests, but it seems to work as expected.

from h5web.

axelboc avatar axelboc commented on June 5, 2024

Fantastic!! Thanks for looking into this 💯

from h5web.

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.