Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: "new LimeReport" takes 30~40 seconds!  (Read 18907 times)

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #15 on: April 08, 2021, 04:22:25 pm »
libGLESv2.dll and libEGL.dll - the libs for opengl support
They are irrelevant

try to create deployment for your program

create folder named d:\test
copy to this folder your .exe file
from cammand line: D:\Qt\Qt5.12.4\bin\windeployqt d:\test\'you_exe_file'
copy to this folder limereport.dll, QtZint.dll, libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll

try to lunch program
may be it's nessasary to copy some other libs, OS tell ypu about


alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #16 on: April 09, 2021, 04:14:43 am »
from cammand line: D:\Qt\Qt5.12.4\bin\windeployqt d:\test\'you_exe_file'
copy to this folder limereport.dll, QtZint.dll, libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll

-> This is exactly what I did for environment 1: the exe takes a few seconds to launch. Not impressive but still acceptable.

If I move the exe into environment 2(our production environment) which has the same dll as environmet 1 plus other dlls, the exe takes more than 1 minutes to launch...and the harddisk is 100% taken for processing something...

It is very strange to me.

Alex


« Last Edit: April 09, 2021, 05:05:26 am by alexyuisme »

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #17 on: April 09, 2021, 06:36:35 am »
So the problem becomes much clearer now. If I put limereport-unrelated dlls in the exe directory, the launch becomes much slower.

tested the demo1/demo2 exe in release build.

Alex
« Last Edit: April 09, 2021, 06:58:27 am by alexyuisme »

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #18 on: April 09, 2021, 08:55:40 am »
now try from command line in folder d:\test
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
'your_program'.exe

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #19 on: April 09, 2021, 10:05:54 am »
now try from command line in folder d:\test
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
'your_program'.exe

-> gave it a try but it doesn't solve the problem.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #20 on: April 09, 2021, 10:19:07 am »
is disc d: just a partition or separate physical disk?
may be trouble with drivers or something like this?

and.. I could build your program on my comp, but I use the mingw with SJLJ not SEH

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #21 on: April 09, 2021, 10:35:27 am »
I realy doubt it is a physical disk issue because environemnt 1 works fine.

No need to use my program because the problem exists in demo1 too. I think you can create a deployment folder for demo1 under release build.

How to reproduce:

1. restart the machine, in the deployment folder, run LRDemo_r1.exe, time the launch time as T1.
2. restart the machine, copy some extra dlls(> 20) in the deployment folder, run LRDemo_r1.exe, time the launch time as T2.

You will notice T2 is much larger than T1.

Thanks,
Alex

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #22 on: April 09, 2021, 11:02:30 am »
BTW, what is the correct way to build static lib of limereport? I wanna give it a try.

Thanks,
Alex

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #23 on: April 09, 2021, 11:47:28 am »
first..
I have some projects uses LR. All of them works realy fast on my machine and others, more slower then my. On Win 10, 7 & XP.
I can't reproduce your problem
And nobody can it

Therefore I think the problem in your environments, machine or so on. On your side.
I trying to do is figure out what's going on

alexyuisme

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #24 on: April 09, 2021, 12:46:50 pm »
That's strange. On our side, three machines have been tested and all have the same issues.

Alex

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #25 on: April 09, 2021, 01:03:34 pm »
I agree it's so strange

it's especially strange because it work fine from QtCreator, as you said

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #26 on: April 09, 2021, 01:05:42 pm »
well
can you send me your test project with all libs exists in folder?
« Last Edit: April 09, 2021, 01:43:32 pm by Subst »


Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #28 on: April 10, 2021, 01:55:03 pm »
well
look this video
https://disk.yandex.ru/i/OP9vL_fskx0Flw
it's so fast I think, less then 0.5 sec
« Last Edit: April 10, 2021, 01:56:52 pm by Subst »

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: "new LimeReport" takes 30~40 seconds!
« Reply #29 on: April 10, 2021, 03:25:37 pm »
alexyuisme, what antivirus are you using?
try to temporary disable it and lunch program