#1 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-07-01 09:23:16

AOG

After lengthy investigation, many of the above errors seem to be caused by compression not working as expected on Linux. Will investigate further.

#2 Re: mORMot Framework » TSQLRest.Delete seems to delete everything. » 2017-06-27 05:15:49

AOG

FCreatedAt: TModTime; ---> FCreatedAt: TCreateTime;

#3 Re: mORMot Framework » Number of threads constantly incrementing » 2017-06-24 05:16:03

AOG

Have you seen this ?
https://synopse.info/forum/viewtopic.php?id=3905
https://synopse.info/fossil/info/d0c1512d051ef958

So, would you mind trying a mORMot >= 1.18.3690
Dunno if this will help, buts its worth a try.

#4 Re: mORMot Framework » GUI CRUD examples » 2017-06-23 08:41:29

AOG

What you ask for is not that easy ... ;-)
A good master-detail design with decoupling of logic and (Grid-)GUI (MVC) asks for considerable effort, even for an expert.

mORMot has a MVC example.
And a Grid.

#5 Re: mORMot Framework » Raspberry Pi - Lazarus 1.8.0RC2 - mORMot » 2017-06-19 18:32:27

AOG

You will need FPC trunk for working interfaces !
Raspberry (arm-linux) is fully supported.

#6 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-06-10 10:33:22

AOG

Alright. Found the culprit !

Its the TSynThread.Destroy;
Its only enabled for FPC.
Remove it : no memory leaks anymore !!

Not sure however if this is correct.

2.12. DDD multi thread: 
  - Delete old database: 1 assertion passed  675us
  - Start server: 1 assertion passed  16.89ms
  - Single client test: 1,002 assertions passed  567.87ms
  - Multi threaded clients test: 21 assertions passed  366.20ms
  Total failed: 0 / 1,025  - DDD multi thread PASSED  951.75ms


Using mORMot 1.18.3684 FTS3
Running on Windows 10 64bit (10.0.14393) with code page 1252
TSQLite3LibraryStatic 3.19.2 with internal MM
Generated with: Free Pascal 3.1.1 MOP compiler

Time elapsed for all tests: 183.84s
Tests performed at 10-6-2017 12:29:23

Total assertions failed for all test suits:  0 / 25,842,666
! All tests passed successfully.

Done - Press ENTER to Exit
Heap dump by heaptrc unit
59206543 memory blocks allocated : 1960090725/2150608728
59206543 memory blocks freed     : 1960090725/2150608728
0 unfreed memory blocks : 0
True heap size : 4294344704 (128 used in System startup)
True free heap : 4294344576

#7 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-06-10 09:55:33

AOG

Additional:
If your do run TTestMultiThreadProcess, but without TTestMultiThreadProcess.SocketAPI and TTestMultiThreadProcess.Websockets, all is again ok.

#8 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-06-10 09:44:31

AOG

@hnb
If you run TestSQL3, but without
TTestBidirectionalRemoteConnection
TTestMultiThreadProcess
all is ok !
Perhaps this helps a bit.

2.10. DDD multi thread: 
  - Delete old database: 1 assertion passed  1.50ms
  - Start server: 1 assertion passed  31.90ms
  - Single client test: 1,002 assertions passed  483.15ms
  - Multi threaded clients test: 21 assertions passed  338.64ms
  Total failed: 0 / 1,025  - DDD multi thread PASSED  855.36ms


Using mORMot 1.18.3684 FTS3
Running on Windows 10 64bit (10.0.14393) with code page 1252
TSQLite3LibraryStatic 3.19.2 with internal MM
Generated with: Free Pascal 3.1.1 MOP compiler

Time elapsed for all tests: 154.33s
Tests performed at 10-6-2017 11:43:39

Total assertions failed for all test suits:  0 / 25,759,320
! All tests passed successfully.
Heap dump by heaptrc unit
57661255 memory blocks allocated : 1575202168/1760679880
57661255 memory blocks freed     : 1575202168/1760679880
0 unfreed memory blocks : 0
True heap size : 4294508544 (128 used in System startup)
True free heap : 4294508416

#9 Re: NewPascal Distribution » BROKEN aarch64 fpcupdeluxe » 2017-05-18 13:05:21

AOG

This is a known error ! Has been reported on the Lazarus forums (many times) before. Happens on all mini-ARM SBC.

Its a lack of memory. Just add swap (at least 1GB). And run again.

#10 Re: NewPascal Distribution » BROKEN aarch64 fpcupdeluxe » 2017-05-18 09:10:01

AOG

Thanks for the feedback.

Latest Lazarus has some issues.
Hard to find I must say.
I switched over to NewPascal again, for cross-compiling Windows towards aarch64.

edit1:
Found bugger !
https://bugs.freepascal.org/view.php?id=31869
https://svn.freepascal.org/cgi-bin/view … sion=54578

edit2:
And already resolved by Lazarus team ! Thanks.
https://svn.freepascal.org/cgi-bin/view … sion=54969

#11 Re: NewPascal Distribution » BROKEN aarch64 fpcupdeluxe » 2017-05-18 05:59:18

AOG

Working version now available online ! Sorry about this and thanks for the report.

#12 Re: NewPascal Distribution » BROKEN aarch64 fpcupdeluxe » 2017-05-18 05:32:09

AOG

Confirmed this behavior !
Will try to solve asap.

#14 Re: NewPascal Distribution » error using fpcupdeluxe under linux subsystem for windows » 2017-04-19 13:54:43

AOG

Very nice indeed !
And I must say (confess) that the Lazarus-trick (installing / de-installing Lazarus) is also used by me  ... ;-)

#16 Re: NewPascal Distribution » Fatal: Cannot open include file "Synopse.inc" » 2017-04-04 14:42:06

AOG

Lazarus -> Project -> Project Options -> Paths -> Other unit files
Add the mORMot base directory and the mORMot SQLite3 directory !?

#17 Re: NewPascal Distribution » Fatal: Cannot open include file "Synopse.inc" » 2017-04-04 12:58:19

AOG

You need to add the directory, in which synopse.inc resides, to the include directory in your project options !
Lazarus -> Project -> Project Options -> Paths -> Include files

#18 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-03-29 08:20:59

AOG

In the above routines, SetString could also be the culprit.
See ZEOS-code here:
https://sourceforge.net/p/zeoslib/code- … y.pas#l715
and further.

But again: still not sure what is causing this.

#19 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-03-29 08:03:14

AOG

I just checked my mORMot server that runs on an Amazon T2 tier (linux64).
Its is now running for 6 months 24/7 without a single restart.
No (memory) problems whatsoever.

In fact, I have looked deeply into the SynCrtSock.pas problem.
It has to to with the compression of data.
It could be that a line as below (SynCommons, CompressSynLZ) does not work 100% on FPC, but I am not yet sure.
Data: RawByteString absolute DataRawByteString;

#20 Re: NewPascal Distribution » TestSQL3 compiled by FPC memoryleak » 2017-03-29 06:25:45

AOG

I have seen this leaks also.
And spend a lot of time digging into them, but to no avail.

However, AFAIK, functionality of the mORMot is not in jeopardy !

#21 Re: NewPascal Distribution » New Pascal for linux info » 2017-03-16 13:19:15

AOG

@antispam88
Just get the mORMot from the official sources (GitHub). It should work.
The Linux error: have seen before, forgot what to do about it, will look into it again !

#22 Re: mORMot Framework » Lazarus 3.0.0 on win64 install » 2017-03-10 06:49:15

AOG

Good !
Please be confident: much work has been done and will be done to keep FPC and the mORMot a perfect combo !

#23 Re: Free Pascal Compiler » mORMot and FPC 3.0/3.1.1 » 2017-03-09 07:20:30

AOG

@vonH
The trunk changes can be found here: http://wiki.freepascal.org/User_Changes_Trunk
I leave it to hnb to explain more about NewPascal, but in general, NewPascal is a very recent trunk without the dangers of trunk.

#24 Re: Free Pascal Compiler » Suggestion of make fpcupdeluxe docker image » 2017-03-08 15:50:54

AOG

Well, at the moment, I have 0% knowledge of Docker, other than heard of it and a website visit.

However, there is always a way out with fpcupdeluxe:
a: first get the FPC/Laz-sources in a way convenient for you.
b: point fpcupdeluxe towards these sources and let it do its job.

http://forum.lazarus.freepascal.org/ind … 39133.html

#25 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-17 09:45:16

AOG

@hnb
Thanks for clearing things up !
Just did a NewPascal/mORMot test : 99.995% ok !! Just 2 (known/pending) failures.
Thanks !

#26 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-17 08:24:42

AOG

Ha, the worlds sometimes moves faster than expected.
Few moments ago, a new release of NewPascal (1.0.43) has been made available !
Testing right now.

#27 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-17 06:54:45

AOG

@ttomas
Yes, that is true.
But you can use FPC trunk. It has all the features that are needed to run the mORMot.
And NewPascal will be updated one of these days !

#28 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-15 06:19:44

AOG

What I did.
Used fcupdeluxe to install a brand new FPC/Lazarus trunk/trunk in a clean directory on Linux Mint 32 bit in a VM.
Download latest mORMot from GitHub.
Download sqlite3 static libs for FPC from http://synopse.info/files/sqlite3fpc.7z and unpacked in the mORMot directory.
Open the TestSQL3.lpi in Lazarus. Select build mode default.
Compile, run, 99,95% success !!

#29 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-14 21:31:28

AOG

No.
Just use the latest vanilla mORMot. It should work. Out-of-the-box. If you follow the docs with respect to static sqlite3.
If not, we have work to do !

#30 Re: NewPascal Distribution » Error: Identifier not found "GetCPUID" » 2017-02-14 20:50:19

AOG

Please give it just a bit more time ...
A huge patch has just been included into the mORMot to make it compatible with FPC trunk and stable.
https://synopse.info/fossil/info/a1fc4dcff1be1d49
Within due time, NewPascal will be updated to include the new FPC RTTI.

At the moment, you can already use the mORMot with latest FPC trunk with 100% of all the features of the mORMot for FPC.
Give it a try.

#32 Re: mORMot Framework » mORMot and current FPC trunk doesn't work » 2017-01-31 16:15:11

AOG

You can use fpcupdeluxe to install only NewPascal FPC.
Then point CT towards this FPC.

#33 Re: mORMot Framework » mORMot and current FPC trunk doesn't work » 2017-01-31 11:19:22

AOG

@Vitaly
Why not use NewPascal ? That is trunk !

#35 Re: mORMot Framework » Access Violation in TSQLModel.Create » 2017-01-25 19:26:59

AOG

Well, this one is much more complicated !
No mORMot code, ZEOS (version ?), Postgresql (version ?), no code at all.
Hard to solve/help for me ...

#36 Re: mORMot Framework » Access Violation in TSQLModel.Create » 2017-01-25 14:59:29

AOG

As a temporary fix, while waiting for Ab, please change this in mORMot.pas:

In function
function TTypeInfo.EnumBaseType: PEnumType;
{$ifdef FPC}
var base: PPTypeInfo;
begin
  result := PEnumType(GetFPCTypeData(@self));
  // no redirection if bool                                   <------------------- add
  if TTypeInfo(self).Kind=tkBool then exit;            <------------------- add

#37 Re: NewPascal Distribution » LoadFromRawByteString from SynGdiPlus » 2017-01-25 09:56:30

AOG

Would you mind showing (not in the forum itself) a minimal piece of code to reproduce your problem ?
Its hard to guess and investigate without !

#39 Re: mORMot Framework » cannot find file SynDprUses in NewPascal pack » 2016-12-11 08:48:13

AOG

Please follow Ab's advice: use mORMot trunk.
It will run very well with FPC !

But do follow the documents when using FPC !!
http://synopse.info/files/html/Synopse% … l#TITL_113

#40 Re: NewPascal Distribution » Compiliation rasied exception internally at result:= Default(T) of fgl » 2016-11-30 16:18:09

AOG

Nop. My install is just 30 minutes old .... no problems with fgl !
Have you tried trunk ?

#41 Re: NewPascal Distribution » fpcupdeluxe newpascal and zeos testing7.2 » 2016-11-25 07:48:02

AOG

The preferred install on Windows is 32bit.
And cross-compile towards 64bit.
A 32 bit install with fpcupdeluxe will also install 32->64 crosscompiler and GDB for both 32 as well as 64 bit with automagical switch between them when needed.

So yes, please install 32bit and report back any problems.

#43 Re: NewPascal Distribution » Win32 compiler cross compiler woes » 2016-11-18 13:58:37

AOG

You do not need to Configure Build Lazarus or to build Lazarus.
All is ready made for you.

Just select the right target in Project -> Project Options -> Config and Target -> Target platform

And TestSQL3 will not run for 100% on FreeBSD.
To many differences in its system.

Your offer for bug-hunting is welcome !

#44 Re: mORMot Framework » RTTI under FPC » 2016-11-17 07:07:42

AOG

Good !

Some updated info about FPC/Lazarus and RTTI.
The whole rtti branch of FPC is abandoned. But it is also not needed anymore.

Just use NewPascal: it has all the RTTI (and more) you need for the mORMot. See http://synopse.info/forum/viewforum.php?id=21
Or use fpcupdeluxe to install NewPascal anywhere you want ! See https://github.com/LongDirtyAnimAlf/Rei … /tag/0.99c

#46 Re: NewPascal Distribution » Cross compiling to Android - using Generics.Collections does not work » 2016-11-13 09:32:10

AOG

Please post a complete LAMW project, and I will try to reproduce.
Without complete project, I have to guess too much.

#47 Re: NewPascal Distribution » Cross compiling to Android - using Generics.Collections does not work » 2016-11-11 18:07:00

AOG

Could you be more precise ?
Does Laz4Android have Generics.Collections ?
If so, does the app run fine with the combi Laz4Android+Generics.Collections ?

#48 Re: NewPascal Distribution » Cross compiling to Android -why widgetset gtk2? » 2016-11-08 16:48:02

AOG

Nope. No gtk2 on Android ! No X11 anyhow !!

You should use another tool to make Android apps:
https://github.com/jmpessoa/lazandroidmodulewizard

Works very well together with the mORMot.
There is even a mORMot sample !
https://github.com/jmpessoa/lazandroidm … ORMotDemo1

#49 Re: NewPascal Distribution » Cross compiled library won't load under Linux » 2016-11-03 17:45:32

AOG

Thanks for the feedback !
I have added the linker path into fpcupdeluxe ... do not yet know if 100% correct.
I am awaiting user feedback.

Ps: you can use fpcupdeluxe to install NewPascal anywhere !

#50 Re: NewPascal Distribution » Linker error: Error while linking » 2016-11-02 16:18:29

AOG

Add this to the Custom Options of the Compiler Options (in Project Options):

-FLC:\NewPascal\cross\lib\i386-linux\ld-linux.so.2

Board footer

Powered by FluxBB