Code Monkey home page Code Monkey logo

psmith's Issues

Error on large search : "Cannot enlarge memory arrays"

I've just tried to search an increasingly large phoneme inventory, and it seems that searching more than 7 phonemes causes an error. One search string that reliably causes the error is this:

/t/ /d/ and /p/ and /b/ and /k/ and /g/ and /m/ and /o/

The full error message is as follows:

abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at jsStackTrace@https://defseg.io/psmith/sqljs/sql.js:3:13718 stackTrace@https://defseg.io/psmith/sqljs/sql.js:3:13889 abort@https://defseg.io/psmith/sqljs/sql.js:20:8469 abortOnCannotGrowMemory@https://defseg.io/psmith/sqljs/sql.js:3:14756 enlargeMemory@https://defseg.io/psmith/sqljs/sql.js:3:15210 Wt@https://defseg.io/psmith/sqljs/sql.js:12:1 bs@https://defseg.io/psmith/sqljs/sql.js:12:1 Gf@https://defseg.io/psmith/sqljs/sql.js:7:1 de@https://defseg.io/psmith/sqljs/sql.js:7:1 Wd@https://defseg.io/psmith/sqljs/sql.js:7:1 og@https://defseg.io/psmith/sqljs/sql.js:7:1 wh@https://defseg.io/psmith/sqljs/sql.js:7:1 qo@https://defseg.io/psmith/sqljs/sql.js:10:1 Kn@https://defseg.io/psmith/sqljs/sql.js:10:1 ri@https://defseg.io/psmith/sqljs/sql.js:13:1 qi@https://defseg.io/psmith/sqljs/sql.js:13:1 Statement.prototype.step@https://defseg.io/psmith/sqljs/sql.js:20:9992 Database.prototype.exec@https://defseg.io/psmith/sqljs/sql.js:20:15052 psherlock.search@https://defseg.io/psmith/search.js:32:18 @https://defseg.io/psmith/search_request.js:4:34 MessageBus.prototype.publish/<@https://defseg.io/psmith/messagebus.js:19:43 MessageBus.prototype.publish@https://defseg.io/psmith/messagebus.js:19:29 window.Psmith.UI/this.go_el.onclick@https://defseg.io/psmith/ui.js:14:51 If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

The message seems to change if the search is repeated, though I can't find a reliable pattern of why and how, and the error persists even with smaller searches. The only way to make it work properly again is to refresh the page.

Move to PHOIBLE 2.0 release

There's a new numbered release of PHOIBLE out, so this should use that.

Language statistics (speaker population, latitude and longitude, etc.) aren't included in this release, so that'll have to be pulled from somewhere else. (Glottolog?)

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.