Recent

Author Topic: Indy error in Mac OSX Catalina  (Read 727 times)

laguna

  • Sr. Member
  • ****
  • Posts: 287
Indy error in Mac OSX Catalina
« on: February 16, 2020, 04:48:35 pm »
Please view image, in mojave indy run correct, in Catalina error.

Thanks

asdf1337

  • New Member
  • *
  • Posts: 27
Re: Indy error in Mac OSX Catalina
« Reply #1 on: February 16, 2020, 04:51:12 pm »
Which version of Indy? Did you try latest from github?
Stacktrace?

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #2 on: February 16, 2020, 05:10:52 pm »
last version, use to download packmanger online  and fpcupdeluxe last version
run ok in Mojave OSX mac
This error in Catalina.

I clone lazarus folder  fpcupdeluxe from  Mojave to Catalina
error not remove

I install manual FPC e Lazarus
error not remove

Thanks
« Last Edit: February 16, 2020, 05:15:09 pm by laguna »

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #3 on: February 16, 2020, 06:16:29 pm »
Which version of Indy? Did you try latest from github?
Stacktrace?

where url use for download?
Please send command for terminal
Thanks

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #4 on: February 17, 2020, 07:58:55 am »
This problem, in my opinion, is not due to the version of indy, in fact the same program generated with Mojave, works in Catalina.
I colonized the entire development system, generated with fpcudeluxe, in two systems without lazarus, one Mojave and the other Catalina.
In Mojave lazarus it works and generates the program without errors;
In catalina I always have the same error.
I wonder if the problem depends on Catalina who is unable to authorize Indy (protocol get) at compile time.
The program generated in Mojave with Lazarus, copied into Catalina works correctly.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 795
    • Lebeau Software
Re: Indy error in Mac OSX Catalina
« Reply #5 on: February 18, 2020, 09:07:05 pm »
last version, use to download packmanger online  and fpcupdeluxe last version

That does not necessarily mean that you are using the latest version of Indy, though.  Now that Indy is using GitHub instead of SVN, I don't know if the version of Indy in OPM is still being kept up-to-date.  I did not set that up.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #6 on: March 15, 2020, 09:58:15 am »
This project compiler in Mojave run ok
compiler in catalina wiht lazarus last version and indy last version, error run, this is report
 
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib           0x00007fff700947fa __pthread_kill + 10
1   libsystem_pthread.dylib          0x00007fff70151bc1 pthread_kill + 432
2   libsystem_c.dylib                0x00007fff7001ba1c abort + 120
3   libcrypto.dylib                  0x00007fff6d983804 __report_load + 352
4   dyld                             0x000000010370915d ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 539
5   dyld                             0x0000000103709582 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40
6   dyld                             0x0000000103703dc7 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 493
7   dyld                             0x0000000103701e58 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 188
8   dyld                             0x0000000103701ef8 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82
9   dyld                             0x00000001036f3f87 dyld::runInitializers(ImageLoader*) + 82
10  dyld                             0x00000001036fdad7 dlopen_internal + 609
11  libdyld.dylib                    0x00007fff6ff38a7f dlopen + 171
12  com.zenoapp.lazTransl            0x0000000101de3a5a DYNLIBS_$$_SYSLOADLIBRARYA$RAWBYTESTRING$$INT64 + 26
13  com.zenoapp.lazTransl            0x0000000101dad80f SYSTEM_$$_LOADLIBRARY$RAWBYTESTRING$$INT64 + 15
14  com.zenoapp.lazTransl            0x00000001020b0ba6 IDGLOBAL$_$HACKLOAD$ANSISTRING$array_of_ANSISTRING$$INT64_$$_LOADLIBVER$ANSISTRING$$INT64 + 102 (IdGlobal.pas:4483)
15  com.zenoapp.lazTransl            0x00000001020b0b2a IDGLOBAL_$$_HACKLOAD$ANSISTRING$array_of_ANSISTRING$$INT64 + 170 (IdGlobal.pas:4503)
16  com.zenoapp.lazTransl            0x00000001021653a4 IDSSLOPENSSLHEADERS_$$_LOADSSLCRYPTOLIBRARY$$INT64 + 244 (IdSSLOpenSSLHeaders.pas:22693)
17  com.zenoapp.lazTransl            0x00000001021658fc IDSSLOPENSSLHEADERS_$$_LOAD$$BOOLEAN + 268 (IdSSLOpenSSLHeaders.pas:22825)
18  com.zenoapp.lazTransl            0x00000001020e26bc IDSSLOPENSSL_$$_LOADOPENSSLLIBRARY$$BOOLEAN + 108 (IdSSLOpenSSL.pas:2364)
19  com.zenoapp.lazTransl            0x00000001020e5531 IDSSLOPENSSL$_$TIDSSLCONTEXT_$__$$_CREATE$$TIDSSLCONTEXT + 177 (IdSSLOpenSSL.pas:3196)
20  com.zenoapp.lazTransl            0x00000001020e468a IDSSLOPENSSL$_$TIDSSLIOHANDLERSOCKETOPENSSL_$__$$_INIT + 58 (IdSSLOpenSSL.pas:2925)
21  com.zenoapp.lazTransl            0x00000001020e3f7d IDSSLOPENSSL$_$TIDSSLIOHANDLERSOCKETOPENSSL_$__$$_CONNECTCLIENT + 93
22  com.zenoapp.lazTransl            0x0000000102141ef8 IDIOHANDLERSOCKET$_$TIDIOHANDLERSOCKET_$__$$_OPEN + 280 (IdIOHandlerSocket.pas:371)
23  com.zenoapp.lazTransl            0x00000001020e41eb IDSSLOPENSSL$_$TIDSSLIOHANDLERSOCKETOPENSSL_$__$$_OPEN + 43 (IdSSLOpenSSL.pas:2840)
24  com.zenoapp.lazTransl            0x000000010210c1d0 IDTCPCLIENT$_$TIDTCPCLIENTCUSTOM_$__$$_CONNECT + 1216 (IdTCPClient.pas:329)
25  com.zenoapp.lazTransl            0x00000001020c9a36 IDHTTP$_$TIDCUSTOMHTTP_$__$$_CHECKANDCONNECT$TIDHTTPREQUEST$TIDHTTPRESPONSE + 1158
26  com.zenoapp.lazTransl            0x00000001020ca4c1 IDHTTP$_$TIDCUSTOMHTTP_$__$$_CONNECTTOHOST$TIDHTTPREQUEST$TIDHTTPRESPONSE + 2481 (IdHTTP.pas:2128)
27  com.zenoapp.lazTransl            0x00000001020ce799 IDHTTP$_$TIDCUSTOMHTTP_$__$$_DOREQUEST$ANSISTRING$ANSISTRING$TSTREAM$TSTREAM$array_of_SMALLINT + 617 (IdHTTP.pas:3166)
28  com.zenoapp.lazTransl            0x00000001020ce4cc IDHTTP$_$TIDCUSTOMHTTP_$__$$_GET$ANSISTRING$TSTREAM$array_of_SMALLINT + 284
29  com.zenoapp.lazTransl            0x00000001020ce2e0 IDHTTP$_$TIDCUSTOMHTTP_$__$$_GET$ANSISTRING$array_of_SMALLINT$IIDTEXTENCODING$$ANSISTRING + 272 (IdHTTP.pas:3124)
30  com.zenoapp.lazTransl            0x00000001020c6550 IDHTTP$_$TIDCUSTOMHTTP_$__$$_GET$ANSISTRING$IIDTEXTENCODING$$ANSISTRING + 128
31  com.zenoapp.lazTransl            0x0000000101dd97f0 FRMMAIN$_$TMAINFORM_$__$$_BTNTRADUCICLICK$TOBJECT + 800 (frmmain.pas:437)
32  com.zenoapp.lazTransl            0x0000000101fbb604 CONTROLS$_$TCONTROL_$__$$_CLICK + 100 (control.inc:2915)
33  com.zenoapp.lazTransl            0x000000010205ea29 STDCTRLS$_$TBUTTONCONTROL_$__$$_CLICK + 41 (buttoncontrol.inc:56)
34  com.zenoapp.lazTransl            0x000000010205f227 STDCTRLS$_$TCUSTOMBUTTON_$__$$_CLICK + 71 (buttons.inc:170)
35  com.zenoapp.lazTransl            0x0000000102061646 BUTTONS$_$TCUSTOMBITBTN_$__$$_CLICK + 102 (bitbtn.inc:68)
36  com.zenoapp.lazTransl            0x000000010205e912 STDCTRLS$_$TBUTTONCONTROL_$__$$_WMDEFAULTCLICKED$TLMESSAGE + 66 (buttoncontrol.inc:22)
37  com.zenoapp.lazTransl            0x0000000101da5569 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal + 185
38  com.zenoapp.lazTransl            0x0000000101fba3d5 CONTROLS$_$TCONTROL_$__$$_WNDPROC$TLMESSAGE + 581 (control.inc:2244)
39  com.zenoapp.lazTransl            0x0000000101facd7d CONTROLS$_$TWINCONTROL_$__$$_WNDPROC$TLMESSAGE + 845 (wincontrol.inc:5412)
40  com.zenoapp.lazTransl            0x0000000101f986d6 LCLMESSAGEGLUE_$$_DELIVERMESSAGE$TOBJECT$formal$$INT64 + 246 (lclmessageglue.pas:112)
41  com.zenoapp.lazTransl            0x0000000101f987e6 LCLMESSAGEGLUE_$$_SENDSIMPLEMESSAGE$TCONTROL$LONGWORD$$INT64 + 54 (lclmessageglue.pas:143)
42  com.zenoapp.lazTransl            0x000000010207867d COCOAWSSTDCTRLS$_$TLCLBUTTONCALLBACK_$__$$_BUTTONCLICK + 61 (cocoawsstdctrls.pas:536)
43  com.zenoapp.lazTransl            0x000000010207e9b7 -[TCocoaButton actionButtonClick:] + 87 (cocoabuttons.pas:302)
44  com.apple.AppKit                 0x00007fff35cb1d38 -[NSApplication(NSResponder) sendAction:to:from:] + 299
45  com.apple.AppKit                 0x00007fff35cb1bd4 -[NSControl sendAction:to:] + 86
46  com.apple.AppKit                 0x00007fff35cb1b06 __26-[NSCell _sendActionFrom:]_block_invoke + 136
47  com.apple.AppKit                 0x00007fff35cb1a08 -[NSCell _sendActionFrom:] + 171
48  com.apple.AppKit                 0x00007fff35cb194f -[NSButtonCell _sendActionFrom:] + 96
49  com.apple.AppKit                 0x00007fff35cadbed NSControlTrackMouse + 1745
50  com.apple.AppKit                 0x00007fff35cad4f4 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
51  com.apple.AppKit                 0x00007fff35cad3b4 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 691
52  com.apple.AppKit                 0x00007fff35cac733 -[NSControl mouseDown:] + 748
53  com.zenoapp.lazTransl            0x000000010207f1ae -[TCocoaButton mouseDown:] + 158 (cocoabuttons.pas:424)
54  com.apple.AppKit                 0x00007fff35caab0d -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4907
55  com.apple.AppKit                 0x00007fff35c14c5c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2612
56  com.apple.AppKit                 0x00007fff35c14005 -[NSWindow(NSEventRouting) sendEvent:] + 349
57  com.zenoapp.lazTransl            0x0000000101f875f4 -[TCocoaWindow sendEvent:] + 516 (cocoawindows.pas:972)
58  com.apple.AppKit                 0x00007fff35c1237c -[NSApplication(NSEvent) sendEvent:] + 352
59  com.zenoapp.lazTransl            0x0000000101f60cd0 -[TCocoaApplication sendEvent:] + 880 (cocoaint.pas:552)
60  com.zenoapp.lazTransl            0x0000000101f61359 COCOAINT$_$TCOCOAWIDGETSET_$__$$_APPRUNMESSAGES$BOOLEAN$NSDATE + 153 (cocoaobject.inc:97)
61  com.zenoapp.lazTransl            0x0000000101f613be COCOAINT$_$TCOCOAWIDGETSET_$__$$_APPPROCESSMESSAGES + 30 (cocoaobject.inc:115)
62  com.zenoapp.lazTransl            0x0000000101dd120d FORMS$_$TAPPLICATION_$__$$_HANDLEMESSAGE + 45 (application.inc:1283)
63  com.zenoapp.lazTransl            0x0000000101dd176f FORMS$_$TAPPLICATION_$__$$_RUNLOOP + 79
64  com.zenoapp.lazTransl            0x0000000101f60586 -[TCocoaApplication run] + 118 (cocoaint.pas:450)
65  com.zenoapp.lazTransl            0x0000000101f612b3 COCOAINT$_$TCOCOAWIDGETSET_$__$$_APPRUN$TAPPLICATIONMAINLOOP + 83 (cocoaobject.inc:80)
66  com.zenoapp.lazTransl            0x0000000101dd170c FORMS$_$TAPPLICATION_$__$$_RUN + 92 (application.inc:1408)
67  com.zenoapp.lazTransl            0x0000000101d932aa PASCALMAIN + 186 (lazTransl.lpr:33)
68  com.zenoapp.lazTransl            0x0000000101db650c FPC_SysEntry + 12
69  com.zenoapp.lazTransl            0x0000000101d93196 FPC_SYSTEMMAIN + 70
70  com.zenoapp.lazTransl            0x0000000101d931e6 main + 38
71  libdyld.dylib                    0x00007fff6ff4d7fd start + 1

Thread 1:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib           0x00007fff7008e25a mach_msg_trap + 10
1   libsystem_kernel.dylib           0x00007fff7008e5d0 mach_msg + 60
2   com.apple.CoreFoundation         0x00007fff388a9d0b __CFRunLoopServiceMachPort + 322
3   com.apple.CoreFoundation         0x00007fff388a88e7 __CFRunLoopRun + 1695
4   com.apple.CoreFoundation         0x00007fff388a7bd3 CFRunLoopRunSpecific + 499
5   com.apple.AppKit                 0x00007fff35c10792 _NSEventThread + 132
6   libsystem_pthread.dylib          0x00007fff70151e65 _pthread_start + 148
7   libsystem_pthread.dylib          0x00007fff7014d83b thread_start + 15

Thread 6:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib          0x00007fff7014d818 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00000001037b7dc0  rcx: 0x00007ffeede674a8  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007ffeede674d0  rsp: 0x00007ffeede674a8
   r8: 0x0000000000000055   r9: 0x000000000000001c  r10: 0x00000001037b7dc0  r11: 0x0000000000000246
  r12: 0x0000000000000307  r13: 0x00007fff999dfea0  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007fff700947fa  rfl: 0x0000000000000246  cr2: 0x00007fff999e0018
 
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #7 on: March 15, 2020, 09:59:51 am »
App compiler with mojave copy in catalina run ok

this is two part error


Remy Lebeau

  • Hero Member
  • *****
  • Posts: 795
    • Lebeau Software
Re: Indy error in Mac OSX Catalina
« Reply #8 on: March 15, 2020, 09:47:26 pm »
This project compiler in Mojave run ok
compiler in catalina wiht lazarus last version and indy last version, error run, this is report

The only thing I can make out in that report is that dlopen() is killing the calling thread for some reason I do not know, but that is happening outside of Indy's code.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

laguna

  • Sr. Member
  • ****
  • Posts: 287
Re: Indy error in Mac OSX Catalina
« Reply #9 on: March 17, 2020, 02:17:11 pm »
I am converting this code with the component (TFPHttpClient)
TFPHttpClient run without problem.

 var
    IdHTTPxx1: TIdHTTP;
    MPData: TIdMultiPartFormDataStream;

    LD, D: TJSONData;
    jItem: TJSONData;
    Obj, SubObj: TJSONObject;
    Arr: TJSONArray;
    sResponse: string;
    sValue, S: string;

    i: integer;
    jData, jData2: TJSONData;

    jArray, jArray2: TJSONArray;
    Parseur: TJSONParser;
    jObject: TJSONObject;

    myServerOCR : String;
....
 try
      IdHTTPxx1 := TIdHTTP.Create(nil);
      IdHTTPxx1.Request.ContentType := 'application/x-www-form-urlencoded';

      MPData := TIdMultiPartFormDataStream.Create;
      {$IFDEF DARWIN}
          S := opath + '/Contents/Resources/temp.jpg';
          //showmessage(s);
      {$ELSE}
          S := ExtractFilePath(ParamStr(0)) + 'temp.jpg';
      {$ENDIF}
      MPData.AddFile('file', S, 'image/jpg');
   
      MPData.AddFormField('apikey', ApiKey);
      MPData.AddFormField('language', lngFromOCR);
      MPData.AddFormField('isOverlayRequired', 'False');
      // IdHTTPxx1.Request.CharSet := 'utf-8';
      sResponse := IdHTTPxx1.Post(myServerOCR, MPData ,IndyTextEncoding_UTF8);

     // ShowMessage(sResponse);

      jData := GetJSON(sResponse);
      parseur := TJSONParser.Create(sResponse);

 

TinyPortal © 2005-2018