skmp / reicast-emulator

Reicast was a multiplatform Sega Dreamcast emulator
https://reicast.emudev.org
Other
1.1k stars 343 forks source link

Reicasts restarting the device #367

Closed mirek190 closed 10 years ago

mirek190 commented 10 years ago

From begin :

Everything looks fine until I choose a game and run. For instant - sonic adventure works until I choose 50 Hz on the screen and BANG ! Phone is restarting. With SHENUME looks the same but I can watch intro but after it when he should get up from bed ... BANG ! the phone is restarting as well.

I tried all settings and all the time is the same. I have stock rom just rooted android 4.4.

I never seen such thing so that application restarting the phone.

Tested with NOTE 3 android 4.4 - ( snapdraogon 800 ) version r6

MrPsyMan commented 10 years ago

All that is good and such but don't expect us to fix compatibility with your phone if you don't tell us what phone it is.

mirek190 commented 10 years ago

I corrected 1st post sorry for it.

MrPsyMan commented 10 years ago

...

I so want to send Qualcomm a huge "SCREW YOU" message right now.

It's not your fault, but neither our fault. Unfortunately you're more or less forced to wait until we get our hands on one of the affected devices in order to fix the problem.

It's Qualcomm's fault, really.

mirek190 commented 10 years ago

But on 0.5 was working fine...

But I can test dev versions If you lookig someone for it ;)

MrPsyMan commented 10 years ago

Right. When did you use the r5 for the last time?

mirek190 commented 10 years ago

1 month ago and a 1 week ago.

MrPsyMan commented 10 years ago

Did you update your Note 3 in-between this 1 month and 1 week?

mirek190 commented 10 years ago

Yest. On 4.3 shenume had a lot of glithes ,, sonic looks fine no restarts 4.4 tested 0.5 shenume looks great, sonic as well - no restarts

Version 0.6 - reboot my phone like in 1st post ( loading ) when I see this screen

MrPsyMan commented 10 years ago

But the thing is, are you still on 4.4 or was there an update to 4.4.2 or something?

mirek190 commented 10 years ago

Yest this is 4.4.2 from half of January on my note 3.

MrPsyMan commented 10 years ago

Wait a moment until I find an r5 build for you to test.

mirek190 commented 10 years ago

ok waiting....

AbandonedCart commented 10 years ago

It's something in that system update that does it. Every time someone has said Snapdragon or Note 3 and reboot, they usually say it worked in r5 first and then system update shortly after.

MrPsyMan commented 10 years ago

OK. This has to be a proper package: http://reicast-dreamcast-emulator.en.uptodown.com/android/download

Try it on the same device (with the same andoid version) you tried r6 and let us know if it works.

mirek190 commented 10 years ago

ok in few minnures I wiil let you know

AbandonedCart commented 10 years ago

Xperia Play GB didn't work because libjpeg had the memory allocation already. I wonder if it is possible that this is somehow jacking something else's allocation that it ironically calls.

MrPsyMan commented 10 years ago

Maybe. But let's wait until mirek takes a look. Maybe the aloc fixes (those that ended up not fixing anything) broke other devices or maybe we do something new on r6 that qual devices don't like.

Not that this is very likely, but with android you never know.

mirek190 commented 10 years ago

Ok you right 0.5 on 4.4.2 is restarting the phone as well.

My bad I tested 0.5 ( a week ago ) last time on my wife's note 3 ( she still had 4.3. - there was ok no restarts)

On 4.4.2 ver.0.5 Sonic adventure is restarting right afrer ( 50 - 60 hz ) screen Shenume after intro ( in bed before gets up )

ver. 0.6 - is restarting exactly in the same moments

AbandonedCart commented 10 years ago

How far does it get before the reboot occurs? Depending if it makes it far enough, if it is a memory failure there should be a log in the dreamcast folder.

MrPsyMan commented 10 years ago

Well, while you're at it, you could also try the new r6 on your wife's 4.3 and make sure that we don't make the thing reboot. Just for the sake of it and such. :p

mirek190 commented 10 years ago

in my last post i describe when is restarting.

Unfortunately she as 4.4.2 as well from 3 days...

AbandonedCart commented 10 years ago

@MrPsyMan think it's that whole generation of Samsung with 4.4 updates? I was supposed to root an S4 and update it and never got around to it. I could run a few tests in the process if it doesn't end up being a rushed job to get it rooted.

MrPsyMan commented 10 years ago

If we could get someone from the team with a qualcomm to update and reproduce the problem, then we could fix it. I don't think that non qualcomm devices are affected though.

coestergaard commented 10 years ago

I am not sure, if this is the same issue, but I have seen similar behavior on my Samsung Galaxy S4 after I updated to 4.4.2. The fix for that was to make sure that the system path is pointing to the local memory, where I placed dc_boot.bin and dc_flash.bin. Only the games path can point at the external SD Card. From 4.4.2 only system apps seems to be allowed to write to the SD-Card. Could this be what is causing your problems?

MrPsyMan commented 10 years ago

That actually might be it. Actually, I'm quite certain now that it's somehow related.

mirek190 commented 10 years ago

You think ? I that case IF I place game in internal memory should be ok ? I can check it now.

AbandonedCart commented 10 years ago

The BIOS needs to be on the internal because the emulator treats it like part of the internal source. The games can be on the card because they are treated like files.

MrPsyMan commented 10 years ago

That. If knox attempts to write where not supposed to... well, yeah. There can be a lot of things.

@mirek190 I doubt it's that simple. It's most likely something we have no control over. If we can get our hands on an affected device we could just avoid affecting the device in such a way that a reboot is triggered.

mirek190 commented 10 years ago

Bios, game are in internal memory and restartimg phone.

mirek190 commented 10 years ago

Logcat will be helfull to find out why the phone is restarting?

AbandonedCart commented 10 years ago

After a reboot the log is cleared. There is a fix for KNOX compatibility for apps, I just have to remember where it was. Hopefully that is all that is causing it.

mirek190 commented 10 years ago

I can use logcat on PC via adb...

AbandonedCart commented 10 years ago

You're welcome to try it

MrPsyMan commented 10 years ago

Seriously, it's a device issue. A lot of devices reboot on many applications (note 3 included) after the 4.4.2 update. All that without anything useful on the logs. It's not just reicast affected.

Best we can do is to find what causes it and if it doesn't kill performance, fix it. Of course if the "fix" kills performance you'll be stuck with a device that randomly reboots.

mirek190 commented 10 years ago

Ok on v0.5 That's really strange - when logcat is working via adb ...emulator is working fine...no restarts.. Sonic is working after 50/60 hz screen ( no phone restarts ) Shenume as well is fine.

Now I check on 0.6 witch logcat via adb....on Note 3 android 4.4.2

Sonic adventure working - no restarts Shenume - working...

MrPsyMan commented 10 years ago

Yeah. That's pretty much what everyone affected says. There's a reason for my my original comment about qualcomm.

mirek190 commented 10 years ago

hmmm

As I said before NOTE 3 android 4.4.2 with logcat via adb the emulator is working fine....

Now I check on 0.6 witch logcat via adb....on Note 3 android 4.4.2

Sonic adventure working - no restarts Shenume - working no restarts compare to 1st post....

Someone have any clue ??

Shouls I post logcat here ?

skmp commented 10 years ago

Looks like a power or thermal issue on the phone. No application should be able to ever restart the phone, this is definitely a hardware/driver defect on the part of qualcomm/samsung.

If you have root, you can try limiting your cpu/gpu to a lower clock, or lower voltage, as that might help. Otherwise, its just random luck of us finding a work around. You should send a complaint email to Samsung, perhaps they will bother to fix it if the problem is widespread enough.

mirek190 commented 10 years ago

Without logcat the phone is restarting exactly in the same spot in game as usual.

I can try use powersafe mode then cpu is limited to 1.5 ghz....

mirek190 commented 10 years ago

Even limited cpu to 1.5 ghz is restarting.

Working fine just with logcat via adb.

stodag commented 10 years ago

Hi, I reported this before.. 4.1.1 snapdragon adreno 203.. sometimes with certain build I get a reboot then I'll download another and its fine.

The only game that I've noticed this on is soul caliber, especially the build I have now. Everytime without fail as soon as the fight starts I get a reboot.

stodag commented 10 years ago

Ppsspp had the same problem.. until Henrik got his hands on a device, maybe he can help.

Note I'm running stock unrooted.

MrPsyMan commented 10 years ago

If you point us at the exact commit that fixed ppsspp we can take a look and learn what to do without the need for a device.

stodag commented 10 years ago

Too many lol.. no seriously I'll see what I can find out tonight, I'll ask Henrik myself if needed.

mirek190 commented 10 years ago

maybe will be helpfull http://forums.ppsspp.org/showthread.php?tid=7069

MrPsyMan commented 10 years ago

Not really...

stodag commented 10 years ago

@psyman: if I get a reply or any info, I'll post..not a major problem for me as my new phone arrives later today, s3 mini blue, should run reicast pretty well:)

stodag commented 10 years ago

I think it is snapdragon related though.. I'll test on my new phone the build that crashes reboots my y300 to compare.

neko68k commented 10 years ago

I am running a freshly flashed t-mobile note 3 with 4.4.2 and I'm not having this problem. Tested with Shenmue NTSC/US GDI with the phone unplugged completely. I went as far as taking the food from the shrine for the kitten.

MrPsyMan commented 10 years ago

Does CPU-Z see it as snapdragon or exynos based?