Recent

Author Topic: Could Somebody fix Lazreport error ????  (Read 14486 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Could Somebody fix Lazreport error ????
« Reply #15 on: October 06, 2012, 03:38:09 am »
@cpalx: what Martin said.
Do you think it's a good idea to say that a bug has not been fixed while you only test a stable version that gets no fixes per definition?. I don't think so either :)

Why not set up a separate "development" Lazarus instance (e.g. from snapshots) (hint: you can use fpcup for this).
If you really want to separate things, use a different virtual or physical machine.
This way you can find out if the bug has been fixed, and if necessary backport the fix.

You could also run your application unit and functional/user acceptance tests on a certain fixed Lazarus version and, depending on the test results, decide to move to that version as your "stable" Lazarus environment.

Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: Could Somebody fix Lazreport error ????
« Reply #16 on: October 06, 2012, 01:45:06 pm »
i understand.  :'(

Zoran

  • Hero Member
  • *****
  • Posts: 1984
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Could Somebody fix Lazreport error ????
« Reply #17 on: October 07, 2012, 02:52:55 pm »
I can confirm this bug and it still exists in fixes branch. I cannot reproduce it with trunk version of Lazarus, though.

Here are my tests, all with fpc 2.6 stable, Lazarus just updated from svn (fixes branch and trunk), revision 38980:

Kubuntu 12.04 32 bit
- Lazarus 1.0.1 (fixes branch), bug is there, both with gtk2 and qt ws.
- Lazarus 1.1 (trunk), bug is not there, cannot be reproduced with gtk2 or qt.

Windows 7 64 bit (but 32 bit Lazarus), tested with win32 and qt widgetsets:
Bug cannot be reproduced with neither 1.0.1 nor 1.1, the same with win32 and qt ws.

I am going to try to dig deeper, to find out when did this problem appear in fixes branch.
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12170
  • Debugger - SynEdit - and more
    • wiki
Re: Could Somebody fix Lazreport error ????
« Reply #18 on: October 07, 2012, 03:16:00 pm »
Kubuntu 12.04 32 bit
- Lazarus 1.0.1 (fixes branch), bug is there, both with gtk2 and qt ws.
- Lazarus 1.1 (trunk), bug is not there, cannot be reproduced with gtk2 or qt.
I am going to try to dig deeper, to find out when did this problem appear in fixes branch.

The question is, when did it disappear in trunk (1.1)

Looking through not yet merged LazReport commits, the following looks like a potential candidate:
Quote
Revision: 36887
Author: jesus
Date: 17 April 2012 21:51:14
Message:
LazReport, fix preview scrolling broken in r36420, issue 21633
----
Modified : /trunk/components/lazreport/source/lr_view.pas

I have attached it as patch, so anyone who wants, can test it against 1.0.1

(It may break on windows. There is a 2nd revision to deal with this.)
« Last Edit: October 07, 2012, 03:36:06 pm by Martin_fr »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12170
  • Debugger - SynEdit - and more
    • wiki
Re: Could Somebody fix Lazreport error ????
« Reply #19 on: October 08, 2012, 04:05:47 pm »
Did anyone test the patch against fixes? Would be good to get the feedback...

Or test fixes branch SVN revision 38955

Zoran

  • Hero Member
  • *****
  • Posts: 1984
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Could Somebody fix Lazreport error ????
« Reply #20 on: October 08, 2012, 07:01:51 pm »
Did anyone test the patch against fixes? Would be good to get the feedback...

Or test fixes branch SVN revision 38955

Works well with rev. 38995! I tested on both Windows and Linux, win32/64, gtk2, qt widgetsets. Thank you, Martin.

@BigChimp, we are in production, do u think is a good idea to use developmen versions? i dont think so :(

I agree with you. It can be dangerous to use bleeding edge development version in production. However, nothing prevents you from installing multiple Lazarus versions on same computer. You can have 1.0 stable, 1.0.1 fixes branch and 1.1 trunk.

While in trunk version you can often encounter new bugs, it happens very rarely in fixes branch, as new features do not get implemented there. Only bug fixes are implemented in fixes branch (that is why it is called so - fixes). So, in a way it can be regarded as even more stable than 1.0. Try it! Installing multiple Lazarus versions is easy. See the first post in this topic: http://www.lazarus.freepascal.org/index.php/topic,6125.0.html
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12170
  • Debugger - SynEdit - and more
    • wiki
Re: Could Somebody fix Lazreport error ????
« Reply #21 on: October 10, 2012, 10:12:29 pm »
@cpalx:

The fix that worked for Zoran is part of the 1.0.2 release. So yo can try that now. And let me know if the bug can be closed, please.

If it does work now, then you can thank Zoran. If he had not done the comparison between 1.0.1 and 1.1 then nothing would have happened at all.

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: Could Somebody fix Lazreport error ????
« Reply #22 on: October 11, 2012, 03:31:34 pm »
Im downloading... i will test in some mins...

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: Could Somebody fix Lazreport error ????
« Reply #23 on: November 03, 2012, 01:36:21 pm »
thanks @Zoran

 

TinyPortal © 2005-2018