jasp-issues
jasp-issues copied to clipboard
[Bug]: This analysis terminated unexpectedly. Error in .extractErrorMessage(e): length(error) = 1 is not TRUE
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
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 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
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: @.***>
Appending the file via mail does not work, sorry. Pleas drag and drop as described above.
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: @.***>
I'll forward this file to Don.
@vandenman Did you have a chance to look at that file? Can you reproduce the bug on windows?
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.
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.
@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?
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: @.***>
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.
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: @.***>
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
@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.