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

scenic_intersection_sampler throws RuntimeError. #12

Open
junjihashimoto opened this issue Jan 5, 2020 · 2 comments
Open

scenic_intersection_sampler throws RuntimeError. #12

junjihashimoto opened this issue Jan 5, 2020 · 2 comments

Comments

@junjihashimoto
Copy link

I am trying to run "Fuzz testing using Scenic".
scenic_intersection_sampler.py throws following RuntimeError.

$ python3 -u "scenic_intersection_sampler.py"                                                                                      
Traceback (most recent call last):                                                                                                 
  File "scenic_intersection_sampler.py", line 7, in <module>                                                                       
    sampler = ScenicSampler.fromScenario(path_to_scenic_file)                                                                      
  File "/home/hashimoto/.local/lib/python3.6/site-packages/verifai/samplers/scenic_sampler.py", line 215, in fromScenario          
    scenario = scenic.scenarioFromFile(path)                                                                                       
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/syntax/translator.py", line 81, in scenarioFromFile              
    return scenarioFromStream(stream, filename=fullpath, path=path)                                                                
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/syntax/translator.py", line 89, in scenarioFromStream            
    return constructScenarioFrom(namespace)                                                                                        
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/syntax/translator.py", line 1121, in constructScenarioFrom       
    pruning.prune(scenario, verbosity=verbosity)                                                                                   
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/core/pruning.py", line 75, in prune                              
    pruneContainment(scenario, verbosity)                                                                                          
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/core/pruning.py", line 112, in pruneContainment                  
    orientation=base.orientation)                                                                                                  
  File "/home/hashimoto/.local/lib/python3.6/site-packages/scenic/core/regions.py", line 407, in __init__                          
    raise RuntimeError(f'tried to create PolygonalRegion from non-polygon {polygon}')                                              
RuntimeError: tried to create PolygonalRegion from non-polygon LINESTRING (-9.579316028408845 53.30945542330336, -9.454489317418432 29)                                                                                                                               

@northtiger
Copy link

Same issues...Have you solved this?

@junjihashimoto
Copy link
Author

I have not solved it. I'm giving up.

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

2 participants