Code Monkey home page Code Monkey logo

Comments (3)

kleisauke avatar kleisauke commented on July 30, 2024

On a somewhat tangent, LTO also causes some other test failures within wasm-vips' test suite.

Details
  1) foreign
       svgload:
     TypeError: type incompatibility when transforming from/to JS
      at wasm://wasm/00561afe:wasm-function[616]:0x7a3aa
      at gh (lib/vips-node.mjs:314:433)
      at wasm://wasm/00561afe:wasm-function[1113]:0xeafb9
      at wasm://wasm/00561afe:wasm-function[201]:0xcf95
      at rh (lib/vips-node.mjs:315:366)
      at wasm://wasm/00561afe:wasm-function[1291]:0x11847c
      at wasm://wasm/0169d79e:wasm-function[6279]:0x474c27
      at wasm://wasm/0169d79e:wasm-function[311]:0x1ca8a
      at wasm://wasm/0169d79e:wasm-function[1465]:0xfbd6f
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46ab34
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[4909]:0x31284d
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[2456]:0x1a41b9
      at gh (lib/vips-node.mjs:314:433)
      at wasm://wasm/0169d79e:wasm-function[911]:0x93e6e
      at Function.Image$svgload (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:8:10)
      at a.<computed> [as svgload] (lib/vips-node.mjs:146:259)
      at Object.svgload (test/unit/test_foreign.js:19:33)
      at fileLoader (test/unit/test_foreign.js:78:33)
      at Context.<anonymous> (test/unit/test_foreign.js:907:5)
      at process.processImmediate (node:internal/timers:476:21)

  2) histogram
       histIsmonotonic:
     vips::Error: unable to call hist_ismonotonic
source: bad seek to 2435
: no property named `precision'

      at Yc (lib/vips-node.mjs:122:45)
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46c065
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[4020]:0x25fefa
      at wasm://wasm/0169d79e:wasm-function[931]:0x94659
      at Ld.Image$histIsmonotonic [as histIsmonotonic] (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:9:10)
      at Context.<anonymous> (test/unit/test_histogram.js:35:15)
      at process.processImmediate (node:internal/timers:476:21)

  3) histogram
       case:
     vips::Error: property 
      at Yc (lib/vips-node.mjs:122:45)
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46a9bf
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[4545]:0x2dee69
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[2645]:0x1b72d4
      at Ld.Image$case [as case] (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:10:10)
      at Context.<anonymous> (test/unit/test_histogram.js:130:25)
      at process.processImmediate (node:internal/timers:476:21)

  4) morphology
       countlines:
     vips::Error: unable to call countlines
: no property named `precision'

      at Yc (lib/vips-node.mjs:122:45)
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46c065
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[4425]:0x2d4957
      at Og (lib/vips-node.mjs:317:367)
      at wasm://wasm/0169d79e:wasm-function[2411]:0x1a0d38
      at Ld.Image$countlines [as countlines] (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:10:10)
      at Context.<anonymous> (test/unit/test_morphology.js:11:23)
      at process.processImmediate (node:internal/timers:476:21)

  5) morphology
       rank:
     vips::Error: property 
      at Yc (lib/vips-node.mjs:122:45)
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46a9bf
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[1237]:0xc643b
      at wasm://wasm/0169d79e:wasm-function[2366]:0x19d9e6
      at Ld.Image$rank [as rank] (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:12:10)
      at Context.<anonymous> (test/unit/test_morphology.js:69:20)
      at process.processImmediate (node:internal/timers:476:21)

  6) resample
       mapim:
     vips::Error: property 
      at Yc (lib/vips-node.mjs:122:45)
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[6208]:0x46a9bf
      at sh (lib/vips-node.mjs:315:262)
      at wasm://wasm/0169d79e:wasm-function[3823]:0x22f06a
      at rh (lib/vips-node.mjs:315:366)
      at wasm://wasm/0169d79e:wasm-function[6417]:0x483721
      at lh (lib/vips-node.mjs:313:432)
      at wasm://wasm/0169d79e:wasm-function[2623]:0x1b4407
      at Ld.Image$mapim (eval at Ee (lib/vips-node.mjs:156:242), <anonymous>:10:10)
      at a.<computed> [as mapim] (lib/vips-node.mjs:146:259)
      at toPolar (test/unit/test_resample.js:51:18)
      at Context.<anonymous> (test/unit/test_resample.js:310:15)
      at process.processImmediate (node:internal/timers:476:21)

Disabling the support for dynamic modules at runtime or via the --disable-modules build option seems to fix that.

// Uncomment to disable dynamic modules
// dynamicLibraries: [],

wasm-vips/build.sh

Lines 79 to 82 in 1a0160a

--disable-modules)
PIC=false
MODULES=false
;;

from wasm-vips.

kleisauke avatar kleisauke commented on July 30, 2024

LTO also causes some other test failures within wasm-vips' test suite.

These test failures are no longer reproducible, first good commit is e1cc2dd according to git bisect. Unfortunately, the main issue still persists on git master (tested with commit b576489).

from wasm-vips.

kleisauke avatar kleisauke commented on July 30, 2024

Upstream issue: emscripten-core/emscripten#20414.

from wasm-vips.

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.