-
Notifications
You must be signed in to change notification settings - Fork 779
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
Blur Scenario when starting simulation from .exe file #1839
Comments
Are you calling reset in the api before running again? Can you please elaborate on how you are doing this? We do have some bugs in 2021.1 with api and I recommend using the latest release because we may have already fixed this issue. |
Yes, I was calling the reset in the code, but even if commenting that line and leaving the sim.load only (as you see in the picture in attached) same things happens. I really would need to stay on this version right now, as changing SVL version implies doing again the scenario and adjusting all the code in the controllers since some functions are not the same. When opening the .exe if I choose go Online it also does not work. So maybe the issue is related to this? That somehow it can not go online and load the scenario? Any ideas on which could be the issue? Thanks, Martina |
Thanks for posting the code, that helps. You aren't checking to see if the map is already loaded. Please look at all the quick script examples we provide to see the check for environment load. If the map is already loaded, it needs to call reset, not load again. |
Actually I am using the same code as you provided in the quick script examples..in the picture I have attached last time, I commented line 16-18 to see if the reset was causing this. Either commenting or uncommenting those lines the issue is still happening. |
Oh, so the issue is happening with the lines un-commented out? Sorry, I was confused on the example posted. |
The issue is happening regardless. The same issue happens building the binary from your original simulator, without changes in the code. After building the binary it works fine for a while then it gets blur..so maybe is it something in the build process? Or any settings which might be wrong? Here in attached the warnings I get while building the binary of my project. Not sure if it can help you detecting the issue, hopefully yes. |
Thanks for the log, it always helps, but those warnings are fine. Let's look into the playerlog next, please post here. |
Yes, I do have the same issue with your binary as well. |
Thanks for the info this helps. I see a couple of things:
|
Thank you very much for helping me.
|
yes, in windows you can use nivida control panel to assign gpu to an application. I'm sure there is a way on Linux. @lemketron ? |
Good morning, I have checked all the things you suggested me, but I'm still experiencing the same issue. Thanks, Martina |
It seems from the player log, thanks for posting, that you are getting many errors when trying to run again. Since this is an older version, I recommend you move to the latest that fixes many issues. You can try to fix the listed issues below if you can't update. I see you are using a terrain, that is not supported in 2021.1
You are missing a nav mesh at the spawn location
Not sure what is going on here but it seems a texture problem
Seems like a custom visualizer or a reference is broken? Is this a custom sensor with a camera base?
|
These errors regarding the texture are happening if:
I tried to delete the library folder, open Unity again and do the build again, including in Resources all the textures I am using but the issue still persists. Is it something normal that you do the build and then you run the project again in the editor changing a variable and then you want to reopen the previous build but it doesn't load? I mean, in my mind it shouldn't happen because if you do a build then it should work whenever you open it, no matter if you changed something in the source code of the project which is being run in the editor, right? Is it something that ever happened to you? Many thanks, Martina |
What do you mean for 2? What are you changing? If you are altering cached assets with changes in the Editor, you will break those assets in the binary without those changes. Understanding what you are exactly doing in Editor will help solve this. Why are you making changes to source code in editor and then running a binary without those changes? |
I have a string variable in the NPCBehaviour script as well as in the vehicleController script. This string needs to be changed to simulate 4 different cases. So I change the string to value1 and build with Name1, then change it to value2 and build with Name2 and so on for four times. If I run all the four builds everything's fine. But if I see something wrong in the behaviour of one of these builds I need to go back to the editor and fix things. And if for some reason I want to check out the previous build (not in the editor) it doesn't load if I made changes to the code. If I do a new build of one of them then all four (even the previous ones) are again working fine. |
Yes this is as intended. If you make changes in source and don't build a new binary, you will have errors or other issues that will prevent loading. That is why we provided development debug so you can test local changes before you bring it to a binary. Why not make an api command to swap logic. I am confused on why you need 4 separate builds. I understand changing logic needs new builds but what is the significance of the name and string. This seems like a good place to add functionality on addagent with strings provided as parameters. |
I see, thanks for your clarification.! Now I know that is "normal". |
Good morning,
I'm currently using the 2021.1 SVL version on Ubuntu 20.04.
When building a new binary of my scenario and starting the simulation through the Python script and the .exe file at the beginning everything is working fine but if I run it again the scenario becomes blur (see attached image).
This is also happened to my colleague.
Any idea why is it happening? Is it something related to the build process? Or because of the scenario we are using?
Please note: When building the binary I do not build the scenario asset bundle, it uploads the scenario directly from the cloud.
Thanks,
Martina
The text was updated successfully, but these errors were encountered: