Weird bug

Hello all,

I am experiencing a weird bug with my Unity3D mobile game. I did not create it; I had a programmer create this, but I am unsure what the issue is. The game seems to have a spontaneous bug that only happens on occasion, but is still very significant. I was wondering if anyone could assist and download the game to see if the bug appears on their end? If so, please respond to this thread or email me at ryan@ilookin.com.

Thanks!

Can you describe the problem and provide some crash details?

We may be able to help if you give us some details.

Well, as I said, the bug only occurs every now and then, but it bugs me (no pun intended). I am going to attach three files. Screen2 = the screen that loads after you complete a round, showing the number of arrows you swiped correctly. Screen1 = the screen after Screen2, which shows your score and has “Continue” so you can move on to the next level.

Now, the issue is, on occasion I’ll get what is uploaded as “Error”. What seems to be happening is that, Screen1 and Screen2 load at the same time, literally overlapping each other, and clicking “Continue” does not work. I am wondering if this is an issue in Unity or if it is something that went wrong in Xcode.

I am no programmer, so any help understanding the potential issue would be appreciated.

Please let me know if you need any additional info. I am trying to get in contact with the original programmer to see if he can help fix it, as I’ve been asking around for help but everyone has a price beyond my budget, especially for one minor error. Though it doesn’t always happen (sometimes it works fine), it’s probably something very simple in the code.



I found this in the code string.

This is in the RoundComplete code. Notice “HackyFix” and “TallyArrows” in the code for RoundComplete.unity. Would this have something to do with it and if so, how do I fix this? This seems to be (possibly) why the two overlap: the RoundComplete code has whatever “HackyFix” means in it, and TallyArrows in the code, which may be why they overlap?

There are many reasons why this could be happening.

I’d suggest that this is not a Unity issue.

This sounds like some sort of race condition (if it only happens ‘sometimes’) where some code is dependant on the order of events occurring in certain orders which doesn’t seem to be guaranteed.

Now the ‘HackyFix’ is not a good sign - that (to me) implies that the developer knew there was an issue but either didn’t know how or didn’t have time to fix it correctly.

Can you post the block of code where you found HackyFix? We may be able to spot the issue and suggest a fix.
[edit] just saw your screenshot attachment.

There’s pretty much no chance of understanding what’s going on there without having greater knowledge of the project.

I’d strongly suggest seeking the assistance of the original programmer.

On a side note, I also went to the Unity3D scene: “TallyArrows” and found a segment called “RoundComplete” in the Hierarchy section, which (to my understanding) should not be there; it should simply transition from TallyArrows to RoundComplete, and the two should not be together.

Find attached the .cs doc with the string of code in it. HackyFix is at line 126.

My original programmer knew what he was doing; the one who redid this game for me (I only wanted a few issues adjusted and his inexperience seems to have come back to me tenfold) was inexperienced and I guess just inserted a random code to fix an issue I was encountering, when in fact the issue seems to be in the Unity3D scene itself, as well.

2538551–176286–RoundComplete.cs (7.37 KB)