Git Product home page Git Product logo

Comments (10)

ierye avatar ierye commented on August 19, 2024 2

@jcfr I'm sure the latest version dcmjs.js doesn't work on client side, Could you please check it? I try to git reset --hard b06a4b7d3a3237b7ccee69ee64fa348a52d4bb7a, and then build it, the build dcmjs.js work well on client side.

from dcmjs.

jcfr avatar jcfr commented on August 19, 2024

from dcmjs.

ierye avatar ierye commented on August 19, 2024

We haven't updated the file on dcmjs.org. I suggest you use the one you generated locally.

On Sat, Dec 22, 2018, 4:13 PM ierye @.*** wrote: I download dcmjs project and run the below command then get the dcmjs.js file. dockcross-browser-asmjs cmake -Bdcmjs-build -H. -GNinja dockcross-browser-asmjs ninja -Cdcmjs-build https://github.com/commontk/dcmjs#building I run command node ./dcmjs.js dcmdump /working/test.dcm, it works very well. But when I replace the same file with the dcmjs.js file in dcmjs.org website project. It seems doesn't work on client side. Is there any wrong what I do or is it a bug? I tried it on macOS High Sierra 10.13.6 and Ubuntu 16.04 and Ubuntu 18.04, It has the same problem. When I test dump dicom, Chrome DevTools Terminal console warning and error information on the below: Assertion failed: undefined exception thrown: abort("Assertion failed: undefined") at Error abort @ dcmjs.js:23 assert @ dcmjs.js:1 mount @ dcmjs.js:1 mount @ dcmjs.js:1 (anonymous) @ dcmjs.js:1 _emscripten_asm_const_i @ dcmjs.js:1 Yc @ dcmjs.js:8 (anonymous) @ dcmjs.js:23 callMain @ dcmjs.js:23 dcmjs.utils.execute @ utils.js:97 dcmdump @ dump.js:24 (anonymous) @ utils.js:110 load (async) dcmjs.utils.readFile @ utils.js:109 readSelectedFiles @ dump.js:38 handleFileDrop @ dump.js:67 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#26>, or mute the thread https://github.com/notifications/unsubscribe-auth/AANXo8519GrvLMvGPB-TV5CxwDBBSK1Nks5u7kwYgaJpZM4ZfgX5 .

Thank you very much for your reply. I mean that the dcmjs.js file I generated doesn't work on client side when I import it into HTML file, but on the teminal it works very well with the node commands. Is it a bug or I'm wrong?

from dcmjs.

ierye avatar ierye commented on August 19, 2024

Error Msg

from dcmjs.

cewee avatar cewee commented on August 19, 2024

can confirm that the self compiled version does not work and produces error mentioned above.
using the version from https://github.com/commontk/dcmjs.org/tree/gh-pages/javascripts/libs works though.

from dcmjs.

empeywong avatar empeywong commented on August 19, 2024

I have the same problem. Has anyone solved it?

from dcmjs.

ierye avatar ierye commented on August 19, 2024

I have the same problem. Has anyone solved it?

try to git reset --hard b06a4b7, and then build it successfully.

from dcmjs.

jcfr avatar jcfr commented on August 19, 2024

To summarize:

  • building dcmjs.js from current master (67f8ab2) works as expected
  • running dcmdump from command line using node works as expected
  • updating https://github.com/commontk/dcmjs.org using this new version fails with the error reported above
  • reverting update to dcmjs.cpp.in introduced in aca8139 allows to fix the issue

from dcmjs.

jcfr avatar jcfr commented on August 19, 2024

Closing. Fixed in 9fa8a9d

from dcmjs.

jcfr avatar jcfr commented on August 19, 2024

Version deployed on http://dcmjs.org has been updated as well. See commontk/dcmjs.org@e490706

from dcmjs.

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.