Post Reply 
 
Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disgaea: Afternoon of Darkness
06-04-2013, 11:40 PM
Post: #28
RE: Disgaea: Afternoon of Darkness
(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]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Disgaea: Afternoon of Darkness - sansa - 03-12-2013, 11:04 PM
RE: Disgaea: Afternoon of Darkness - [Unknown] - 06-04-2013 11:40 PM
RE: Disgaea: Afternoon of Darkness - sahat - 06-03-2014, 01:00 AM
RE: Disgaea: Afternoon of Darkness - Jayce - 02-25-2015, 02:03 PM
RE: Disgaea: Afternoon of Darkness - Jayce - 02-26-2015, 03:22 AM
RE: Disgaea: Afternoon of Darkness - Jayce - 02-26-2015, 08:24 AM
Disgaea: Afternoon of Darkness - Helel - 11-15-2014, 01:39 PM

Forum Jump: