Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-07

fpc-image crashes on loading jpeg

12 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

Regarding this bug: http://bugs.freepascal.org/view.php?id=16983

Does anyone have any ideas about what I should be looking for to fix it?

I got stuck in the stack frame between #2 and #3:

0000002 0x00121d20 in JERROR_ERREXIT1$J_COMMON_PTR$J_MESSAGE_CODE$LONGWORD () 0000003 0x000fe9b0 in
FPREADJPEG_TFPREADERJPEG_$_INTERNALREAD$TSTREAM$TFPCUSTOMIMAGE_READPIXELS ()

Because there is no call to ErrExit in FPReadJPEG.pas

thanks,

Felipe Monteiro de Carvalho

Reply by email

Marco van de Voort
to Felipe Monteiro de Carvalho

In our previous episode, Felipe Monteiro de Carvalho said: [ Charset ISO-8859-1 unsupported, converting... ]

Show quoted text 14 lines
Hello, Regarding this bug: http://bugs.freepascal.org/view.php?id=16983 Does anyone have any ideas about what I should be looking for to fix it? I got stuck in the stack frame between #2 and #3: 0000002 0x00121d20 in JERROR_ERREXIT1$J_COMMON_PTR$J_MESSAGE_CODE$LONGWORD () 0000003 0x000fe9b0 in FPREADJPEG_TFPREADERJPEG_$_INTERNALREAD$TSTREAM$TFPCUSTOMIMAGE_READPIXELS () Because there is no call to ErrExit in FPReadJPEG.pas

But there is:

 FError:=jpeg_std_error;
 FInfo.err := @FError;

Maybe something ancestor can call it?

Reply by email

Felipe Monteiro de Carvalho
to Marco van de Voort

Ok, so in order to solve this problem I guess I need a RTL with debug info, so in my Mac OS X I went for:

cd ~/Programas/fpctrunk/
make clean all install INSTALL_PREFIX=~/Programas/fpctrunk/install

Then set my Lazarus compiler path to
/Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 which is a 2.5.1 compiler

But when I try to rebuild the LCL I get:

/Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 -gl -Fu. -Funonwin32 -Fuforms -Fuwidgetset
-Fu/usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl -Fiinclude -FE. -FUunits/i386-darwin -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file'
-k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -di386 alllclunits.pp
Free Pascal Compiler version 2.5.1 [2010/07/25] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Darwin for i386
Compiling alllclunits.pp
PPU Loading /usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/system.ppu PPU Invalid Version 114
/Users/felipe/Programas/lazarus/lcl/alllclunits.pp(1,1) Fatal: Can't find unit system used by AllLCLUnits

Which makes no sense, because I just built the compiler, how can the PPU version already be wrong?

Any ideas?

thanks,

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 30 lines
Ok, so in order to solve this problem I guess I need a RTL with debug info, so in my Mac OS X I went for: cd ~/Programas/fpctrunk/ make clean all install INSTALL_PREFIX=~/Programas/fpctrunk/install Then set my Lazarus compiler path to /Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 which is a 2.5.1 compiler But when I try to rebuild the LCL I get: /Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 -gl -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl -Fiinclude -FE. -FUunits/i386-darwin -k-framework -kCarbon -k-framework -kOpenGL -k'-dylib_file' -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' -di386 alllclunits.pp Free Pascal Compiler version 2.5.1 [2010/07/25] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Darwin for i386 Compiling alllclunits.pp PPU Loading /usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/system.ppu PPU Invalid Version 114 /Users/felipe/Programas/lazarus/lcl/alllclunits.pp(1,1) Fatal: Can't find unit system used by AllLCLUnits Which makes no sense, because I just built the compiler, how can the PPU version already be wrong?

Look at the compiler messags. it is not loading your freshly installed units, but the units in some other location:
/usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/

Your compiler path is wrong.

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Michael Van Canneyt
Michael Van Canneyt wrote 5 lines
Look at the compiler messags. it is not loading your freshly installed units, but the units in some other location: /usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/ Your compiler path is wrong.

I see, I had supposed that make install had put those files there in addition to my install prefix, but they are probably leftovers from a snapshot I installed a long time ago or something. Very bad that Apple doesn't build uninstallers ... what a shame.

But now I got it working, but it was all to not much gain, JPEG loading works perfectly in 2.5.1 ...

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

Now I wanted to check if it works with fixes2_2, but I can't compile it:

make clean all install INSTALL_PREFIX=~/Programas/fpcfixes2_2/install

/bin/rm -f fpcmade.i386-darwin Package.fpc ppas.sh script.res link.res /bin/rm -f *.s *_ppas.sh
make -C /Users/felipe/Programas/fpcfixes2_2/rtl 'OPT=' all make -C darwin all
/bin/mkdir -p /Users/felipe/Programas/fpcfixes2_2/rtl/units/i386-darwin /usr/local/bin/ppc386 -dNOMOUSE -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../darwin/i386 -FE.
-FU/Users/felipe/Programas/fpcfixes2_2/rtl/units/i386-darwin -di386 -dRELEASE -Us -Sg ../bsd/system.pp
wustrings.inc(78,22) Fatal: Unknown compilerproc
"fpc_unicodestr_setlength". Check if you use the correct run time library.

Mac OS X, starting compiler 2.4.0, Intel

Any ideas?

thanks,

Felipe Monteiro de Carvalho

Reply by email

Jonas Maebe
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
Now I wanted to check if it works with fixes2_2, but I can't compile it: make clean all install INSTALL_PREFIX=~/Programas/fpcfixes2_2/install

[snip]

Mac OS X, starting compiler 2.4.0, Intel

I'm pretty sure the starting compiler is not 2.4.0, since you previously said that you performed a global install of FPC 2.5.1. What does "fpc -iV" return?

Jonas

Reply by email

Felipe Monteiro de Carvalho
to Jonas Maebe
Jonas Maebe wrote
I'm pretty sure the starting compiler is not 2.4.0, since you previously said that you performed a global install of FPC 2.5.1. What does "fpc -iV" return?

My global compiler is 2.4.0, those global paths were probably a very old snapshot install. I also changed my fpc.cfg for 2.5.1 to test JPEG, but now I changed it back again to the old paths to build fixes2_2

MacBook-de-Felipe-Monteiro-de-Carvalho:fpcfixes2_2 felipe$ fpc -iV 2.4.0

Felipe Monteiro de Carvalho

Reply by email

Joost van der Sluis
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 9 lines
Now going to fixing the develop.var page, how can I download the fpchtml? I tryed the following: MacBook-de-Felipe-Monteiro-de-Carvalho:Programas felipe$ svn checkout http://svn.freepascal.org/svn/fpchtml fpchtml svn: OPTIONS of 'http://svn.freepascal.org/svn/fpchtml': 200 OK (http://svn.freepascal.org) But nothing was downloaded ...

You missed a slash:

http://svn.freepascal.org/svn/fpc/html

Joost.

Reply by email