GithubHelp home page GithubHelp logo

Black screen about gc4ios HOT 36 CLOSED

williamlcobb avatar williamlcobb commented on July 30, 2024
Black screen

from gc4ios.

Comments (36)

jakeb072001 avatar jakeb072001 commented on July 30, 2024

I think it's something to do with permissions or the emulation core.
Whatever it is I hope it gets fixed soon.

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

Hmm...
Log:

Update Main Frame: OGL
Asking for window handle
2016-06-03 11:30:12.470 Dolphin[919:10193] Boot Started, waiting for run state
2016-06-03 11:30:12.471 Dolphin[919:10193] Core booted
shm_open failed: Operation not permitted
Warning: Failed to map 1 GB of memory space: Cannot allocate memory
Failed to map 1 GB of memory space: Cannot allocate memory
Memory Setup of size 100925440 starting at 0x0
mmap failed
Warning: MemoryMap_Setup: Failed finding a memory base.
MemoryMap_Setup: Failed finding a memory base.
2016-06-03 11:30:13.759 Dolphin[919:10193] Reloading
2016-06-03 11:30:14.760 Dolphin[919:10193] Reloading

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

FIXED
To be able to run on iOS 9 you need to change source code.
Change this
void* base = mmap(0, MemSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
to this
void* base = mmap(0, MemSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_JIT, -1, 0);
in MemArena.cpp
Wow. Wii Games seems to be Working!
@WilliamLCobb Please update code

from gc4ios.

jakeb072001 avatar jakeb072001 commented on July 30, 2024

Could you possibly send a compiled version with the fix?
I don't have a Mac.

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Yeah

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

@jakeb072001 Sorry. I can't do that. You need to wait @WilliamLCobb to update deb in his repo

from gc4ios.

jakeb072001 avatar jakeb072001 commented on July 30, 2024

Ok.

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

πŸ‘

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

@Nmzik wait what? How did you get The JIT flag to work? That's the source of all of the JIT problems because apple disallows it

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Is that a good thing. Something to celebrate?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

@WilliamLCobb I'm sorry, what? "apple disallows it" in non-jailbroken device.

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

But i think u need to add check for iOS version :
if (ios9) then void* base = mmap(0, MemSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_JIT, -1, 0);
i am not sure about iOS 8

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

What about iOS 8. It won't work on it?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

Jit is working on iOS 9
Sample code :

uint8_t codetest[] = {0xE7,0x23,0x00,0xB9,0xE7,0x23,0x40,0xB9,0xC0,0x03,0x5F,0xD6};
void *mem = mmap(NULL, 1024, PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE | MAP_JIT, -1, 0);
memcpy(mem, codetest, sizeof(codetest));
void (*func)() = (void(*)())mem;
func();

from gc4ios.

jakeb072001 avatar jakeb072001 commented on July 30, 2024

Wait, so your telling me that the source of the JIT problem was just a single word?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

You can enable/activate JIT in your code/program/app only if you have jailbroken device! You can't do it on non-jailbroken device (apple disallows it). So, basically, yes - its just a single word. But, again, i am not sure about iOS 8 at all as there was different exploit used to escalate privileges (Pangu Taig stuff...).

from gc4ios.

jakeb072001 avatar jakeb072001 commented on July 30, 2024

Well I'm on iOS 9 and jailbroken so I'm happy!

from gc4ios.

MaquinaDelMisterio avatar MaquinaDelMisterio commented on July 30, 2024

@Nmzik Thanks for sharing that jit line.I need jailbreak, i can't load Paper Mario rom, it stay on black screen. And by the way, @jakeb072001 How is it running with jailbreak on iOS 9?

from gc4ios.

jakeb072001 avatar jakeb072001 commented on July 30, 2024

@MaquinaDelMisterio I don't have the new version yet because I don't have a Mac.
I have to wait until the next update from @WilliamLCobb .
When I get the new update I will tell you.

from gc4ios.

MaquinaDelMisterio avatar MaquinaDelMisterio commented on July 30, 2024

@jakeb072001 I would like to help you, but my developer account its free, and i only can use the app on my device. And thanks, i would love to see how performace its doing with jit.

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

But the kernel wasn't patched for 64-bit devices. You "shouldn't" be able to run that code. I'll try it

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

And the blackscreen means the device was not able to allocate a 1GB block of continuous memory. I don't think this check is necessary though so I'll remove it

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Ok so now what

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

It's actually runnable:)

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Sorry if m disturbing but when will the cydia repo be updated? And will the black screen be fixed?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

@WilliamLCobb You should try it.It will run! Make breakpoint to check

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

@nfsvsgta probably tonight. This is an early alpha and I have a few other projects I have to spend time on too to pay the rent. Things should start to work better in the next few days. I'll let you know when I update it

@Nmzik I'll give it a shot right now. If this works JIT should work perfectly with very little effort

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

Did you have to add any entitlements or did it just work?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

It just work:)

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Thanks

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

@Nmzik Just tried and it doesn't work. Whats your iOS version and phone?

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

iOS 9.0.2 iPhone 5S. I am not joking. It's working

from gc4ios.

nfsvsgta avatar nfsvsgta commented on July 30, 2024

Thanks for that commit

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

whoah it's working now... I don't know why, it shouldn't work. Even with a jailbreak pangu never patched the kernel

from gc4ios.

WilliamLCobb avatar WilliamLCobb commented on July 30, 2024

So JIT is working... I'll update if I get a game to run

from gc4ios.

Nmzik avatar Nmzik commented on July 30, 2024

Good to hear it

from gc4ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.