CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.39k stars 437 forks source link

Blank Screen #3

Open siddadd opened 10 years ago

siddadd commented 10 years ago

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.

brussell123 commented 9 years ago

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!

llmpass commented 9 years ago

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

mouda77 commented 8 years ago

I gor the same error

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

brussell123 commented 8 years ago

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

raketenhund commented 8 years ago

same here. SSI is running have anyone a hint?

brussell123 commented 8 years ago

@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!

DapperFactory commented 8 years ago

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 commented 8 years ago

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.

auroua commented 7 years ago

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

kueblert commented 7 years ago

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 ;-)
blaxxzg commented 7 years ago

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

kueblert commented 7 years ago

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@email.email
  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>
jeshjesh commented 7 years ago

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@email.email
  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>
jeremy-rutman commented 7 years ago

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 commented 7 years ago

ok, this took care of me

braddengross commented 6 years ago

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.

mendkiakshay commented 6 years ago

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

alejandracascru commented 2 years ago

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 commented 2 years ago

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>