Hi , I have upgraded fontconfig to 2.9.0. and in fontconfig makefile its compiling with '' -g '' option.. ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man make make install Still showing the same issue as 53,200 (19,200 direct, 34,000 indirect) bytes in 50 blocks are definitely lost in loss record 155 of 158 ==11740== at 0x4025016: realloc (vg_replace_malloc.c:525) ==11740== by 0x4C66966: ??? (in /usr/lib/libfontconfig.so.1.4.4) ==11740== by 0x4C547A1: ??? (in /usr/lib/libfontconfig.so.1.4.4) ==11740== by 0x4C55C57: FcConfigSubstituteWithPat (in /usr/lib/libfontconfig.so.1.4.4) ==11740== by 0x4C63DC0: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.4.4) ==11740== by 0x4C63F09: FcFontMatch (in /usr/lib/libfontconfig.so.1.4.4) ==11740== by 0x4B344B6: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:74) ==11740== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49) Archana. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120515/556b5106/attachment.html>
That looks like you failed to update. /usr/lib/libfontconfig.so.1.4.4 isn''t 2.9.0 anyway. it should be /usr/lib/libfontconfig.so.1.5.0 if you install it properly. On Tue, May 15, 2012 at 4:08 PM, Archana :) <archnavnr24 at gmail.com> wrote:> Hi , > > I have upgraded? fontconfig to 2.9.0. and in fontconfig makefile its > compiling with '' -g '' option.. > > ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man > make > make install > > Still? showing the same issue as > > 53,200 (19,200 direct, 34,000 indirect) bytes in 50 blocks are definitely > lost in loss record 155 of 158 > ==11740==??? at 0x4025016: realloc (vg_replace_malloc.c:525) > ==11740==??? by 0x4C66966: ??? (in /usr/lib/libfontconfig.so.1.4.4) > ==11740==??? by 0x4C547A1: ??? (in /usr/lib/libfontconfig.so.1.4.4) > ==11740==??? by 0x4C55C57: FcConfigSubstituteWithPat (in > /usr/lib/libfontconfig.so.1.4.4) > ==11740==??? by 0x4C63DC0: FcFontRenderPrepare (in > /usr/lib/libfontconfig.so.1.4.4) > ==11740==??? by 0x4C63F09: FcFontMatch (in /usr/lib/libfontconfig.so.1.4.4) > ==11740==??? by 0x4B344B6: FontConfig::Find(char const*, bool, bool) > (unixfontconfig.cpp:74) > ==11740==??? by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) > (unixfontconfig.cpp:49) > > Archana. > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig >-- Akira TAGOH
Although I can''t reproduce that problem here, do you see same error with fc-match say? I''m suspecting that that code may not call FcPatternDestroy() for the result of FcFontMatch(). On Tue, May 15, 2012 at 6:45 PM, Archana :) <archnavnr24 at gmail.com> wrote:> Hey sorry i unkowningly have sent u the previous log.. after fontconfig > updation below is the valgrind error.. > > 42,500 (15,360 direct, 27,140 indirect) bytes in 40 blocks are definitely > lost in loss record 162 of 165 > ==12490==??? at 0x4025016: realloc (vg_replace_malloc.c:525) > ==12490==??? by 0x4C67016: FcPatternObjectInsertElt (fcpat.c:358) > ==12490==??? by 0x4C54911: FcConfigPatternAdd (fccfg.c:1355) > ==12490==??? by 0x4C55E85: FcConfigSubstituteWithPat (fccfg.c:1559) > ==12490==??? by 0x4C64310: FcFontRenderPrepare (fcmatch.c:433) > ==12490==??? by 0x4C644C7: FcFontMatch (fcmatch.c:564) > ==12490==??? by 0x4B344C4: FontConfig::Find(char const*, bool, bool) > (unixfontconfig.cpp:75) > ==12490==??? by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) > (unixfontconfig.cpp:49) > ==12490==??? by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, > FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) > ==12490==??? by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, > void**>::Invoke(void*) (si_wrappers.cpp:130) > ==12490==??? by 0x63A1331: > CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) > > Archana. > > > On Tue, May 15, 2012 at 2:35 PM, Akira TAGOH <akira at tagoh.org> wrote: > >> That looks like you failed to update. /usr/lib/libfontconfig.so.1.4.4 >> isn''t 2.9.0 anyway. it should be /usr/lib/libfontconfig.so.1.5.0 if >> you install it properly. >> > > >> >> On Tue, May 15, 2012 at 4:08 PM, Archana :) <archnavnr24 at gmail.com> wrote: >> > Hi , >> > >> > I have upgraded? fontconfig to 2.9.0. and in fontconfig makefile its >> > compiling with '' -g '' option.. >> > >> > ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man >> > make >> > make install >> > >> > Still? showing the same issue as >> > >> > 53,200 (19,200 direct, 34,000 indirect) bytes in 50 blocks are >> > definitely >> > lost in loss record 155 of 158 >> > ==11740==??? at 0x4025016: realloc (vg_replace_malloc.c:525) >> > ==11740==??? by 0x4C66966: ??? (in /usr/lib/libfontconfig.so.1.4.4) >> > ==11740==??? by 0x4C547A1: ??? (in /usr/lib/libfontconfig.so.1.4.4) >> > ==11740==??? by 0x4C55C57: FcConfigSubstituteWithPat (in >> > /usr/lib/libfontconfig.so.1.4.4) >> > ==11740==??? by 0x4C63DC0: FcFontRenderPrepare (in >> > /usr/lib/libfontconfig.so.1.4.4) >> > ==11740==??? by 0x4C63F09: FcFontMatch (in >> > /usr/lib/libfontconfig.so.1.4.4) >> > ==11740==??? by 0x4B344B6: FontConfig::Find(char const*, bool, bool) >> > (unixfontconfig.cpp:74) >> > ==11740==??? by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) >> > (unixfontconfig.cpp:49) >> > >> > Archana. >> > _______________________________________________ >> > Fontconfig mailing list >> > Fontconfig at lists.freedesktop.org >> > http://lists.freedesktop.org/mailman/listinfo/fontconfig >> > >> >> >> >> -- >> Akira TAGOH > >-- Akira TAGOH
Hi, Yes, i am able to see many errors related to FcFontMatch in valgrind..FcPatternDestroy() function is called after FcFontMatch() in my code below is the function...... FcPattern* match = FcFontMatch(0, pattern, &result); if(match) { FcChar8* str = 0; if(FcPatternGetString(match, FC_FILE, 0, &str) =FcResultMatch) { filename = (const char*)str; } } FcPatternDestroy(pattern); } printf("return from FontConfig::Find\n"); return filename; } And in valgrind other FcFontMatch related errors are-------- 80 bytes in 4 blocks are possibly lost in loss record 78 of 160 ==15388== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==15388== by 0x4C67952: FcPatternObjectAddWithBinding (fcpat.c:479) ==15388== by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537) ==15388== by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420) ==15388== by 0x4C644C7: FcFontMatch (fcmatch.c:564) ==15388== by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75) ==15388== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49) ==15388== by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) ==15388== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, void**>::Invoke(void*) (si_wrappers.cpp:130) ==15388== by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) ==15388== by 0x62550B9: MM_SI_CreateFont(PlatformPlayer*, FI_FontInfo const*, void**) (si_wrappers.cpp:1067) ==15388== by 0x6242DA8: PlatformEDevice::CreatePlatformFont(PlatformECharFormat*, int, unsigned char) (FL_fonts.cpp:1157) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 80 bytes in 2 blocks are possibly lost in loss record 77 of 160 ==15388== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==15388== by 0x4C61612: FcLangSetCreate (fclang.c:284) ==15388== by 0x4C6172B: FcLangSetCopy (fclang.c:308) ==15388== by 0x4C678CA: FcValueSave (fcpat.c:116) ==15388== by 0x4C679B2: FcPatternObjectAddWithBinding (fcpat.c:485) ==15388== by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537) ==15388== by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420) ==15388== by 0x4C644C7: FcFontMatch (fcmatch.c:564) ==15388== by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75) ==15388== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49) ==15388== by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) ==15388== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, void**>::Invoke(void*) (si_wrappers.cpp:130) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 284 bytes in 7 blocks are possibly lost in loss record 103 of 160 ==15388== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==15388== by 0x4C667A6: FcStrStaticName (fcpat.c:1065) ==15388== by 0x4C678AF: FcValueSave (fcpat.c:101) ==15388== by 0x4C679B2: FcPatternObjectAddWithBinding (fcpat.c:485) ==15388== by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537) ==15388== by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420) ==15388== by 0x4C644C7: FcFontMatch (fcmatch.c:564) ==15388== by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75) ==15388== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:49) ==15388== by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) ==15388== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, void**>::Invoke(void*) (si_wrappers.cpp:130) ==15388== by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Can u help me out to fix this bug as soon as possible.. Archana.. On Tue, May 15, 2012 at 4:25 PM, Akira TAGOH <akira at tagoh.org> wrote:> Although I can''t reproduce that problem here, do you see same error > with fc-match say? I''m suspecting that that code may not call > FcPatternDestroy() for the result of FcFontMatch(). > > On Tue, May 15, 2012 at 6:45 PM, Archana :) <archnavnr24 at gmail.com> wrote: > > Hey sorry i unkowningly have sent u the previous log.. after fontconfig > > updation below is the valgrind error.. > > > > 42,500 (15,360 direct, 27,140 indirect) bytes in 40 blocks are definitely > > lost in loss record 162 of 165 > > ==12490== at 0x4025016: realloc (vg_replace_malloc.c:525) > > ==12490== by 0x4C67016: FcPatternObjectInsertElt (fcpat.c:358) > > ==12490== by 0x4C54911: FcConfigPatternAdd (fccfg.c:1355) > > ==12490== by 0x4C55E85: FcConfigSubstituteWithPat (fccfg.c:1559) > > ==12490== by 0x4C64310: FcFontRenderPrepare (fcmatch.c:433) > > ==12490== by 0x4C644C7: FcFontMatch (fcmatch.c:564) > > ==12490== by 0x4B344C4: FontConfig::Find(char const*, bool, bool) > > (unixfontconfig.cpp:75) > > ==12490== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) > > (unixfontconfig.cpp:49) > > ==12490== by 0x4B3522E: SIInterface::SI_CreateFont(MM_Object*, > > FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) > > ==12490== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo > const*, > > void**>::Invoke(void*) (si_wrappers.cpp:130) > > ==12490== by 0x63A1331: > > CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) > > > > Archana. > > > > > > On Tue, May 15, 2012 at 2:35 PM, Akira TAGOH <akira at tagoh.org> wrote: > > > >> That looks like you failed to update. /usr/lib/libfontconfig.so.1.4.4 > >> isn''t 2.9.0 anyway. it should be /usr/lib/libfontconfig.so.1.5.0 if > >> you install it properly. > >> > > > > > >> > >> On Tue, May 15, 2012 at 4:08 PM, Archana :) <archnavnr24 at gmail.com> > wrote: > >> > Hi , > >> > > >> > I have upgraded fontconfig to 2.9.0. and in fontconfig makefile its > >> > compiling with '' -g '' option.. > >> > > >> > ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man > >> > make > >> > make install > >> > > >> > Still showing the same issue as > >> > > >> > 53,200 (19,200 direct, 34,000 indirect) bytes in 50 blocks are > >> > definitely > >> > lost in loss record 155 of 158 > >> > ==11740== at 0x4025016: realloc (vg_replace_malloc.c:525) > >> > ==11740== by 0x4C66966: ??? (in /usr/lib/libfontconfig.so.1.4.4) > >> > ==11740== by 0x4C547A1: ??? (in /usr/lib/libfontconfig.so.1.4.4) > >> > ==11740== by 0x4C55C57: FcConfigSubstituteWithPat (in > >> > /usr/lib/libfontconfig.so.1.4.4) > >> > ==11740== by 0x4C63DC0: FcFontRenderPrepare (in > >> > /usr/lib/libfontconfig.so.1.4.4) > >> > ==11740== by 0x4C63F09: FcFontMatch (in > >> > /usr/lib/libfontconfig.so.1.4.4) > >> > ==11740== by 0x4B344B6: FontConfig::Find(char const*, bool, bool) > >> > (unixfontconfig.cpp:74) > >> > ==11740== by 0x4B3439C: FontConfig::FindFont(char const*, bool, > bool) > >> > (unixfontconfig.cpp:49) > >> > > >> > Archana. > >> > _______________________________________________ > >> > Fontconfig mailing list > >> > Fontconfig at lists.freedesktop.org > >> > http://lists.freedesktop.org/mailman/listinfo/fontconfig > >> > > >> > >> > >> > >> -- > >> Akira TAGOH > > > > > > > > -- > Akira TAGOH >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120517/96fb449a/attachment.html>
Hi, const char* FontConfig::Find(const char* family, bool isBold, bool isItalic) { const char* filename = NULL; int weight = FC_WEIGHT_MEDIUM; if(isBold) { weight = FC_WEIGHT_BOLD; } int slant = FC_SLANT_ROMAN; if(isItalic) { slant = FC_SLANT_ITALIC; } FcPattern* pattern = FcPatternBuild(NULL, FC_SCALABLE, FcTypeBool, true, FC_FAMILY, FcTypeString, family, FC_WEIGHT, FcTypeInteger, weight, FC_SLANT, FcTypeInteger, slant, NULL); if(pattern) { FcConfigSubstitute(0, pattern, FcMatchPattern); FcDefaultSubstitute(pattern); FcResult result; FcPattern* match = FcFontMatch(0, pattern, &result); if(match) { FcChar8* str = 0; if(FcPatternGetString(match, FC_FILE, 0, &str) =FcResultMatch) { filename = (const char*)str; } FcPatternDestroy(match);---------------------------------------*added newly* } FcPatternDestroy(pattern); } printf("return from FontConfig::Find\n"); return filename; } since const char* filename = NULL; i have to set the filename pointer with str.I cannot copy rite.. *With this change now that error has gone ,but still two more FcFontMatch errors are dere i.e* 284 bytes in 7 blocks are possibly lost in loss record 97 of 140 ==17210== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==17210== by 0x4C667A6: FcStrStaticName (fcpat.c:1065) ==17210== by 0x4C678AF: FcValueSave (fcpat.c:101) ==17210== by 0x4C679B2: FcPatternObjectAddWithBinding (fcpat.c:485) ==17210== by 0x4C681CB: FcPatternObjectAdd (fcpat.c:537) ==17210== by 0x4C64287: FcFontRenderPrepare (fcmatch.c:420) ==17210== by 0x4C644C7: FcFontMatch (fcmatch.c:564) ==17210== by 0x4B344C4: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:77) ==17210== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:50) ==17210== by 0x4B3523A: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) ==17210== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, void**>::Invoke(void*) (si_wrappers.cpp:130) ==17210== by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 16 bytes in 1 blocks are possibly lost in loss record 33 of 140 ==17210== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==17210== by 0x4C667A6: FcStrStaticName (fcpat.c:1065) ==17210== by 0x4C68283: FcPatternObjectAddString (fcpat.c:655) ==17210== by 0x4C5A570: FcDefaultSubstitute (fcdefault.c:167) ==17210== by 0x4B344AA: FontConfig::Find(char const*, bool, bool) (unixfontconfig.cpp:75) ==17210== by 0x4B3439C: FontConfig::FindFont(char const*, bool, bool) (unixfontconfig.cpp:50) ==17210== by 0x4B3523A: SIInterface::SI_CreateFont(MM_Object*, FI_FontInfo const*, void**) (SITextDrawImpl.cpp:324) ==17210== by 0x625BDE7: HostCallback2<unsigned short, FI_FontInfo const*, void**>::Invoke(void*) (si_wrappers.cpp:130) ==17210== by 0x63A1331: CorePlayer::InvokeHostCallback(VirtualHostCallback&) (splayer.cpp:12240) ==17210== by 0x62550B9: MM_SI_CreateFont(PlatformPlayer*, FI_FontInfo const*, void**) (si_wrappers.cpp:1067) ==17210== by 0x6242DA8: PlatformEDevice::CreatePlatformFont(PlatformECharFormat*, int, unsigned char) (FL_fonts.cpp:1157) ==17210== by 0x62422EA: PlatformEDevice::SetCharFormat(PlatformECharFormat*, int) (FL_fonts.cpp:640) ==17210=-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Archana. On Thu, May 17, 2012 at 12:13 PM, Akira TAGOH <akira at tagoh.org> wrote:> On Thu, May 17, 2012 at 2:51 PM, Archana Mathari <archnavnr24 at gmail.com> > wrote: > > Hi, > > > > Yes, i am able to see many errors related to FcFontMatch in > > valgrind..FcPatternDestroy() function is called after FcFontMatch() in my > > code below is the function...... > > > > FcPattern* match = FcFontMatch(0, pattern, &result); > > if(match) { > > FcChar8* str = 0; > > if(FcPatternGetString(match, FC_FILE, 0, &str) => > FcResultMatch) { > > filename = (const char*)str; > > } > > } > > FcPatternDestroy(pattern); > > } > > printf("return from FontConfig::Find\n"); > > return filename; > > } > > You have to call FcPatternDestroy() for "match" too. due to that, you > need to copy "str" to "filename" instead of set a pointer. > > -- > Akira TAGOH >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120517/7c27a7b1/attachment.html>
On Thu, May 17, 2012 at 6:52 PM, Archana Mathari <archnavnr24 at gmail.com> wrote:> since const char* filename = NULL; i have to set the filename pointer with > str.I cannot copy rite..I don''t care what your code is supposed to work, this is a quote from doc: Note that these (like FcPatternGet) do not make a copy of any data structure referenced by the return value. So it will be freed by FcPatternDestroy(). I guess you know what that means :)> With this change now that error has gone ,but still two more FcFontMatchWe don''t have FcStrStaticName() in git anymore. so it might be improved. please check if it works with git master. -- Akira TAGOH
Hi Akira, I was out of station for sometime, So i couldnt able to look in to the issue. As per your last mail regarding *FcStrStaticName() *,u asked me to take fontconfig from git repository and compile, i took fontconfig-2.9.0 from http://cgit.freedesktop.org/fontconfig/ site and compiled .. But still these FcStrStaticName() errors exit.. can u suggest me Archana M. On Thu, May 17, 2012 at 8:16 PM, Akira TAGOH <akira at tagoh.org> wrote:> As I said, NO FcStrStaticName() available in git anymore. just try to > build fontconfig from git and see how it works. > > Please don''t forget to add the list in Cc next time. it would be > always good to share the information public. > > On Thu, May 17, 2012 at 9:17 PM, Archana Mathari <archnavnr24 at gmail.com> > wrote: > > Hi, > > > > 32 bytes in 2 blocks are possibly lost in loss record 52 of 140 > > ==17933== at 0x4024F20: malloc (vg_replace_malloc.c:236) > > ==17933== by 0x4C667A6: FcStrStaticName (fcpat.c:1065) > > ==17933== by 0x4C6B81D: FcPopExpr (fcxml.c:179) > > ==17933== by 0x4C6B951: FcPopBinary (fcxml.c:1775) > > ==17933== by 0x4C6D508: FcEndElement (fcxml.c:1958) > > ==17933== by 0x4EB7AD4: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB8920: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB9E30: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EBA9E9: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB16CB: XML_ParseBuffer (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4C6A95A: FcConfigParseAndLoad (fcxml.c:2782) > > ==17933== by 0x4C6ACAB: FcConfigParseAndLoad (fcxml.c:2668) > > ==17933=> > ==17933== 48 bytes in 2 blocks are possibly lost in loss record 60 of 140 > > ==17933== at 0x4024F20: malloc (vg_replace_malloc.c:236) > > ==17933== by 0x4C667A6: FcStrStaticName (fcpat.c:1065) > > ==17933== by 0x4C6B6F9: FcExprCreateString (fcxml.c:107) > > ==17933== by 0x4C6B793: FcPopExpr (fcxml.c:1709) > > ==17933== by 0x4C6B951: FcPopBinary (fcxml.c:1775) > > ==17933== by 0x4C6D59B: FcEndElement (fcxml.c:2021) > > ==17933== by 0x4EB7AD4: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB8920: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB9E30: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EBA9E9: ??? (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4EB16CB: XML_ParseBuffer (in /lib/libexpat.so.1.5.2) > > ==17933== by 0x4C6A95A: FcConfigParseAndLoad (fcxml.c:2782) > > > > Can u please tell me how to check FcStrStaticName() in git > master..Because i > > am new to this..And i am getting almost all the FcStrStaticName() related > > errors. > > > > Archana. > > > > > > > > On Thu, May 17, 2012 at 3:51 PM, Akira TAGOH <akira at tagoh.org> wrote: > >> > >> On Thu, May 17, 2012 at 6:52 PM, Archana Mathari <archnavnr24 at gmail.com > > > >> wrote: > >> > since const char* filename = NULL; i have to set the filename pointer > >> > with > >> > str.I cannot copy rite.. > >> > >> I don''t care what your code is supposed to work, this is a quote from > doc: > >> > >> Note that these (like FcPatternGet) do not make a copy of any data > >> structure referenced by the return value. > >> > >> So it will be freed by FcPatternDestroy(). I guess you know what that > >> means :) > >> > >> > With this change now that error has gone ,but still two more > FcFontMatch > >> > >> We don''t have FcStrStaticName() in git anymore. so it might be > >> improved. please check if it works with git master. > >> > >> -- > >> Akira TAGOH > > > > > > > > -- > Akira TAGOH >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120529/c2026115/attachment.htm>
On Tue, May 29, 2012 at 7:57 PM, Archana Mathari <archnavnr24 at gmail.com> wrote:> As per your last mail regarding FcStrStaticName() ,u asked me to take > fontconfig from git repository and compile, i took fontconfig-2.9.0 from > http://cgit.freedesktop.org/fontconfig/ site and compiled .. > But still these FcStrStaticName() errors exit.. can u suggest meNot 2.9.0 but master. you can checkout the repo with git clone git://anongit.freedesktop.org/fontconfig. build it then.
Ya i compiled fontconfig from git master..now FcStrStaticName() is gone but showing others errors related to *freetype* now 14 bytes in 1 blocks are possibly lost in loss record 27 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4B6A07C: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6E14A: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FE52: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FFA0: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B707AE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4BA6A05: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4BA8471: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B7EDF4: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B7048C: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B72B78: FT_Open_Face (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B73CBE: FT_New_Face (in /usr/lib/libfreetype.so.6.3.22) ==16598===16598== 20 bytes in 1 blocks are possibly lost in loss record 47 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4C6B98E: FcSharedStr (fcpat.c:1077) ==16598== by 0x4C70EED: FcPopExpr (fcxml.c:175) ==16598== by 0x4C71021: FcPopBinary (fcxml.c:1789) ==16598== by 0x4C71345: FcParseTest (fcxml.c:2202) ==16598== by 0x4C7298C: FcEndElement (fcxml.c:2566) ==16598== by 0x4EBDAD4: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBE920: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBFE30: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EC09E9: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EB76CB: XML_ParseBuffer (in /lib/libexpat.so.1.5.2) ==16598== by 0x4C7001A: FcConfigParseAndLoad (fcxml.c:2950) ==16598===16598== 30 bytes in 10 blocks are possibly lost in loss record 64 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4B6A07C: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6E14A: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FE52: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FFA0: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B707AE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B70AB5: FT_Outline_New_Internal (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B70B3C: FT_Outline_New (in /usr/lib/libfreetype.so.6.3.22) ==16598== 32 bytes in 1 blocks are possibly lost in loss record 67 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4C69B6B: FcMatrixCopy (fcmatrix.c:38) ==16598== by 0x4C70EBC: FcPopExpr (fcxml.c:115) ==16598== by 0x4C71021: FcPopBinary (fcxml.c:1789) ==16598== by 0x4C71623: FcParseBinary (fcxml.c:1812) ==16598== by 0x4C72BB5: FcEndElement (fcxml.c:2654) ==16598== by 0x4EBDAD4: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBE920: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBFE30: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EC09E9: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EB76CB: XML_ParseBuffer (in /lib/libexpat.so.1.5.2) ==16598== by 0x4C7001A: FcConfigParseAndLoad (fcxml.c:2950) ==16598===16598== 32 bytes in 1 blocks are possibly lost in loss record 68 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4C69B6B: FcMatrixCopy (fcmatrix.c:38) ==16598== by 0x4C70EBC: FcPopExpr (fcxml.c:115) ==16598== by 0x4C71021: FcPopBinary (fcxml.c:1789) ==16598== by 0x4C71551: FcParseEdit (fcxml.c:2269) ==16598== by 0x4C7299C: FcEndElement (fcxml.c:2569) ==16598== by 0x4EBDAD4: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBE920: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EBFE30: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EC09E9: ??? (in /lib/libexpat.so.1.5.2) ==16598== by 0x4EB76CB: XML_ParseBuffer (in /lib/libexpat.so.1.5.2) ==16598== by 0x4C7001A: FcConfigParseAndLoad (fcxml.c:2950) ==16598===16598== 32 bytes in 1 blocks are possibly lost in loss record 69 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4B6A07C: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6E14A: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FE52: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B6FFA0: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B707AE: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4BA6A05: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4BA86A1: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B7EDF4: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B7048C: ??? (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B72B78: FT_Open_Face (in /usr/lib/libfreetype.so.6.3.22) ==16598== by 0x4B73CBE: FT_New_Face (in /usr/lib/libfreetype.so.6.3.22) ==16598===16598== 48 bytes in 2 blocks are possibly lost in loss record 80 of 188 ==16598== at 0x4024F20: malloc (vg_replace_malloc.c:236) ==16598== by 0x4C6B98E: FcSharedStr (fcpat.c:1077) ==16598== by 0x4C70EED: FcPopExpr (fcxml.c:175) ==16598== by 0x4C71021: FcPopBinary (fcxml.c:1789) ArchanaM. On Tue, May 29, 2012 at 5:12 PM, Akira TAGOH <akira at tagoh.org> wrote:> On Tue, May 29, 2012 at 7:57 PM, Archana Mathari <archnavnr24 at gmail.com> > wrote: > > As per your last mail regarding FcStrStaticName() ,u asked me to take > > fontconfig from git repository and compile, i took fontconfig-2.9.0 from > > http://cgit.freedesktop.org/fontconfig/ site and compiled .. > > But still these FcStrStaticName() errors exit.. can u suggest me > > Not 2.9.0 but master. you can checkout the repo with git clone > git://anongit.freedesktop.org/fontconfig. build it then. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120529/9b29602b/attachment-0001.htm>