{"action":"created","issue":{"url":"https://api.github.com/repos/gwaldron/osgearth/issues/754","repository_url":"https://api.github.com/repos/gwaldron/osgearth","labels_url":"https://api.github.com/repos/gwaldron/osgearth/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/gwaldron/osgearth/issues/754/comments","events_url":"https://api.github.com/repos/gwaldron/osgearth/issues/754/events","html_url":"https://github.com/gwaldron/osgearth/issues/754","id":165686940,"number":754,"title":"osgearth_viewerd on master does not accept command line argument","user":{"login":"chrisstankevitz","id":3683521,"avatar_url":"https://avatars.githubusercontent.com/u/3683521?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisstankevitz","html_url":"https://github.com/chrisstankevitz","followers_url":"https://api.github.com/users/chrisstankevitz/followers","following_url":"https://api.github.com/users/chrisstankevitz/following{/other_user}","gists_url":"https://api.github.com/users/chrisstankevitz/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisstankevitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisstankevitz/subscriptions","organizations_url":"https://api.github.com/users/chrisstankevitz/orgs","repos_url":"https://api.github.com/users/chrisstankevitz/repos","events_url":"https://api.github.com/users/chrisstankevitz/events{/privacy}","received_events_url":"https://api.github.com/users/chrisstankevitz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-15T00:20:56Z","updated_at":"2016-07-26T21:14:58Z","closed_at":null,"body":"commit 8d84a2daca\r\n\r\nosgearth_viewerd does not acknowledge the \"earth file\" that I supply via command line.\r\n\r\n$ osgearth_viewerd boston.earth\r\n[osgEarth]* [MapNodeHelper] No earth file.\r\n[osgEarth]  \r\nUsage: osgearth_viewerd file.earth\r\n  --sky                         : add a sky model\r\n  --kml <file.kml>              : load a KML or KMZ file\r\n  --kmlui                       : display a UI for toggling nodes loaded with --kml\r\n  --coords                      : display map coords under mouse\r\n  --dms                         : dispay deg/min/sec coords under mouse\r\n  --dd                          : display decimal degrees coords under mouse\r\n  --mgrs                        : show MGRS coords under mouse\r\n  --ortho                       : use an orthographic camera\r\n  --logdepth                    : activates the logarithmic depth buffer\r\n  --logdepth2                   : activates logarithmic depth buffer with per-fragment interpolation\r\n  --images [path]               : finds and loads image layers from folder [path]\r\n  --image-extensions [ext,...]  : with --images, extensions to use\r\n  --out-earth [file]            : write the loaded map to an earth file\r\n  --uniform [name] [min] [max]  : create a uniform controller with min/max values\r\n  --path [file]                 : load and playback an animation path"},"comment":{"url":"https://api.github.com/repos/gwaldron/osgearth/issues/comments/235407762","html_url":"https://github.com/gwaldron/osgearth/issues/754#issuecomment-235407762","issue_url":"https://api.github.com/repos/gwaldron/osgearth/issues/754","id":235407762,"user":{"login":"chrisstankevitz","id":3683521,"avatar_url":"https://avatars.githubusercontent.com/u/3683521?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisstankevitz","html_url":"https://github.com/chrisstankevitz","followers_url":"https://api.github.com/users/chrisstankevitz/followers","following_url":"https://api.github.com/users/chrisstankevitz/following{/other_user}","gists_url":"https://api.github.com/users/chrisstankevitz/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisstankevitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisstankevitz/subscriptions","organizations_url":"https://api.github.com/users/chrisstankevitz/orgs","repos_url":"https://api.github.com/users/chrisstankevitz/repos","events_url":"https://api.github.com/users/chrisstankevitz/events{/privacy}","received_events_url":"https://api.github.com/users/chrisstankevitz/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T21:14:58Z","updated_at":"2016-07-26T21:14:58Z","body":"The problem is here:\r\n```\r\n* thread #1: tid = 0x9db9e, 0x0000000100c34c98 libosgEarthUtild.0.dylib`osgEarth::Util::MapNodeHelper::load(this=0x00007fff5fbff7b8, args=0x00007fff5fbffa10, view=0x00007fff5fbff800, userContainer=0x0000000000000000, readOptions=0x0000000000000000) const + 1640 at ExampleResources.cpp:277, queue = 'com.apple.main-thread', stop reason = step over\r\n    frame #0: 0x0000000100c34c98 libosgEarthUtild.0.dylib`osgEarth::Util::MapNodeHelper::load(this=0x00007fff5fbff7b8, args=0x00007fff5fbffa10, view=0x00007fff5fbff800, userContainer=0x0000000000000000, readOptions=0x0000000000000000) const + 1640 at ExampleResources.cpp:277\r\n   274 \t    {\r\n   275 \t        if ( args.find(\"--images\") < 0 )\r\n   276 \t        {\r\n-> 277 \t            OE_WARN << LC << \"No earth file.\" << std::endl;\r\n   278 \t            return 0L;\r\n   279 \t        }\r\n   280 \t        else\r\n```\r\n\r\n```\r\n(lldb) bt\r\n* thread #1: tid = 0x9db9e, 0x0000000100c34c98 libosgEarthUtild.0.dylib`osgEarth::Util::MapNodeHelper::load(this=0x00007fff5fbff7b8, args=0x00007fff5fbffa10, view=0x00007fff5fbff800, userContainer=0x0000000000000000, readOptions=0x0000000000000000) const + 1640 at ExampleResources.cpp:277, queue = 'com.apple.main-thread', stop reason = step over\r\n  * frame #0: 0x0000000100c34c98 libosgEarthUtild.0.dylib`osgEarth::Util::MapNodeHelper::load(this=0x00007fff5fbff7b8, args=0x00007fff5fbffa10, view=0x00007fff5fbff800, userContainer=0x0000000000000000, readOptions=0x0000000000000000) const + 1640 at ExampleResources.cpp:277\r\n    frame #1: 0x00000001000087d2 osgearth_viewerd`osgEarth::Util::MapNodeHelper::load(this=0x00007fff5fbff7b8, args=0x00007fff5fbffa10, view=0x00007fff5fbff800, userContainer=0x0000000000000000) const + 50 at ExampleResources:68\r\n    frame #2: 0x00000001000080f4 osgearth_viewerd`main(argc=2, argv=0x00007fff5fbffb38) + 1524 at osgearth_viewer.cpp:87\r\n    frame #3: 0x00007fff820da5c9 libdyld.dylib`start + 1\r\n    frame #4: 0x00007fff820da5c9 libdyld.dylib`start + 1\r\n```\r\n\r\nThis check was apparently added in commit 5f663891\r\n\r\nQuestion: Why is osgearth_viewer failing with \"no earth file\" when I do not provide a '--images' command line argument?\r\n\r\nChris"}}
{"actor":{"display_login":"chrisstankevitz"}}