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

[Meteor 3 Alpha] MINISAT-out: Cannot enlarge memory arrays #12902

Open
OlesZadorozhnyy opened this issue Nov 27, 2023 · 9 comments
Open

[Meteor 3 Alpha] MINISAT-out: Cannot enlarge memory arrays #12902

OlesZadorozhnyy opened this issue Nov 27, 2023 · 9 comments
Labels
needs-investigation needs proper investigation needs-reproduction We can't reproduce so it's blocked
Milestone

Comments

@OlesZadorozhnyy
Copy link

Hi,
After trying to install Alpha version of Meteor 3 it raises an error
meteor update --release 3.0-alpha.19 (other alpha versions as well

MINISAT-out: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.
MINISAT-err: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.
abort() at Error                              
    at jsStackTrace (packages/logic-solver.js:21:18626)
    at stackTrace (packages/logic-solver.js:21:18809)
    at abort (packages/logic-solver.js:51:28956)
    at enlargeMemory (packages/logic-solver.js:21:19142)
    at Function.dynamicAlloc [as alloc] (packages/logic-solver.js:21:7927)
    at _sbrk (packages/logic-solver.js:21:58803)
    at Sd (packages/logic-solver.js:25:98389)
    at Ud (packages/logic-solver.js:25:109800)
    at gc (packages/logic-solver.js:25:41378)
    at pc (packages/logic-solver.js:25:46259)
    at _b (packages/logic-solver.js:25:31709)
    at $b (packages/logic-solver.js:25:35130)
    at Bc (packages/logic-solver.js:25:54870)
    at hd (packages/logic-solver.js:25:84479)
    at MiniSat.solveAssuming (packages/logic-solver.js:156:18)
    at Logic.Solver.solve (packages/logic-solver.js:1680:33)
    at Logic.Solver.solveAssuming (packages/logic-solver.js:1713:21)
    at minMaxWS (packages/logic-solver.js:1999:32)
    at packages/constraint-solver.js:1381:22
    at CS.Solver.minimize (packages/constraint-solver.js:1365:3)
    at CS.Solver.minimize (packages/constraint-solver.js:1359:5)
    at CS.Solver._getAnswer (packages/constraint-solver.js:1749:3)
    at Object.Logic.disablingAssertions (packages/logic-solver.js:389:12)
    at Function.CS.PackagesResolver._resolveWithInput (packages/constraint-solver.js:2333:10)
    at CS.PackagesResolver.resolve (packages/constraint-solver.js:2294:14)
    at /tools/project-context.js:668:26
    at /tools/project-context.js:664:11
    at Object.enterJob (/tools/utils/buildmessage.js:387:12)
    at /tools/packaging/catalog/catalog.js:100:5
    at Object.capture (/tools/utils/buildmessage.js:282:5)
    at Object.catalog.runAndRetryWithRefreshIfHelpful (/tools/packaging/catalog/catalog.js:99:18)
    at ProjectContext._resolveConstraints (/tools/project-context.js:635:5)
    at /tools/project-context.js:401:9
    at Object.enterJob (/tools/utils/buildmessage.js:387:12)
    at /tools/cli/commands-packages.js:1746:5
    at Object.capture (/tools/utils/buildmessage.js:282:5)
    at Object.main.captureAndExit (/tools/cli/main.js:275:16)
    at maybeUpdateRelease (/tools/cli/commands-packages.js:1745:3)
    at Command.func (/tools/cli/commands-packages.js:1819:29)
    at /tools/cli/main.js:1527:1

There is already conversation in forum - https://forums.meteor.com/t/trouble-updating-to-3-0-alpha-17-minisat/60728
But no solution provided. Blocker to test new version Meteor.
Please, do you have a workaround for this?

@Grubba27
Copy link
Contributor

I have not yet gotten this error while testing. Do you have any reproduction? (can be github, code sample). We are testing in some projects but have not gotten this one yet.

Also, thanks for the forum link. We can track there as well.

cc @denihs

@Grubba27 Grubba27 added needs-reproduction We can't reproduce so it's blocked needs-investigation needs proper investigation labels Nov 28, 2023
@StorytellerCZ StorytellerCZ added this to the Release 3.0 milestone Nov 28, 2023
@dallman2
Copy link

I have a theory. I was getting this exact same error, but it went away when I removed the explicit version specifier from the package, ie accounts-password@2.0.3 became accounts-password.

@dokithonon
Copy link

I have also the same problem. Removing the version specifier on accounts-password was not helpful for me.
https://forums.meteor.com/t/trouble-updating-to-3-0-alpha-17-minisat/60728/4

@dallman2
Copy link

Do you have any versions specified for any packages?

@dokithonon
Copy link

I am removing them one by one and then I do
meteor update --release 3.0-alpha.19
But until now no success

@dallman2
Copy link

Try with no packages, then re add them one by one without version numbers

@bratelefant
Copy link

Got a repo ready here with a minimal app and a packages file that causes this issue in my dev env.

https://github.com/bratelefant/meteor-beta3-bug

@bratelefant
Copy link

Ok, finally got my meteor app to 3.0 beta! :) Followed the path suggested by @dallman2, removed a bunch of packages an readded them one-by-one, success even without specifying a version number. Anyway, imho the issue itself should be left open to smoothen the upgrade process.

@dallman2
Copy link

I agree with @bratelefant on this. The solution may not be to specifically expand the memory pool available to the dependency resolver, but some sort of migration tool should be provided to automate this process. Or maybe, the package manager could be made the work with multiple versions of the same package (like npm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation needs proper investigation needs-reproduction We can't reproduce so it's blocked
Projects
None yet
Development

No branches or pull requests

6 participants