Does anybody encounter this error?

Issue:
Been trying to play pokemon sun but this error keeps on crashing the game

System Information

  • Operating System: Windows7
  • CPU: i7-3610QM
  • GPU: nvidia geforce gt640m
  • Citra Version: citra canary | head-ddf410e
  • Game: pokemon sun
  • Screenshot of Issue:

Log:

[ 0.000000] Frontend citra_qt/main.cpp:BootGame:428: Citra starting…
[ 0.148226] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 - Build 8.15.10.2752
[ 0.148277] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:489: GL_VENDOR: Intel
[ 0.148306] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:490: GL_RENDERER: Intel® HD Graphics 4000
[ 0.196570] Loader core/loader/ncch.cpp:Load:177: Program ID: 0004000000164800
[ 0.196820] Service.FS core/file_sys/ncch_container.cpp:OpenFile:107: Failed to open C:\Users\Ghost\AppData\Roaming/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004000e/00164800/content/00000000.app
[ 0.207274] Loader core/hle/kernel/process.cpp:ParseKernelCaps:108: ExHeader kernel version: 2.50
[ 0.207991] Service.CFG core/hle/service/cfg/cfg.cpp:SetPreferredRegionCode:613: Preferred region code set to 0
[ 0.208074] Service.CFG core/hle/service/cfg/cfg.cpp:SetPreferredRegionCode:621: System language 1 does not fit the region. Adjusted to 0
[ 0.220328] Service.SRV core/hle/service/sm/srv.cpp:RegisterClient:48: (STUBBED) called
[ 0.399145] Service.SRV core/hle/service/sm/srv.cpp:EnableNotification:70: (STUBBED) called
[ 0.402946] Service.APT core/hle/service/apt/apt.cpp:GetLockHandle:431: (STUBBED) called handle=0x00038009 applet_attributes=0x00000000
[ 0.409667] Service.APT core/hle/service/apt/apt.cpp:SetScreenCapPostPermission:870: (STUBBED) screen_capture_post_permission=0
[ 0.411063] Service.NDM core/hle/service/ndm/ndm.cpp:OverrideDefaultDaemons:203: (STUBBED) default_daemon_bit_mask=0x0000000F
[ 0.411418] Service.NDM core/hle/service/ndm/ndm.cpp:SuspendDaemons:89: (STUBBED) daemon_bit_mask=0x00000009
[ 0.414671] Service.APT core/hle/service/apt/apt.cpp:NotifyToWait:408: (STUBBED) app_id=768
[ 0.418873] Service.APT core/hle/service/apt/apt.cpp:AppletUtility:733: (STUBBED) called command=0x00000007, input_size=0x00000004, output_size=0x00000001, input_addr=0x0FFFFF48, output_addr=0x0FFFFF14
[ 0.419574] Service.APT core/hle/service/apt/apt.cpp:AppletUtility:733: (STUBBED) called command=0x00000004, input_size=0x00000001, output_size=0x00000001, input_addr=0x0FFFFF10, output_addr=0x0FFFFF14
[ 0.423714] Service.FS core/hle/service/fs/fs_user.cpp:InitializeWithSdkVersion:806: (STUBBED) called, version: 0x0B0401C8
[ 0.445473] Service.SRV core/hle/service/sm/srv.cpp:Subscribe:146: (STUBBED) called, notification_id=0x209
[ 0.460857] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:148: Firmware hash: 0x943f5565dbcf6767
[ 0.460953] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:152: Structures hash: 0x93e48663943cad39
[ 0.461062] Service.DSP core/hle/service/dsp_dsp.cpp:LoadComponent:157: (STUBBED) called size=0xC25C, prog_mask=0x000000FF, data_mask=0x000900FF, buffer=0x0062B1C0
[ 0.462677] Service.DSP core/hle/service/dsp_dsp.cpp:RegisterInterruptEvents:248: Registered type=2, pipe=2, event_handle=0x000A0023
[ 0.463123] Service.DSP core/hle/service/dsp_dsp.cpp:GetSemaphoreEventHandle:174: (STUBBED) called
[ 0.463575] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphoreMask:469: (STUBBED) called mask=0x00002000
[ 0.464188] Audio.DSP audio_core/hle/pipe.cpp:PipeWrite:134: Application has requested initialization of DSP hardware
[ 0.464463] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphore:271: (STUBBED) called
[ 0.466813] Service.DSP core/hle/service/dsp_dsp.cpp:SetSemaphore:271: (STUBBED) called
[ 0.610401] Service.LDR core/hle/service/ldr_ro/ldr_ro.cpp:LoadCRR:202: (STUBBED) called, crr_buffer_ptr=0x0821E000, crr_size=0x00007000, process=0xFFFF8001
[ 0.640716] Service.GSP core/hle/service/gsp_gpu.cpp:AcquireRight:702: called
[ 0.641935] Service.GSP core/hle/service/gsp_gpu.cpp:RegisterInterruptRelayQueue:397: called, flags=0x00000001
[ 0.777986] Service.FRD core/hle/service/frd/frd.cpp:SetClientSdkVersion:158: (STUBBED) called, version: 0x0B0401C8
[ 0.778792] Service.FRD core/hle/service/frd/frd.cpp:GetMyPresence:35: (STUBBED) called
[ 0.780061] Service.FRD core/hle/service/frd/frd.cpp:GetFriendKeyList:53: (STUBBED) called, unknown=0, frd_count=100, frd_key_addr=0x33C027FC
[ 0.796003] Service.BOSS core/hle/service/boss/boss.cpp:InitializeSession:40: (STUBBED) unk_param=0x0000000000000000, translation=0x00000020, unk_param4=0x00000000
[ 0.796872] Service.NDM core/hle/service/ndm/ndm.cpp:ResumeDaemons:104: (STUBBED) daemon_bit_mask=0x0000000B
[ 0.797261] Service.NDM core/hle/service/ndm/ndm.cpp:ResumeDaemons:104: (STUBBED) daemon_bit_mask=0x0000000F
[ 0.799032] Service.BOSS core/hle/service/boss/boss.cpp:GetStorageEntryInfo:838: (STUBBED) called
[ 0.799616] Service.BOSS core/hle/service/boss/boss.cpp:UnregisterStorage:66: (STUBBED) called
[ 0.800260] Service.BOSS core/hle/service/boss/boss.cpp:RegisterStorageEntry:827: (STUBBED) unk_param1=0x00001648, unk_param2=0x00000000, unk_param3=0x00100000, unk_param4=0x00000001, unk_param5=0x00000001
[ 0.861578] Service.APT core/hle/service/apt/apt.cpp:SetScreenCapPostPermission:870: (STUBBED) screen_capture_post_permission=3
[ 0.909087] Service.FRD core/hle/service/frd/frd.cpp:GetMyFriendKey:97: (STUBBED) called
[ 0.930034] Service.FRD core/hle/service/frd/frd.cpp:GetMyFriendKey:97: (STUBBED) called
[ 1.216295] Service.FS core/file_sys/archive_source_sd_savedata.cpp:GetFormatInfo:82: Could not open metadata information for archive
[ 1.216422] Service.FS core/hle/service/fs/fs_user.cpp:GetFormatInfo:910: Failed to retrieve the format info
[ 1.259157] Service.FS core/hle/service/fs/fs_user.cpp:OpenArchive:464: failed to get a handle for archive archive_id=0x00000006 archive_path=[Binary: 010000004816000000000000]
[ 1.274869] Service.LDR core/hle/service/ldr_ro/cro_helper.cpp:ApplyStaticAnonymousSymbolToCRS:528: CRO “LangSelect” exports 0 static anonymous symbols
[ 1.275376] Service.LDR core/hle/service/ldr_ro/cro_helper.cpp:ApplyModuleExport:954: CRO “LangSelect” exports 0 indexed symbols to “|static|”
[ 1.275468] Service.LDR core/hle/service/ldr_ro/cro_helper.cpp:ApplyModuleExport:971: CRO “LangSelect” exports 2 anonymous symbols to “|static|”
[ 1.275668] Service.LDR core/hle/service/ldr_ro/ldr_ro.cpp:LoadCRO:445: CRO “LangSelect” loaded at 0x006AE000, fixed_end=0x006B9000
[ 1.476235] Render.OpenGL video_core/renderer_opengl/gl_shader_util.cpp:LoadProgram:38: Error compiling vertex shader:
ERROR: 0:2: ‘location’ : syntax error syntax error

[ 1.478488] Render.OpenGL video_core/renderer_opengl/gl_shader_util.cpp:LoadProgram:88: Vertex shader:
#version 330 core
layout(location = 0) in vec4 vert_position;
layout(location = 1) in vec4 vert_color;
layout(location = 2) in vec2 vert_texcoord0;
layout(location = 3) in vec2 vert_texcoord1;
layout(location = 4) in vec2 vert_texcoord2;
layout(location = 5) in float vert_texcoord0_w;
layout(location = 6) in vec4 vert_normquat;
layout(location = 7) in vec3 vert_view;

out vec4 primary_color;
out vec2 texcoord[3];
out float texcoord0_w;
out vec4 normquat;
out vec3 view;

#define NUM_TEV_STAGES 6
#define NUM_LIGHTS 8

struct LightSrc {
vec3 specular_0;
vec3 specular_1;
vec3 diffuse;
vec3 ambient;
vec3 position;
vec3 spot_direction;
float dist_atten_bias;
float dist_atten_scale;
};

layout (std140) uniform shader_data {
vec2 framebuffer_scale;
int alphatest_ref;
float depth_scale;
float depth_offset;
int scissor_x1;
int scissor_y1;
int scissor_x2;
int scissor_y2;
vec3 fog_color;
vec2 proctex_noise_f;
vec2 proctex_noise_a;
vec2 proctex_noise_p;
vec3 lighting_global_ambient;
LightSrc light_src[NUM_LIGHTS];
vec4 const_color[NUM_TEV_STAGES];
vec4 tev_combiner_buffer_color;
vec4 clip_coef;
};

void main() {
primary_color = vert_color;
texcoord[0] = vert_texcoord0;
texcoord[1] = vert_texcoord1;
texcoord[2] = vert_texcoord2;
texcoord0_w = vert_texcoord0_w;
normquat = vert_normquat;
view = vert_view;
gl_Position = vert_position;
gl_ClipDistance[0] = -vert_position.z; // fixed PICA clipping plane z <= 0
gl_ClipDistance[1] = dot(clip_coef, vert_position);
}

[ 1.478590] Render.OpenGL video_core/renderer_opengl/gl_shader_util.cpp:LoadProgram:89: Fragment shader:

#version 330 core

in vec4 primary_color;
in vec2 texcoord[3];
in float texcoord0_w;
in vec4 normquat;
in vec3 view;

in vec4 gl_FragCoord;

out vec4 color;

uniform sampler2D tex[3];
uniform samplerBuffer lighting_lut;
uniform samplerBuffer fog_lut;
uniform samplerBuffer proctex_noise_lut;
uniform samplerBuffer proctex_color_map;
uniform samplerBuffer proctex_alpha_map;
uniform samplerBuffer proctex_lut;
uniform samplerBuffer proctex_diff_lut;

#define NUM_TEV_STAGES 6
#define NUM_LIGHTS 8

struct LightSrc {
vec3 specular_0;
vec3 specular_1;
vec3 diffuse;
vec3 ambient;
vec3 position;
vec3 spot_direction;
float dist_atten_bias;
float dist_atten_scale;
};

layout (std140) uniform shader_data {
vec2 framebuffer_scale;
int alphatest_ref;
float depth_scale;
float depth_offset;
int scissor_x1;
int scissor_y1;
int scissor_x2;
int scissor_y2;
vec3 fog_color;
vec2 proctex_noise_f;
vec2 proctex_noise_a;
vec2 proctex_noise_p;
vec3 lighting_global_ambient;
LightSrc light_src[NUM_LIGHTS];
vec4 const_color[NUM_TEV_STAGES];
vec4 tev_combiner_buffer_color;
vec4 clip_coef;
};

// Rotate the vector v by the quaternion q
vec3 quaternion_rotate(vec4 q, vec3 v) {
return v + 2.0 * cross(q.xyz, cross(q.xyz, v) + q.w * v);
}

float LookupLightingLUT(int lut_index, int index, float delta) {
vec2 entry = texelFetch(lighting_lut, lut_index * 256 + index).rg;
return entry.r + entry.g * delta;
}

float LookupLightingLUTUnsigned(int lut_index, float pos) {
int index = clamp(int(pos * 256.0), 0, 255);
float delta = pos * 256.0 - index;
return LookupLightingLUT(lut_index, index, delta);
}

float LookupLightingLUTSigned(int lut_index, float pos) {
int index = clamp(int(pos * 128.0), -128, 127);
float delta = pos * 128.0 - index;
if (index < 0) index += 256;
return LookupLightingLUT(lut_index, index, delta);
}

void main() {
vec4 primary_fragment_color = vec4(0.0);
vec4 secondary_fragment_color = vec4(0.0);
if (!(gl_FragCoord.x >= scissor_x1 && gl_FragCoord.y >= scissor_y1 && gl_FragCoord.x < scissor_x2 && gl_FragCoord.y < scissor_y2)) discard;
float z_over_w = 2.0 * gl_FragCoord.z - 1.0;
float depth = z_over_w * depth_scale + depth_offset;
vec4 combiner_buffer = vec4(0.0);
vec4 next_combiner_buffer = tev_combiner_buffer_color;
vec4 last_tex_env_out = vec4(0.0);
vec3 color_results_0[3] = vec3[3](texture(tex[0], texcoord[0]).rgb, primary_color.rgb, primary_color.rgb);
vec3 color_output_0 = clamp(color_results_0[0], vec3(0.0), vec3(1.0));
float alpha_results_0[3] = float[3](texture(tex[0], texcoord[0]).a, primary_color.a, primary_color.a);
float alpha_output_0 = clamp(alpha_results_0[0], 0.0, 1.0);
last_tex_env_out = vec4(clamp(color_output_0 * 1.0, vec3(0.0), vec3(1.0)),clamp(alpha_output_0 * 1.0, 0.0, 1.0));
combiner_buffer = next_combiner_buffer;
next_combiner_buffer.rgb = last_tex_env_out.rgb;
next_combiner_buffer.a = last_tex_env_out.a;
combiner_buffer = next_combiner_buffer;
combiner_buffer = next_combiner_buffer;
vec3 color_results_3[3] = vec3[3](const_color[3].rgb, const_color[3].rgb, const_color[3].rgb);
vec3 color_output_3 = clamp(color_results_3[0], vec3(0.0), vec3(1.0));
float alpha_results_3[3] = float[3](const_color[3].a, const_color[3].a, const_color[3].a);
float alpha_output_3 = clamp(alpha_results_3[0], 0.0, 1.0);
last_tex_env_out = ve

Can you try updating your video drivers?

I already have the latest version of Nvidia drivers installed

Are you using any OpenGL hooks like MSI Afterburner, or Fraps?

I’m pretty sure I’m not using OpenGL hooks… funny thing though is this exact citra version works on my office PC(specs below)…

Operating System: Windows7
CPU: i3-4170
GPU: ?

Same problem here did u get the solution?

Try updating your video drivers from the manufacturer or getting the latest Nightly.

I did get the latest nightly and also tried the older one just doesn’t works I tried doing autoruns but ain’t helping.

Try to downgrade the graphics driver if you already have the latest one. (For both the integrated and dedicated GPU)

No luck with downgrading too .

Haven’t found any solution yet… I have been investigating my office PC in my spare time since citra worked on it… although my higher specs laptop should be able to replicate the same performance if not maybe better… if you guys found a way to make it work let me know…

@ryuukage88 This is a strange issue, I’m not exactly sure what the problem is. To get more detailed logs, follow these steps:

  1. Change your log filter to *:Info Debug:Render_OpenGL Debug:Render_Software.
  2. Get another log using Citra as you normally would, with the OpenGL renderer.
  3. In the Emulation menu, click Configure.
  4. In the Graphics tab, uncheck the Enable hardware renderer checkbox.
  5. Get another log.
  6. Check the Enable hardware renderer checkbox again.
  7. Change your log filter back to *:Info.

These logs will be quite long, so please upload them to Pastebin.

@TheKoopaKingdom thanks, I will do that as soon as I get home tomorrow…

@TheKoopaKingdom here is the link to the logs I took: https://pastebin.com/embed_js/MxGzhihn

The game runs when the hardware renderer is unchecked but in ultra mega super slow motion…

Oh, my bad, I got the log filter wrong. Since the software renderer doesn’t crash for you, a log for that probably won’t be needed. Here are the steps for just getting another OpenGL/hardware renderer log, with a better log filter:

  1. Change your log filter to *:Info Render.OpenGL:Debug.
  2. Get a log.
  3. Change your log filter back to *:Info.

I finally figured it out you guys! you just have to force the citra application to run on the best GPU… in my case I have 2 GPU that is intelHD and geforce 640m… so I headed to the nvidia control panel and selected the citra application to run using my geforce 640m… I can play pokemon sun now and I’m already at the first grand trial… no problems so far…