2003scape / rsc-c

🍫 runescape classic client ported to C
GNU Affero General Public License v3.0
77 stars 16 forks source link

RSC-C (Browser) Freezes Computer on ChromeOS #190

Open M00NB0LT opened 3 months ago

M00NB0LT commented 3 months ago

I'm not sure how much useful l information I can provide, but RSC-C on Chrome appears to cause my Chromebook to freeze up, black-screen and crash after playing for a short period of time.

I noticed it happening a month or two back but attributed it to faulty hardware, but I took a break from playing for awhile and didn't have any crashes on said Chromebook until I used RSC-C again.

If you know of any ways to provide useful info, let me know. I don't receive any error reports or anything after it happens.

let-mein commented 2 months ago

Using windows it does that too after a few minutes, the exception appears here leading to a crash: crashAgain

I wonder if anyone else has this problem, the pointer scene->scanlines is being overwritten and pointing to garbage causing a segment fault in the above location. A memory breakpoint shows it's happening here (I have no idea why): hhhfh

edit: i found the problem here it should be: int gradient_index = ((float)rand() / (float)RAND_MAX) * (RAMP_COUNT-1); otherwise it will overwrite loads of variables including scene->scanlines