GMOD / Apollo

Genome annotation editor with a Java Server backend and a Javascript client that runs in a web browser as a JBrowse plugin.
http://genomearchitect.readthedocs.io/
Other
128 stars 85 forks source link

Popup with error processing your 'trackList.json' file #2608

Open pwilx666 opened 3 years ago

pwilx666 commented 3 years ago

I've encountered an error with one of the organisms we recently uploaded to Apollo. The error pops up with the message:

There was a problem processing your 'trackList.json' file: (TypeError) : null is not an object (evaluating 'vw(e,JUc).nc().a')

The tracks display ok, however adding new tracks or clicking on a tab in the Apollo GUI generates this error popup each time.

I checked the trackList.json file for the problem organism and it looks ok to me:

{"refSeqs":"seq/pfal3D7.fa.fai","tracks":[{"seqType":"dna","key":"Reference sequence","useAsRefSeqStore":true,"storeClass":"JBrowse/Store/SeqFeature/IndexedFasta","urlTemplate":"seq/pfal3D7.fa","category":"Sequence Analysis","label":"DNA","type":"SequenceTrack","faiUrlTemplate":"seq/pfal3D7.fa.fai"}],"names":{"url":"https://plasmodb.org/a/service/jbrowse/names/pfal3D7","type":"REST"},"include":["tracks.conf","dnaseq.json","rnaseq.json","chipseq.json","rnaseqJunctions.json","organismSpecific.json","functions.conf","apollo_gene_tracks.conf"]}

I also compared to an organism that doesn't generate the error message:

{"refSeqs":"seq/pfal7G8.fa.fai","tracks":[{"seqType":"dna","key":"Reference sequence","useAsRefSeqStore":true,"storeClass":"JBrowse/Store/SeqFeature/IndexedFasta","urlTemplate":"seq/pfal7G8.fa","category":"Sequence Analysis","label":"DNA","type":"SequenceTrack","faiUrlTemplate":"seq/pfal7G8.fa.fai"}],"names":{"url":"https://plasmodb.org/a/service/jbrowse/names/pfal7G8","type":"REST"},"include":["tracks.conf","dnaseq.json","rnaseq.json","chipseq.json","rnaseqJunctions.json","organismSpecific.json","functions.conf","apollo_gene_tracks.conf"]}There was a problem processing your 'trackList.json' file: (TypeError) : Cannot read property 'a' of null

Screenshot 2021-04-13 at 13 56 35

The response is attached in response.txt

response.txt

nathandunn commented 3 years ago

@pwilx666 I'm not seeing anything explicit.

What happens if you remove the "include" and what happens if you remove "names"?

nathandunn commented 3 years ago

the other possibility is you can build with this and then report the error. Should be quite a bit more verbose:

diff --git a/build.xml b/build.xml
index e6d67604b..abf166cdf 100644
--- a/build.xml
+++ b/build.xml
@@ -39,8 +39,8 @@
             </classpath>
             <arg line="-war"/>
             <arg value="web-app"/>
-            <!--            <arg line="-style"/>-->
-            <!--            <arg value="PRETTY"/>-->
+                        <arg line="-style"/>
+                        <arg value="PRETTY"/>
             <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
             <arg line="${gwt.args}"/>
             <arg value="org.bbop.apollo.gwt.Annotator"/>
nathandunn commented 3 years ago

Some further questions (adding on to what is above):

FYI, this is the code where it is failing: https://github.com/GMOD/Apollo/blob/develop/src/gwt/org/bbop/apollo/gwt/client/TrackPanel.java#L911-L948 . . . my guess is that a type is being mis-specified.

You can definitely add debugging, etc. in there, as well if all else fails. Let me know what you find.