[poppler] [Poppler]A bug in poppler-private.cc?

cobra.yu cobra.yu at hyweb.com.tw
Mon Aug 29 09:39:12 PDT 2011


"the globalParams is deleted and then on 
next init it is seen to be 0" 

If searching for "globalParams = 0" in the whole solution, only cpp\poppler-document.cpp(100) has such one line, but \qt4\src\poppler-private doesn't. That's the problem, isn't it?

     Cobra


-----Original message-----
From:Albert Astals Cid <aacid at kde.org>
To:poppler <poppler at lists.freedesktop.org>
Date:Mon, 29 Aug 2011 18:11:44 +0200
Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc?

A Dilluns, 29 d'agost de 2011, cobra.yu vàreu escriure:
>     Take poppler_qt4viewer for example, it creates and checks the "newdoc"
> before deleting the old "m_doc". That means, count++ before count--. But in
> my application, every PDF document is converted into QImages separately, so
> count-- happens before count++, and that's the problem.

Right, so count--, it is set to 0, the globalParams is deleted and then on 
next init it is seen to be 0 and a new globalParams is created. Still do not 
see the problem.

Albert

> 
>           Cobra
> 
> 
> -----Original message-----
> From:Albert Astals Cid <aacid at kde.org>
> To:poppler at lists.freedesktop.org
> Date:Mon, 29 Aug 2011 10:58:29 +0200
> Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc?
> 
> A Dilluns, 29 d'agost de 2011, vàreu escriure:
> > Dears,
> > 
> >      V. 0.16.6, but I'm also checking V. 0.17.2 and finding the
> >      same code.
> I will need a backtrace of your code since globalParams is guaranteed to be
> created after  DocumentData::init which is the first thing that gets done
> while trying to load a document so i can not see at all how your
> globalParams pointer can be invalid.
> 
> Albert
> 
> >          Cobra
> > 
> > -----Original message-----
> > From:Albert Astals Cid <aacid at kde.org>
> > To:cobra.yu at hyweb.com.tw
> > Date:Sun, 28 Aug 2011 20:47:37 +0200
> > Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc?
> > 
> > A Divendres, 26 d'agost de 2011, cobra.yu vàreu escriure:
> > > Dears,
> > > 
> > >     No "globalParams=0;" after line 238 of poppler-private.cc
> > >     could
> > >     be a
> > > 
> > > bug? In my application, I use a loop to load PDF files with some
> > > hex-string errors separately. The latter files with errors would
> > > confront a "globalParams" that should have been deleted, but kept
> > > the
> > > old value. And in such case, line 1579 of GlobalParams.cc: "return
> > > errQuiet;" would raise an Access Violation Exception. Maybe the
> > > addition of "globalParams=0;" after line 238 of poppler-private.cc
> > > would be a better way. Any one has also experienced this?
> > 
> > Which poppler version are you using?
> > 
> > Albert
> > 
> > >            Cobra
> > > 
> > > _______________________________________________
> > > poppler mailing list
> > > poppler at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/poppler
> 
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
_______________________________________________
poppler mailing list
poppler at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list