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

Nupack error with subsequent pknot refold #786

Open
luxaritas opened this issue Jul 19, 2024 · 0 comments
Open

Nupack error with subsequent pknot refold #786

luxaritas opened this issue Jul 19, 2024 · 0 comments
Labels
priority: p3/standard Enhancement with nominal value or bug with nominal impact size: md type: bug Something isn't working

Comments

@luxaritas
Copy link
Member

Expected Behavior

No error/crash

Current Behavior

Error in backtrack Fg_N5, 10 22 40 56

      at Object.put_char (../node_modules/eternajs-folding-engines/engines/nupack.js:913:5)

  console.error
    FullFoldTemperature error ExitStatus {
      name: 'ExitStatus',
      message: 'Program terminated with exit(1)',
      status: 1
    }

Reproduction Steps

In puzzlemaker:

  • Reset puzzlemaker
  • Switch to nupack
  • Paste structure .((({{..((((.....)))).))).((((((...{{{....)))).........}}}..........}}.))...
  • Paste sequence AGCACGUUUCGAAAAAAUCGAUUGCACCCAGAACACGCAAAAUCUGAAAAAAAAAGCGAAACAAAAAUCGAGGUGC

In unit test:

await nupack = NuPACK.create();
// Works
nupack.foldSequence(Sequence.fromSequenceString("AGCACGUUUCGAAAAAAUCGAUUGCACCCAGAACACGCAAAAUCUGAAAAAAAAAGCGAAACAAAAAUCGAGGUGG"), null, null, true, 37);
// Crash
nupack.foldSequence(Sequence.fromSequenceString("AGCACGUUUCGAAAAAAUCGAUUGCACCCAGAACACGCAAAAUCUGAAAAAAAAAGCGAAACAAAAAUCGAGGUGC"), null, null, true, 37);

Note that if the problem sequence is the first fold to happen when the engine is loaded, all is fine. This only occurs on subsequent folds. I'm guessing there's some nupack global not being reset properly or memory corruption or something.

Environment

No response

Other information

https://forum.eternagame.org/t/error-on-mutation-in-pseudoknot-puzzle/4697/7

@luxaritas luxaritas added type: bug Something isn't working pending triage labels Jul 19, 2024
@luxaritas luxaritas moved this to Todo in Roadmap Jul 19, 2024
@luxaritas luxaritas added priority: p3/standard Enhancement with nominal value or bug with nominal impact size: md and removed pending triage labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3/standard Enhancement with nominal value or bug with nominal impact size: md type: bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant