Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs in a game, thus making it behave as expected.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Limit the length of drawRay doesn't work

I want to draw ray to check how my raycast works in Unity editor. However all above code doesn't seems to work, drawn ray is always super long. ...
0
votes
1answer
45 views

NullPointerException when accessing an array with objects defined by for loop

So I'm making a SnakeBird-type game with a level editor, and when a new level is created I want it to be made only out of free tiles. I tried making a 2d array and filling it in with tiles, but it ...
0
votes
1answer
54 views

“Unfortunately game has stopped” error on Android device

In Unity 2018.4.3f1, I am able to build my APK successfully, but when I try to launch it on my mobile device, it shows: "Unfortunately game has stopped". I don't know the problem is. Here are the ...
0
votes
2answers
43 views

objects disappear before time

I created a little pool in order to better manage my enemies, to which, an enemySpawner object calls to retrieve a clone and show it on screen ...
0
votes
1answer
28 views

Windows 10 GPU Engine Performance Counters - Phys / Eng Meaning

For performance tracing of intermittent degredation in performance I wanted to use the Performance Counters available in Windows 10 1809 under GPU Engine -> Utilization percentage. This particular ...
0
votes
1answer
103 views

Fixing error(23, 2) Error parsing expression, misplaced: func

When I try to use the GDScript code below, Godot gives me the error: error(23, 2) Error parsing expression, misplaced: func Why am I getting this error, and how can I fix it? Is there another ...
-1
votes
2answers
114 views

What is wrong with this particular code?

I have to correct this code without changing the structure. Cannot seem to figure out what's wrong. missiles is an array of ...
0
votes
0answers
24 views

How can I debug my game on mobile device?

I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
0
votes
1answer
29 views

Player light color he collects before checkpoint is getting reset when he restarts at checkpoint

I have a child object for my player called Light. The light color changes when the player touches balls of different colors. When I respawn at a checkpoint, the light is getting reset to the default ...
0
votes
1answer
25 views

Instantiate an object and translate it randomly

My goal through this code in C # is that each time the player presses the Q I create a cube at a fixed position given by another object, then begin translating it in a random direction. ie. first ...
0
votes
0answers
26 views

How to find the source of a memory leak in a Blockchain + Node.js game

We have been working in a Node.js game, part of a game network, which seems to be working slower and slower as you keep it open, as well as it seems to increase the RAM and CPU usage over time. We ...
0
votes
1answer
65 views

How can I debug a black screen when testing on a device?

I have made an Android game with Unity. But, when I opened my game, I see a black screen and a closed game. It works on a tablet but does not work on mobile phones. I tested it on 2 mobile phones. ...
2
votes
1answer
25 views

Can I run a script and generate warning when Unity project is saved?

Context: I'm working with Unity using Git and we have .gitignore setup so that we could create "_local" folder anywhere in Assets and it won't be commited. It makes for kind of a Debug/Backup folder, ...
0
votes
0answers
68 views
0
votes
1answer
41 views

“Video system not initialized” error

I always get the error message "video system not initialized" I don't get where I went wrong with the code below: ...
0
votes
0answers
340 views

Error: Program type already present: android.support.v4.app.NavUtils

Every time I try to build an APK file, it gives me an error. I fix one and then I get another and another. This was my last try: My gradle file: ...
1
vote
2answers
146 views

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains: ...
0
votes
1answer
28 views

How to know the adresses an editor modifies while saving a file

I hope this question belongs here. Suppose an editor for a specific file extension. It usually has a user friendly interface so you don't see raw data. Once you edit anything and save the editor ...
2
votes
1answer
36 views

is there any method to simply ignore some files in unity build?

as im trying to build my new app on unity android specially when i want to use gradle, there is always some conflict with manifest or libraries and ..... for debug and problem exploration i need to ...
0
votes
1answer
73 views

Verifying that two words match — false negatives

In my first game, I am trying to validate whether two words match: whether an input word matches a reference word from an array. Unfortunately the only word for which it finds a correct match is the ...
2
votes
1answer
54 views

Piece of code causes game to freeze, then keep playing after sometime

Games Basic Premise Ball rolls along procedurally generated path. Click to changer directions. Don't fall off. I have a script dedicated to the path. The path is made up of 20 cubes, along the x+ and ...
0
votes
2answers
140 views

NullReferenceException in my inventory system [duplicate]

I'm making a simplified inventory system for a 3d game. When I try to pick up an object, I get the following error: NullReferenceException: Object reference not set to an instance of an object ...
0
votes
1answer
327 views

How to get error line when debugging APK from Logcat

I made android game by Unity and built APK. When I got error from this game, I can see the error message: ...
0
votes
1answer
41 views

When is transform width in code not equal to the transform width in inspector?

I've come across a strange case in Unity's UI where the width of a RectTransform isn't the same as what is being reported. I have a transform which is 50 by 50 with no scaling, it is a root object of ...
1
vote
1answer
48 views

What debugging info should I put in the “About” box

I'm developing an Android game with the idea of publishing it, and I wonder what info should I put in the "About" dialog that many main menus have. The idea is to make bug report and debugging easier....
1
vote
1answer
39 views

Does Debug.LogAssert gets deleted in Unity once I build the game?

Does Debug.LogAssert(expression) gets deleted in Unity once I build the game? I was not able to find it here. I feel like it should get deleted, but still I can ...
1
vote
0answers
273 views

How to approach debugging of java.lang.NullPointerException in android build of unity app?

We are getting an obscure java.lang.NullPointerException when building a Unity app for android. There's not much information here that I can trace back to our code. Does anyone have advice about how ...
1
vote
0answers
291 views

How to figure out why a given shader compilation causes an invalid operation error?

I have 2 versions of a program. The only difference being that in one, a geometry shader is compiled and in the other it is not. In all other regards both programs are identical, character by ...
1
vote
0answers
63 views

A question about HLSL debugger in Visual Studio Graphic Diagnostics

Here 's the thing. I developed a graphic project using SharpDx. Every time I actived the graphic diagnostic and debuged some hlsl code in my shaders, It always showed me the disassembling code rather ...
3
votes
0answers
93 views

Phantom objects in ray tracing

I am attempting to add volumetric shadowing to an application I am working on to test some things. For this effect I wrote the following fragment ...
-1
votes
1answer
143 views

Why is the line not being drawn?

I'm trying to add a few polishing touches to my puzzle game (made in Game Maker) in the vein of Ironclad. The following code is for adding a gem object to a stack that already has at least one other ...
4
votes
1answer
1k views

Mute sound in editor in Unity

Is it possible to mute sound in editor in Unity? I mean not in the game, but in the editor, so that when I am debugging there would be no sound whatsoever.
1
vote
1answer
344 views

Find an infinite loop in a very big project in Unity

How can I find an infinite loop in a very big project in Unity? I tried to use breakpoints in MonoDevelop and debug, but I was not able to track the loop. I tried to put ...
3
votes
0answers
190 views

Unity3d Sprite Mask Nonexistent in Build

I am developing a 2D game which uses sprite masks to limit the player's information to a circle around them. The feature works perfectly in the Unity Editor. It can be disabled and reenabled, have the ...
2
votes
0answers
469 views

The identifier is not in the scope! [closed]

I have a typical foreach loop in a coroutine like: ...
2
votes
1answer
128 views

Debugging an AMD GPU specific problem without an AMD GPU

I've recently started to receive reports from users that I game I'm working on isn't rendering properly on AMD GPUs. I'd like to track down the problem and fix it, but I'm a hobby developer just using ...
3
votes
0answers
178 views

Debug Unity DLLs in Windows standalone build

I'm trying to publish a game on the Windows Store using a standalone Windows build in Unity 5.6.2 and Desktop Bridge. Despite unchecking "development build", three Unity DLLs remain in debug mode, ...
1
vote
0answers
560 views

Directx11 create Texture2D using subresourceData

I'm trying to create immutable texture in d3d11 so I want to use subresourceData, every tutorial on textures creates them with 2nd argument being null and after that updates subresource but I want to ...
0
votes
0answers
19 views

How to make Unity NullReferenceExceptions more informative

Is there a way to modify the NullReferenceException for Unity gameObjects so that not only does it say "object reference not set to an instance of an object," but also says exactly what the name of ...
1
vote
1answer
1k views

Why does the Debug.DrawRay return these weird lines

I am working on a small feature of a 2D mobile game where a indicator points towards a object in 2D space. I am trying to make the indicator turn towards the object, however the vector I am trying to ...
2
votes
1answer
85 views

How to know if these profiler values are good or bad?

I'm making a 2D game for Android Mobile using LibGDX and Java in Android Studio. My game mostly runs alright with 60FPS, but for some time to time it lowers to 50FPS. I'm trying to find out what ...
4
votes
1answer
487 views

Graphical mesh lags behind collision shape in BulletPhysics debug drawing

In Bullet Physics when I debug draw physics world the graphical mesh lags behind the collsion shape. ...
1
vote
0answers
192 views

Prevent Unity optimizing local variables out

Is there a way to instruct Unity compiler not optimize (best only for builds run from Unity editor)? More precisely, I would like it to stop removing local variables, because it complicates debugging. ...
1
vote
1answer
28 views

Is this possible to edit the Unity app through inspector while running on Android device?

When on PC, I can run the app and edit things temporarily through the inspector. I know that I can attach the Android ADB and ...
2
votes
0answers
65 views

Are there well-known tools for chasing down VRAM & GTT memory leaks? [closed]

Problem. I have inherited a large C++ 3D graphics codebase (with some shader code). The program runs for about 1-5 minutes before crashing. Problem Data. Using system tools, one can see a sharp rise ...
8
votes
1answer
255 views

How to report bugs found on procedurally generated levels?

There is many topics on how procedural generating works but I couldn't find any info on how to test and - what's more important - how to report bugs that may occur on procedurally generated levels. ...
0
votes
1answer
759 views

How to generate a log file from a Unity WebGL build?

I want to create a log file for every time my WebGL game is played and have the errors and warnings with detail in there. I know how to make the log file I just don't know how to get the errors and ...
0
votes
1answer
50 views

Is the 'partially checked' build sufficient to run the debug version of Direct3D 9?

To run Direct3D 9 in debug, it is necessary to "install a 'checked' version of the OS". The checked version of Windows comes in both full and partial flavors. It seems that the partial version is ...
0
votes
1answer
503 views

Simple Java 2D Game : Player Doesn't Move

I'm a beginner at java and I'm trying to make a simple 2D game as a practice, and i have a problem here with the player, I've tried a lot to make it move but it didn't work. These are the classes that ...