jasp-issues icon indicating copy to clipboard operation
jasp-issues copied to clipboard

[Bug]: This analysis terminated unexpectedly. Error in .extractErrorMessage(e): length(error) = 1 is not TRUE

Open ShunitAm opened this issue 9 months ago • 8 comments

JASP Version

0.18.3

Commit ID

No response

JASP Module

Network

What analysis are you seeing the problem on?

classical network analysis

What OS are you seeing the problem on?

Windows 11

Bug Description

Whenever i'm trying the bootstrap options- bootsrap network i get this erorr massage:

This analysis terminated unexpectedly.

Error in .extractErrorMessage(e): length(error) = 1 is not TRUE

Stack trace .networkAnalysisBootstrap(mainContainer, network, options)

.networkAnalysisComputeBootstrap(bootstrapContainer, network, options)

tryCatch({ jaspBase::.suppressGrDevice({ for (nm in names(allNetworks)) { bootstrapResult[[nm]] <- bootnet::bootnet(data = allNetworks[[nm]], nBoots = options[['bootstrapSamples']], type = options[['bootstrapType']], nCores = nCores, statistics = c('edge', 'strength', 'closeness', 'betweenness'), labels = options[['variables']]) } }) }, error = function(e) bootstrapContainer$setError(.extractErrorMessage(e)))

tryCatchList(expr, classes, parentenv, handlers)

tryCatchOne(expr, names, parentenv, handlers[[1]])

value[3]

bootstrapContainer$setError(.extractErrorMessage(e))

private$jaspObject$setError(x)

.extractErrorMessage(e)

stopifnot(length(error) = 1)

To receive assistance with this problem, please report the message above at: https://jasp-stats.org/bug-reports Screenshot 2024-05-06 114531

Expected Behaviour

It should give me the data

Steps to Reproduce

1.classical network analysis 2.added the variables 3.network plot+clustering plot 4. bootstrap options- bootstrap network- number of bootstrap- i tried 100 and 1000 ...

Log (if any)

JASP 2024-05-06 10_51_23 Desktop.log JASP 2024-05-06 10_51_23 Engine 0.log

Final Checklist

  • [X] I have included a screenshot showcasing the issue, if possible.
  • [X] I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • [X] I have accurately described the bug, and steps to reproduce it.

ShunitAm avatar May 06 '24 09:05 ShunitAm

@ShunitAm I cannot confirm this for 0.18.3 on linux (flatpak) - so this might be windows specific, but I doubt it. I cannot test on win, sorry. But someone from the team might. Can you share your data file in the mean time? I suspect it is data related

tomtomme avatar May 06 '24 09:05 tomtomme

Thank you for the quick response. hear is the data file

‫בתאריך יום ב׳, 6 במאי 2024 ב-12:53 מאת ‪Thomas Langkamp‬‏ <‪ @.***‬‏>:‬

@ShunitAm https://github.com/ShunitAm I cannot confirm this for 0.18.3 on linux (flatpak) - so this might be windows specific, but I doubt it. I cannot test on win, sorry. But someone from the team might. Can you share your data file in the mean time? I suspect it is data related

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/2704#issuecomment-2095597409, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIJUF3BQZAEUPFLMRJ2TBS3ZA5HKJAVCNFSM6AAAAABHIVBVAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVGU4TONBQHE . You are receiving this because you were mentioned.Message ID: @.***>

ShunitAm avatar May 06 '24 09:05 ShunitAm

Appending the file via mail does not work, sorry. Pleas drag and drop as described above.

tomtomme avatar May 06 '24 10:05 tomtomme

I've already sent it to- @.*** and i've sent it again now as zip file

‫בתאריך יום ב׳, 6 במאי 2024 ב-13:02 מאת ‪Thomas Langkamp‬‏ <‪ @.***‬‏>:‬

Appending the file via mail does not work, sorry. Pleas drag and drop as described above.

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/2704#issuecomment-2095612374, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIJUF3HGBYCTLV7QOC2L7QLZA5IJ3AVCNFSM6AAAAABHIVBVAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVGYYTEMZXGQ . You are receiving this because you were mentioned.Message ID: @.***>

ShunitAm avatar May 06 '24 10:05 ShunitAm

I'll forward this file to Don.

EJWagenmakers avatar May 07 '24 07:05 EJWagenmakers

@vandenman Did you have a chance to look at that file? Can you reproduce the bug on windows?

tomtomme avatar May 24 '24 10:05 tomtomme

This issue will be automatically closed in 42 days due to inactivity. Feel free to leave a comment if you believe this is still relevant.

github-actions[bot] avatar Jul 06 '24 01:07 github-actions[bot]

Hi,

I have the same problem on Windows when trying to use the bootstrapping feature when running a classical network analysis.

Is there a known fix for this? I must analyse my data by the end of the week but can't if I am unable to employ bootstrapping.

image

sitnok67155 avatar Aug 05 '24 19:08 sitnok67155

@sitnok67155 @ShunitAm

Is this still a problem with JASP 0.19?

@sitnok67155 Can you share the data file here by renaming to zip and drag and dropping it here?

tomtomme avatar Sep 02 '24 09:09 tomtomme

I gave up

‫בתאריך יום ב׳, 2 בספט׳ 2024 ב-12:06 מאת ‪Thomas Langkamp‬‏ <‪ @.***‬‏>:‬

@sitnok67155 https://github.com/sitnok67155 @ShunitAm https://github.com/ShunitAm

Is this still a problem with JASP 0.19?

@sitnok67155 https://github.com/sitnok67155 Can you share the data file here by renaming to zip and drag and dropping it here?

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/2704#issuecomment-2324213647, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIJUF3FMMOWJIR7TAMARWS3ZUQTCZAVCNFSM6AAAAABHIVBVAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGIYTGNRUG4 . You are receiving this because you were mentioned.Message ID: @.***>

ShunitAm avatar Sep 04 '24 07:09 ShunitAm

So you do not know if the error persists with 0.19? If not we will wait for @sitnok67155 or @vandenman to confirm for 0.19 or send a file.

tomtomme avatar Sep 04 '24 08:09 tomtomme

I do not

בתאריך יום ד׳, 4 בספט׳ 2024 ב-11:43 מאת Thomas Langkamp < @.***>:

So you do not know if the error persists with 0.19?

— Reply to this email directly, view it on GitHub https://github.com/jasp-stats/jasp-issues/issues/2704#issuecomment-2328266721, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIJUF3B4EF74NIED3BYIH3LZU3BZZAVCNFSM6AAAAABHIVBVAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYGI3DMNZSGE . You are receiving this because you were mentioned.Message ID: @.***>

ShunitAm avatar Sep 04 '24 10:09 ShunitAm

This seems to be a duplicate of https://github.com/jasp-stats/jasp-issues/issues/2863 and it only occurs with certain data + nonparametric or case type bootstrap. With the example from the data library everything is fine. I wil close this one, so that we can discuss all this at #2863

tomtomme avatar Sep 06 '24 08:09 tomtomme

@ShunitAm @sitnok67155

More Infos on this but from vandenman, who wrote this in https://github.com/jasp-stats/jasp-issues/issues/2088:

Thanks for reporting the issue! What goes wrong internally is that the correlation matrix is not positive definite. If you change the correlation method to Cor or the method for Missing values to Exclude listwise then the error disappears and you do get output. I'll adjust the code so you receive a more informative error message in the future.

Also switching form non-parametric to parametric bootstrapping could help

Sorry for the huge delay. The better error message for the network module was added at some point but seems not to work in all cases. We will work on a fix.

tomtomme avatar Sep 19 '24 06:09 tomtomme