Author Topic: game wont load shuts down emulator and returns to android main screen  (Read 40873 times)

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #30 on: January 03, 2012, 07:02:51 PM »
the following was recorded on 2012-01-03 at 5:47 pm

thanks for all you help paul really appreciate it  ;D
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #31 on: January 03, 2012, 07:49:44 PM »
Ok, into the next level:

GL Enum Problem Test #3
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #32 on: January 03, 2012, 08:28:24 PM »
the following was recorded on 2012-01-03 at 7:15pm
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #33 on: January 03, 2012, 08:53:38 PM »
Last one for today:

GL Enum Problem Test #4

Feels like I'm peeling an onion.. I just keep finding more and more levels of nested code - we haven't quite made it to GL yet..  I'm starting to see how much extra baggage SDL is adding to this project.  Removing it should really simplify things a lot.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #34 on: January 03, 2012, 09:24:24 PM »
the following was recorded on 2012-01-03 at 8:16 pm

an thanx again will check in tomorrow. ;D
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #35 on: January 04, 2012, 06:38:23 PM »
Ok, great, we've made it down to actual GL calls (finally!)  This one *should* pinpoint exactly which line is producing the invalid enum error (there are a couple places it could go in another layer or two, but hopefully not, haha!)

GL Enum Problem Test #5

Once I have the line, I can do some googling and ask around on various forums to see if anyone knows the cause and (hopefully) a solution.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #36 on: January 08, 2012, 01:08:17 PM »
the following was recorded on 12-01-08 at 12:01 pm
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #37 on: January 08, 2012, 01:46:45 PM »
Excellent, that logged the problem nicely:

Code: [Select]
V/SDL_render_gles2.c( 3302): ----(18a)
W/        ( 3302): error  of type 0x500 glGetIntegerv
V/SDL_render_gles2.c( 3302): ----(18b)
V/SDL_render_gles2.c( 3302): ----gl error

Which tracks the problem down to the following code:

Code: [Select]
glGetIntegerv( GL_NUM_SHADER_BINARY_FORMATS, &nFormats );
glGetBooleanv( GL_SHADER_COMPILER, &hasCompiler );
if( hasCompiler )
    ++nFormats;
rdata->shader_formats = (GLenum *) SDL_calloc( nFormats, sizeof( GLenum ) );
glGetIntegerv( GL_SHADER_BINARY_FORMATS, (GLint *) rdata->shader_formats );   <---- PROBLEM HERE

Specifically, it is reporting an invalid enum for that last line.  I've posted a question on Stack Overflow, so hopefully someone will be able to shed some light on this.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #38 on: January 08, 2012, 04:08:03 PM »
Ok, I think I solved that problem.  It looks like, against the specification, because your device does not support any binary shader formats, the library assumes no one would call GL_SHADER_BINARY_FORMATS when GL_NUM_SHADER_BINARY_FORMATS is 0.

There are probably still other problems later in the initialization process now that it will be able to get past that line, though.  If it is still crashing with this test, then please post the logcat output.

GL Enum Problem Test #6

Thanks again for helping me track this one down!
« Last Edit: January 08, 2012, 04:25:03 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #39 on: January 08, 2012, 05:38:14 PM »
the following was recorded at 12-01-08 at 4:29 pm

still crashes when opening a rom
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #40 on: January 08, 2012, 05:40:14 PM »
i also herd a slight noise you know that coin sound when mario starts it makes that sound but jus a part of it befor it crashes
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #41 on: January 08, 2012, 07:39:05 PM »
Interesting.. looks like my theory was wrong, and GL_NUM_SHADER_BINARY_FORMATS isn't zero.  Let's see how many are being returned then.  Please provide the logcat after running this test:

GL Enum Problem Test #7
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #42 on: January 08, 2012, 08:14:20 PM »
i think you did it lol it worked for the first time on mario 64 but its extremely choppy and slow... should i still post a alogcat for you  ;D ;D ;D ;D
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: game wont load shuts down emulator and returns to android main screen
« Reply #43 on: January 08, 2012, 08:31:05 PM »
Yes, there is still a problem in there somewhere, so the logcat might be helpful.  Glad it is at least running now!
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline br1ttan

  • byte
  • *
  • Posts: 39
  • Mupen64Plus, AE Tester
    • View Profile
Re: game wont load shuts down emulator and returns to android main screen
« Reply #44 on: January 08, 2012, 08:47:42 PM »
the following was recorded on 2012-01-08 at 7:41 pm

i let it run till i got to the main menu
Device:HTC Sensation 4G HD
CPU:1.2GHz dual core
RAM:768 MB
Resolution:540 x 960