{"action":"created","issue":{"url":"https://api.github.com/repos/hrydgard/ppsspp/issues/7601","labels_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/7601/labels{/name}","comments_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/7601/comments","events_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/7601/events","html_url":"https://github.com/hrydgard/ppsspp/issues/7601","id":61920553,"number":7601,"title":"Gripshift freeze in-game","user":{"login":"sum2012","id":2177532,"avatar_url":"https://avatars.githubusercontent.com/u/2177532?v=3","gravatar_id":"","url":"https://api.github.com/users/sum2012","html_url":"https://github.com/sum2012","followers_url":"https://api.github.com/users/sum2012/followers","following_url":"https://api.github.com/users/sum2012/following{/other_user}","gists_url":"https://api.github.com/users/sum2012/gists{/gist_id}","starred_url":"https://api.github.com/users/sum2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sum2012/subscriptions","organizations_url":"https://api.github.com/users/sum2012/orgs","repos_url":"https://api.github.com/users/sum2012/repos","events_url":"https://api.github.com/users/sum2012/events{/privacy}","received_events_url":"https://api.github.com/users/sum2012/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-15T23:32:46Z","updated_at":"2015-12-29T22:26:39Z","closed_at":null,"body":"There is a work around for USA version\r\nhttp://forums.ppsspp.org/showthread.php?tid=1040&pid=104256#pid104256\r\n@unknownbrackets \r\nv1.0.1-177-g0b7ae3d \r\nMusic volume zero (good) log:\r\nhttps://drive.google.com/file/d/0B3OaSdeV0L8kNXFlcEZXbXZIOFU/view?usp=sharing\r\nMusic volume full (bad) log:\r\nhttps://drive.google.com/file/d/0B3OaSdeV0L8kYkd2VGIwcmdPLW8/view?usp=sharing\r\n"},"comment":{"url":"https://api.github.com/repos/hrydgard/ppsspp/issues/comments/167890563","html_url":"https://github.com/hrydgard/ppsspp/issues/7601#issuecomment-167890563","issue_url":"https://api.github.com/repos/hrydgard/ppsspp/issues/7601","id":167890563,"user":{"login":"unknownbrackets","id":191233,"avatar_url":"https://avatars.githubusercontent.com/u/191233?v=3","gravatar_id":"","url":"https://api.github.com/users/unknownbrackets","html_url":"https://github.com/unknownbrackets","followers_url":"https://api.github.com/users/unknownbrackets/followers","following_url":"https://api.github.com/users/unknownbrackets/following{/other_user}","gists_url":"https://api.github.com/users/unknownbrackets/gists{/gist_id}","starred_url":"https://api.github.com/users/unknownbrackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unknownbrackets/subscriptions","organizations_url":"https://api.github.com/users/unknownbrackets/orgs","repos_url":"https://api.github.com/users/unknownbrackets/repos","events_url":"https://api.github.com/users/unknownbrackets/events{/privacy}","received_events_url":"https://api.github.com/users/unknownbrackets/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T22:26:39Z","updated_at":"2015-12-29T22:26:39Z","body":"You're right that the `sceAtracGetStreamDataInfo` result is important.\r\n\r\n```\r\nD[ME]: HLE\\sceAtrac.cpp:1129 00000000=sceAtracDecodeData(0, 08d87800, 09fdedb0[00000800], 09fdedb4[00000000], 09fdeda0[109])\r\nD[ME]: HLE\\sceAtrac.cpp:1393 0=sceAtracGetRemainFrame(0, 09fdeda0[0000006d])\r\nD[ME]: HLE\\sceAtrac.cpp:1482 sceAtracGetStreamDataInfo(0, 09fdeda4[08d69700], 09fdeda8[0001e000], 09fdedac[0001e000])\r\nI[KERNEL]: HLE\\sceKernelThread.cpp:1943 790=sceKernelCreateThread(FMOD async FILE thread, 089b3108, 00000064, 4096, 00000000, 00000000)\r\nI[KERNEL]: HLE\\sceKernelThread.cpp:2014 0=sceKernelStartThread(790, 4, 00000000)\r\nD[ME]: HLE\\sceAtrac.cpp:968 0=sceAtracAddStreamData(0, 0001e000)\r\nD[ME]: HLE\\sceAtrac.cpp:1129 00000000=sceAtracDecodeData(0, 08d622b0, 09fdedb0[00000800], 09fdedb4[00000000], 09fdeda0[327])\r\n```\r\n\r\nWhen it runs out of the original data it had (109 remaining frames), it gets to 218.  That's where it dies:\r\n\r\n```\r\nD[ME]: HLE\\sceAtrac.cpp:1129 00000000=sceAtracDecodeData(0, 08d622b0, 09fdedb0[00000800], 09fdedb4[00000000], 09fdeda0[219])\r\nD[ME]: HLE\\sceAtrac.cpp:1393 0=sceAtracGetRemainFrame(0, 09fdeda0[000000db])\r\nI[ME]: HW\\MediaEngine.cpp:87 FF: Invalid gain location: ch=0, sb=3, pos=1, val=6\r\nE[ME]: HLE\\sceAtrac.cpp:479 avcodec_decode_audio4: Error decoding audio -1094995529 / bebbb1b7\r\nD[ME]: HLE\\sceAtrac.cpp:1129 80630024=sceAtracDecodeData(0, 08d87800, 09fdedb0[00000000], 09fdedb4[00000001], 09fdeda0[0])\r\nI[ME]: HLE\\sceAtrac.cpp:1778 sceAtracSetData(0, 08d69700, 0001e000)\r\nW[ME]: HLE\\sceAtrac.cpp:1710 This is an atrac3+ stereo audio\r\nD[ME]: HLE\\sceAtrac.cpp:1869 sceAtracSetLoopNum(0, -1)\r\nD[ME]: HLE\\sceAtrac.cpp:1393 0=sceAtracGetRemainFrame(0, 09fbf750[000000da])\r\nD[ME]: HLE\\sceAtrac.cpp:1129 00000000=sceAtracDecodeData(0, 08d61310, 09fbf760[00000000], 09fbf764[00000000], 09fbf750[218])\r\n```\r\n\r\nBut another thing is happening here: `sceAtracSetData` isn't resetting the decode error.  Actually, #7638 fixes that, which might allow this game to \"recover\" (or might not), but there's still a bug here outside that.\r\n\r\nI think this *might* be reading the data AFTER calling `sceAtracAddStreamData`, just like I think #3650 is doing.  That would explain it, since it would've loaded in garbage.\r\n\r\n-[Unknown]"}}