swarm-lab / trackR

trackR - A simple video tracking software for R
https://swarm-lab.github.io/trackR/
GNU General Public License v3.0
30 stars 9 forks source link

Saving/loading background image not working; also can't load mask image #12

Closed jameswaters closed 5 years ago

jameswaters commented 5 years ago
System information (version)
Detailed description

Video loaded and background estimated. On clicking "Save background file", am prompted with a dialog box to choose a directory and file name for the .png file. Despite selecting an appropriate directory and file name, after clicking "Save", the dialog box goes away without error... and no image is actually saved. I've repeated this with other directories and file names, with the same result.

Three additional points of note:

image

Javascript console:

shinyapp.js:310 Uncaught TypeError: Cannot read property 'readyState' of null at ShinyApp.$sendMsg (shinyapp.js:310) at ShinyApp.sendInput (shinyapp.js:140) at input_rate.js:210

R Console:

R version 3.3.3 (2017-03-06) -- "Another Canoe"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[R.app GUI 1.69 (7328) x86_64-apple-darwin13.4.0]

[Workspace restored from /Users/james/.RData]
[History restored from /Users/james/.Rapp.history]

> library(trackR)
> trackR()
Loading required package: shiny

Attaching package: ‘Rvision’

The following objects are masked from ‘package:graphics’:

    frame, image

The following objects are masked from ‘package:base’:

    mean, merge, split, sum

Listening on http://127.0.0.1:4021

When I hit the "escape" key to get back my R console, this additional text was displayed:

Note: input array values outside the authorized range of [0;255]. Rescaling was performed.
Warning: Error in dir.create: invalid 'path' argument
Stack trace (innermost first):
    60: dir.create
    59: dirCreate
    58: observerFunc
     2: shiny::runApp
     1: trackR
sjmgarnier commented 5 years ago

@jameswaters Given that you are using a version of R that is almost 2 year old, I'm going to guess that the problem might be there. If I remember correctly, there has been big changes when R transitioned to v3.5 and that has broken a lot of things. Can you try with an up-to-date version of R (3.5.1)?

jameswaters commented 5 years ago

This might be the most up to date version I can run on Mac OS 10.9.5. Really didn’t want to have to upgrade the OS... but yes, i’ll have to try on a newer machine.

On Fri, Dec 14, 2018 at 10:28 AM Simon Garnier notifications@github.com wrote:

@jameswaters https://github.com/jameswaters Given that you are using a version of R that is almost 2 year old, I'm going to guess that the problem might be there. If I remember correctly, there has been big changes when R transitioned to v3.5 and that has broken a lot of things. Can you try with an up-to-date version of R (3.5.1)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/swarm-lab/trackR/issues/12#issuecomment-447358819, or mute the thread https://github.com/notifications/unsubscribe-auth/AGauJ9XB3HLhHMYrO3F8kFTUo2cNEyMqks5u48OlgaJpZM4ZS2oN .

sjmgarnier commented 5 years ago

@jameswaters Any luck? Can I close this issue and blame it on your out of date R installation? ;-)