(06-04-2013 03:54 PM)daxtsu Wrote: Here's a stack trace of the crash:
Code:
> PPSSPPWindows64.exe!_AtracReadbuffer(void * opaque, unsigned char * buf, int buf_size) Line 868 C++
PPSSPPWindows64.exe!fill_buffer(AVIOContext * s) Line 429 C
PPSSPPWindows64.exe!avio_rl16(AVIOContext * s) Line 566 C
PPSSPPWindows64.exe!avio_rl32(AVIOContext * s) Line 583 C
PPSSPPWindows64.exe!find_tag(AVIOContext * pb, unsigned int tag1) Line 81 C
PPSSPPWindows64.exe!wav_read_packet(AVFormatContext * s, AVPacket * pkt) Line 493 C
PPSSPPWindows64.exe!ff_read_packet(AVFormatContext * s, AVPacket * pkt) Line 793 C
PPSSPPWindows64.exe!read_frame_internal(AVFormatContext * s, AVPacket * pkt) Line 1438 C
PPSSPPWindows64.exe!av_read_frame(AVFormatContext * s, AVPacket * pkt) Line 1540 C
PPSSPPWindows64.exe!seek_frame_generic(AVFormatContext * s, int stream_index, __int64 timestamp, int flags) Line 2061 C
PPSSPPWindows64.exe!seek_frame_internal(AVFormatContext * s, int stream_index, __int64 timestamp, int flags) Line 2130 C
PPSSPPWindows64.exe!av_seek_frame(AVFormatContext * s, int stream_index, __int64 timestamp, int flags) Line 2152 C
PPSSPPWindows64.exe!sceAtracDecodeData(int atracID, unsigned int outAddr, unsigned int numSamplesAddr, unsigned int finishFlagAddr, unsigned int remainAddr) Line 504 C++
PPSSPPWindows64.exe!WrapU_IUUUU<&sceAtracDecodeData>() Line 451 C++
PPSSPPWindows64.exe!CallSyscall(unsigned int op) Line 468 C++
I poked around a bit but couldn't figure out why. The memcpy() seemed to be within reasonable bounds, and I added a ton of safety bounds checks without any luck. Only commenting out the memcpy (which obviously disables sound/music/proper decoding) helped. But, I was pretty tired so I may have missed something.
Also debug was crashing in ffmpeg rather than ppsspp for some reason...
-[Unknown]