Markus Haist (DSPG Technologies GmbH)
2010-Dec-03 10:08 UTC
[CELT-dev] memory violation in mode_create() !
? There seems to be a memory violation when calling celt_mode_create(48000, 240). ? The function compute_pulse_cache() calls celt_alloc (the second one, bits=celt_alloc()) in order to allocate 343 byte, but it is using about 872 bytes at that location, which will be deleted by the following allocations. ? In this case the following encoder call crashes at first run. ? Sorry, my time is very limited, I cannot trace this any further now. ?Could you please check the figure given in celt_alloc() and/or the folling loop, which is populating the allocated memory.? ?The other allocations seem ok. thanks a lot, Marko. ? ? our config: ?- version = 0.9.1 ?- ARM9, FIXED_POINT, DOUBLE_PRECISION, VAR_ARRAYS ?- f<s> = 48kHz ?- frame_size = 240 (p.ch.) (--> 5ms)? ?- rate = 128 kbit/s (stereo) ?- vbr_rate = 0 ?- prediction = 2 ?- complexity = 10 ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20101203/7085b16a/attachment-0002.htm
This is very strange. Can you reproduce the problem with the regular encoder (testcelt or celtenc)? Jean-Marc On 10-12-03 05:08 AM, Markus Haist (DSPG Technologies GmbH) wrote:> > > > > There seems to be a memory violation when calling > celt_mode_create(48000, 240). > > > > The function compute_pulse_cache() calls celt_alloc (the second one, > bits=celt_alloc()) in order to allocate 343 byte, but it is using about > 872 bytes at that location, which will be deleted by the following > allocations. > > > > In this case the following encoder call crashes at first run. > > > > Sorry, my time is very limited, I cannot trace this any further now. > Could you please check the figure given in celt_alloc() and/or the > folling loop, which is populating the allocated memory. > > > > The other allocations seem ok. > > > thanks a lot, > > Marko. > > > > > > our config: > - version = 0.9.1 > - ARM9, FIXED_POINT, DOUBLE_PRECISION, VAR_ARRAYS > - f<s> = 48kHz > - frame_size = 240 (p.ch.) (--> 5ms) > - rate = 128 kbit/s (stereo) > - vbr_rate = 0 > - prediction = 2 > - complexity = 10 > > > > > > > > _______________________________________________ > celt-dev mailing list > celt-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/celt-dev