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

run_all_postannotation - takes a few tries before it executes correctly #19

Open
itang1 opened this issue Apr 16, 2020 · 3 comments
Open
Assignees

Comments

@itang1
Copy link

itang1 commented Apr 16, 2020

problem:
sometimes you need to run run_all_postannotation several times before it executes successfully.

this seems to occur universally across macs. unknown if this happened w/ PCs (@sarpu might possibly recall?). this seems also to occur both when working through the pn-opus network drive, and when using local clones of the script and .opf.

example:
in the example below, run_all_postannotation ran successfully on the third try. in general, the number of tries it takes is random. the order and kinds of complaints are random as well.

analysis:
it looks like run_all_postannotation has sporadic difficulties with accessing library methods

1) FIRST TRY: angry

*************************
Running Script: run_all_postannotation.rb on project: 09_12_sparse_code
*************************
NoMethodError: private method `getVariable' called for nil:NilClass
  get_column at file:/Applications/datavyu.app/Contents/Java/datavyu-1.3.7-jfx.jar!/Datavyu_API.rb:722
      (root) at <script>:255
        each at org/jruby/RubyArray.java:1613
      (root) at <script>:253


***** SCRIPT ERROR *****
NoMethodError: private method `getVariable' called for nil:NilClass
  get_column at file:/Applications/datavyu.app/Contents/Java/datavyu-1.3.7-jfx.jar!/Datavyu_API.rb:722
      (root) at <script>:255
        each at org/jruby/RubyArray.java:1613
      (root) at <script>:253

See line 253 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
	for column in columns
See line 255 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
        col = get_column(column)
*************************

2) SECOND TRY: angry in a different way

now, change nothing, just run it again

*************************
Running Script: run_all_postannotation.rb on project: 09_12_sparse_code
*************************
NoMethodError: undefined method `include?' for nil:NilClass
  checkCodes at <script>:19
      (root) at <script>:84
        each at org/jruby/RubyArray.java:1613
      (root) at <script>:77
        each at org/jruby/RubyArray.java:1613
      (root) at <script>:72

See line 72 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
	for column in columns
See line 77 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
		for cell in col.cells
See line 84 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
			checkCodes(cell)
See line 19 of /Volumes/pn-opus/Seedlings/Scripts_and_Apps/Github/seedlings/datavyu/run_all_postannotation.rb:
	if not $valid_utt_type.include?(cell.utterance_type.to_s)
*************************

3) THIRD TRY: no longer angry, successfully points out errors

still change nothing, just run it again

*************************
Running Script: run_all_postannotation.rb on project: 09_12_sparse_code
*************************
intervals ERROR: onset is greater than offset: [Column] labeled_object [Cell#]: 144
@sarpu
Copy link
Contributor

sarpu commented Apr 16, 2020

I am looking into this. I had tried to debug these before, and inconclusively, I think they are network drive issues, but will come up with a definitive answer. In the meanwhile, for testing, could you run the scripts by cloning this repo to your own machine @itang1 ? If we don't get them that way, then that is a big hint that this is due to network drive. Also, keep the issues coming, I like them :)

@itang1
Copy link
Author

itang1 commented Apr 17, 2020

yessir i have cloned the repo & used a local copy of the .opf. the issues still seems to happen sometimes

@sarpu
Copy link
Contributor

sarpu commented Apr 20, 2020

Also, take a look at this issue databrary/datavyu#215.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants