Search the Community
Showing results for tags 'fix'.
Found 1 result
Here you will find a few simple tips on how to make your bug report better. The more full information you provide, the faster we find the issue and fix it! How to report a bug 1. Search the forum for the issue you encountered. If there is a topic with the same bug and you can add any helpful details (for example, as to environment in which it occurs or hardware configuration), post a message in it. If there are no topics on our forum that mention the issue you've encountered, create a new topic. 2. Always report one problem in each topic. This way, it's easier to keep track of the bugs and make sure none are left unanswered. Minimal description Minimal issue description should contain Reproduction steps. What you expected or needed to happen What you did in detailed step-by-step guide (see the example below) Or alternatively a video or set of screenshots that will show the whole steps required to reproduce this behavior What happened For example: Additional info If it is needed for explanation - you can add to your post following items: A video or screenshots that shows all the necessary steps A log file (log.html). A call stack (in case of crashes) A minimal test scene for reproduction. But if you are 100% sure it's enough, you can simply share resources in question or at the very least, attach a screenshot (with a mark drawn to point out the problem). See details on each of these points below. Log file A log.html file created on each launch of your application and stored in the project directory and older log files are being renamed to log_1.html, log_2.html and so on. Up to 4 log files can exists simultaneously. Log file by default located in: <Your_Project_Dir>/bin/log_*.html To get maximum out of the log file, here is a couple of hints: Run debug builds (unless issue is only can be reproduced in release). In this case log file will contain detailed error messages (only valid for UnigineScript-based applications). Attach multiple log files to your message (since they may contain various error messages from time to time). Remember that Editor also writes all the error messages in the log file, so it may be useful. Call Stack Sometimes you may observe an engine crashes. If you 100% sure that your code is valid and the engine itself is working incorrectly we may ask for additional information. A call stack allows to view the function or procedure calls that led to a crash. You can provide it: In a text format (preferable) As a screenshot of call stack window. Windows Run your application with debug engine (<your_app_name_x64d.exe) In Visual Studio go to Debug -> Attach to Process (Ctrl + Alt + P) Select your application in Available processes list and hit Attach Crash your application Copy the callstack contents and attach it to your report Linux Please ensure you have packages with debug symbols installed. Make sure the GNU Debugger is installed (all terminal commands are for debian-like systems): sudo apt-get install gdb Start the debug version of engine under control of gdb: gdb <main_x64d> 2>&1 | tee ~/gdb-<program>.txt (gdb) handle SIG33 pass nostop noprint (gdb) set pagination 0 (gdb) run <arguments, if any> If the engine must run as root, use sudo gdb instead of just gdb above. The program will start. Perform any actions necessary to reproduce the crash. If the program hangs but doesn't crash you can press CTRL+C in gdb while the program is frozen and then continue with the next step. Retrieve a backtrace: (gdb) backtrace full (gdb) info registers (gdb) x/16i $pc (gdb) thread apply all backtrace (gdb) quit Attach the complete output from GDB, contained in gdb-<program>.txt to your bug report. You will find the file in your home directory /home/<username>. Minimal test scene A minimal test scene is a project stripped down to essentials that cause a bug. There is no need to send us bin directory, just data and source. Sometimes it's easier to create a new project and modify it slightly to get the minimal reproduction scene on default content. For large and NDA test scenes you can use our secure FTP server to upload the files: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN