LabelMeAnnotationTool icon indicating copy to clipboard operation
LabelMeAnnotationTool copied to clipboard

Blank Screen

Open siddadd opened this issue 10 years ago • 19 comments

My apache server is working correctly on Ubuntu since I can annotate using the Label Me Video version. However having installed the Label Me Image tool, when I navigate to /LabelMeImage/LabelMeAnnotationTool/tool.html via Firefox, I see a blank screen. I am not sure what the issue could be. I checked all directory permissions.

siddadd avatar Jul 09 '14 16:07 siddadd

Thanks for raising this issue.

To help me debug, can you please respond with the output from the javascript console? You can copy and paste from Chrome by navigating via "View=>Developer=>Javascript Console". Thanks!

brussell123 avatar Mar 11 '15 23:03 brussell123

Similar here, when I open tool.html, I see a white screen, but title is correct.

llmpass avatar Sep 16 '15 17:09 llmpass

I gor the same error

and here is the output of JS console : Uncaught ReferenceError: StartupLabelMe is not defined

mouda77 avatar Nov 13 '15 13:11 mouda77

It looks like the server side includes (SSI) may not be configured correctly. "StartupLabelMe" is a function inside ./annotationTools/js/startup.js.

brussell123 avatar Feb 08 '16 20:02 brussell123

same here. SSI is running have anyone a hint?

raketenhund avatar May 11 '16 09:05 raketenhund

@raketenhund: Can you please respond with the output from the javascript console? You can copy and paste from Chrome by navigating via "View=>Developer=>Javascript Console". Thanks!

brussell123 avatar May 16 '16 02:05 brussell123

Was this issue ever resolved? I too have the same issue. From "View=>Developer=>Javascript Console" tool.html:68 Uncaught ReferenceError: StartupLabelMe is not definedonload @ tool.html:68

DapperFactory avatar Jul 22 '16 18:07 DapperFactory

I too have the same problem. It seems that the server side scripts are not loading the js files. Pretty much all the javascripts files are not loading.

DapperFactory avatar Jul 22 '16 21:07 DapperFactory

I encountered the same issues, how could I solve this error.

auroua avatar Oct 21 '16 12:10 auroua

Hi there, had the same problem and backtraced it to the Apache configuration. the Ubuntu.md documentation suggests to remove the VirtualHost tag from the config file (or at least does not explicitly mention them), which for me does not result in a warning for an invalid configuration - but doesn't work either ;-)

Put the folliwng tags (and closing tag at the end) in the config file and SSI will work.

### If you'd like to work locally
#<VirtualHost 127.0.0.1:80>
### If you'd like to expose the service to the network
<VirtualHost *:80>

Also did some more stuff before that, but it did not solve the problem so I figured it is probably irrelevant... Let me know if that is not the case ;-)

kueblert avatar Dec 02 '16 09:12 kueblert

@kueblert can you please share your entire code from the config file because im loosing my mind 3 days in row. thanks in advance

blaxxzg avatar Feb 15 '17 21:02 blaxxzg

Hi @blaxxzg , here is my config file, located at /etc/apache2/sites-available/000-default.conf As mentioned above I did install some other libraries and stuff before getting it to work, so I cannot guarantee that this is actually sufficient, however it was the change that finally made it work for me.

<VirtualHost 127.0.0.1:80>
  ServerAdmin [email protected]
  Redirect permanent /labelme /LabelMeAnnotationTool/tool.html
<Directory "REPLACE_WITH_YOUR_LOCATION">
   Options Indexes FollowSymLinks MultiViews Includes ExecCGI
   AddHandler cgi-script .cgi
   AllowOverride all
   Require all granted
   AddType text/html .shtml
   AddOutputFilter INCLUDES .shtml
   DirectoryIndex index.shtml
</Directory>
</VirtualHost>

kueblert avatar Feb 16 '17 07:02 kueblert

Add .html to AddType and AddOutputFilter in config file /etc/apache2/sites-available/000-default.conf and restart your apache2 may help.

<VirtualHost *:80>
  ServerAdmin [email protected]
  Redirect permanent /labelme /LabelMeAnnotationTool/tool.html
<Directory "REPLACE_WITH_YOUR_LOCATION">
   Options Indexes FollowSymLinks MultiViews Includes ExecCGI
   AddHandler cgi-script .cgi
   AllowOverride all
   Require all granted
   AddType text/html .shtml .html
   AddOutputFilter INCLUDES .shtml .html
   DirectoryIndex tool.html
</Directory>
</VirtualHost>

jeshjesh avatar Sep 13 '17 05:09 jeshjesh

I put a symlink to my labelme dir in /var/www/html and can reach tool.html at http://localhost/labelme/tool.html, but still get tool.html:68 Uncaught ReferenceError: StartupLabelMe is not defined even after making the change above to /etc/apache2/sites-available/000-default.conf (using the line <Directory labelme> ) and doing sudo /etc/init.d/apache2 restart

jeremy-rutman avatar Oct 07 '17 18:10 jeremy-rutman

ok, this took care of me

jeremy-rutman avatar Oct 08 '17 14:10 jeremy-rutman

I was getting the same. Turned out that my apache server was not starting up correctly because of the nginx install on my machine. I followed the nginx removal here, restarted apache2 and it works now.

braddengross avatar Mar 23 '18 20:03 braddengross

I am getting the same problem. I tried all the options mentioned above, still not working. Anything else I can try to solve this?

mendkiakshay avatar Apr 25 '18 01:04 mendkiakshay

Hi I also have the same issue, I tried different configurations for the ' /etc/apache2/sites-available/000-default.conf' but I also get the same error : 'Uncaught ReferenceError: StartupLabelMe is not defined'. This is my 00-default.conf file:

<VirtualHost *:80>
<Directory “/var/www/html/LabelMeAnnotationTool”>
    Options Indexes FollowSymLinks MultiViews Includes ExecCGI
    AddHandler cgi-script .cgi
    AllowOverride all
    Require all granted
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    DirectoryIndex index.shtml
</Directory>
</VirtualHost>

I would very much appreciate any help. Thank you.

alejandracascru avatar Jan 15 '22 00:01 alejandracascru

Hi I got it to run by modifying the tools.html so that it could include the needed scripts like this:

<script type="text/javascript" src="./annotationTools/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="./annotationTools/js/jquery-ui.js"></script>
<script type="text/javascript" src="./annotationTools/js/jquery-ui-intervals.js"></script>
<script type="text/javascript" src="./annotationTools/js/example.js"></script>
<script type="text/javascript" src="./annotationTools/js/browser.js"></script>
<script type="text/javascript" src="./annotationTools/js/globals.js"></script>
<script type="text/javascript" src="./annotationTools/js/io.js"></script>
<script type="text/javascript" src="./annotationTools/js/plot.js"></script>
<script type="text/javascript" src="./annotationTools/js/my_scripts.js"></script>
<script type="text/javascript" src="./annotationTools/js/object_list.js"></script>
<script type="text/javascript" src="./annotationTools/js/object_parts.js"></script>
<script type="text/javascript" src="./annotationTools/js/bubble.js"></script>
<script type="text/javascript" src="./annotationTools/js/image.js"></script>
<script type="text/javascript" src="./annotationTools/js/file_info.js"></script>
<script type="text/javascript" src="./annotationTools/js/annotation.js"></script>
<script type="text/javascript" src="./annotationTools/js/canvas.js"></script>
<script type="text/javascript" src="./annotationTools/js/handler.js"></script>
<script type="text/javascript" src="./annotationTools/js/sign_in.js"></script>
<script type="text/javascript" src="./annotationTools/js/startup.js"></script>
<script type="text/javascript" src="./annotationTools/js/player.js"></script>
<script type="text/javascript" src="./annotationTools/js/video.js"></script>
<script type="text/javascript" src="./annotationTools/js/draw_event.js"></script>
<script type="text/javascript" src="./annotationTools/js/edit_event.js"></script>
<script type="text/javascript" src="./annotationTools/js/adjust_event.js"></script>
<script type="text/javascript" src="./annotationTools/js/scribble.js"></script>
<script type="text/javascript" src="./annotationTools/js/xml_accessors.js"></script>

alejandracascru avatar Jan 17 '22 15:01 alejandracascru