Skip to content

Cmd line tzar says it succeeded even though R crashed #51

@langfob

Description

@langfob

The tzar run from the command line says that it succeeded, but if you look at the log file, R crashed. I've now fixed the slotNames() problem that caused the crash, but I'm not sure why tzar thinks it succeeded:

> java -jar ~/D/rdv-framework-latest-work/tzar.jar execlocalruns /Users/bill/D/Projects/ProblemDifficulty/pkgs/bdpgxupaper/R

Created 1 runs. 
Outputdir: /Users/bill/tzar/outputdata/bdpg/default_runset/108_marxan_simulated_annealing.inprogress 
Running model: /Users/bill/D/Projects/ProblemDifficulty/pkgs/bdpgxupaper/R, run_id: 108, Project name: bdpg, Scenario name: marxan_simulated_annealing, Flags:  
Retrieving model from http://glass.eres.rmit.edu.au/tzar_input/biodivprobgen/Marxan.zip to /Users/bill/tzar/modelcode/marxanLibrary_1360018653 
Model already exists at /Users/bill/tzar/modelcode/marxanLibrary_1360018653 so not downloading 
Run 108 succeeded. 
Executed 1 runs: 1 succeeded. 0 failed 

IN LOGGING.LOG FOR RUN 108:
...
--------------------  Computing and plotting degree distribution of node graph. 
 
just after plot_degree_and_abundance_dists_for_node_graph()Error in match(x, table, nomatch = 0L) :  
  could not find function "slotNames" 
Calls: tryCatch ... compute_and_set_obj_checksum -> compute_obj_checksum -> %in% -> match 
 
 
-----  FATAL ERROR IN R CODE:  See error msgs above and traceback below...  -----:  
 
17: (function (c)  
    { 
        message("\n\n-----  FATAL ERROR IN R CODE:  See error msgs above and traceback below...  -----: \n") 
        traceback(2) 
        stop() 
    })() 
16: match(x, table, nomatch = 0L) 
15: "UUID" %in% slotNames(obj_with_UUID_and_checksum) at compute_checksums.R#64 
14: compute_obj_checksum(obj_with_UUID_and_checksum, base_outdir_for_checksum) at compute_checksums.R#120 
13: compute_and_set_obj_checksum(obj_with_UUID_and_checksum, base_outdir_for_checksum) at compute_checksums.R#164 
12: save_obj_with_checksum(rsprob, base_outdir) at biodivprobgen_utilities.R#684 
11: save_rsprob(Xu_bdprob_cor, exp_root_dir) at gen_single_bdprob.R#500 
10: bdpg::gen_single_bdprob_COR(starting_dir, parameters$compute_network_metrics_COR,  
        parameters, parameters$read_Xu_problem_from_Xu_file, infile_name,  
        parameters$given_correct_solution_cost, parameters$max_allowed_num_spp,  
        bdpg_error_codes, integerize) at xu_paper_main.R#150 
9: xu_paper_main(parameters) at tzar_main.R#121 
8: main_function(parameters = parameters) at model_with_possible_tzar_emulation.R#44 
7: model_with_possible_tzar_emulation(parameters, main_function = tzar_main,  
       projectPath = ".", emulation_scratch_file_path = "~/tzar_emulation_scratch.yaml") 
6: eval(expr, envir, enclos) 
5: eval(ei, envir) 
4: withVisible(eval(ei, envir)) 
3: source(args$rscript) 
2: tryCatchList(expr, classes, parentenv, handlers) 
1: tryCatch({ 
       source(args$rscript) 
   }, finally = { 
       dump(c("parameters"), paste(outputpath, "/metadata/parameters.R",  
           sep = "")) 
       si <- paste(outputpath, "/metadata/R_sessionInfo.txt", sep = "") 
       writeLines(capture.output(date(), cat("\n"), sessionInfo()),  
           con = si) 
   }) 
Error during wrapup:  

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions