Closed emebatista closed 12 months ago
@emebatista Veja em https://github.com/totvs/tds-vscode/blob/master/TROUBLESHOOTING.md#gerando-logs como gerar e nos envie os logs para analises, em especial o dap.log
@emebatista Veja em https://github.com/totvs/tds-vscode/blob/master/TROUBLESHOOTING.md#gerando-logs como gerar e nos envie os logs para analises, em especial o dap.log
Oi! Alterei as chaves, porém só gerou o dap.log. Segue em anexo. Obrigado! dap.log
@emebatista
Pelo log parece que não achou o SC. Verifique a configuração em launcher.json.
@emebatista
Pelo log parece que não achou o SC. Verifique a configuração em launcher.json.
O sistema acha o SC porque chega a pedir usuári/senha, é informado e abre a tela, porém em milissegundose na hora de abrir a tela dos menus, a tela pisca e fecha tudo. Olha o que tem na configuração:
{
"type": "totvs_language_debug",
"request": "launch",
"name": "smartclient",
"program": "${command:AskForProgramName}",
"cwb": "${workspaceFolder}",
"smartclientBin": "/Applications/smartclient.app/Contents/MacOs/smartclient",
"isMultiSession": true,
"enableTableSync": true,
"enableMultiThread": true,
"enableProfile": true,
"isAccessibilityMode": false,
"doNotShowSplash": true,
"language": "",
"ignoreFiles": true,
"logFile": "${workspaceFolder}/dap.log"
},
@emebatista Aparentemente ele mandou os breakpoints para o AppServer, mas o Appserver não mandou nenhum evento de parada, então, ou ele não passou por essa parte do codigo ou o AppServer não emitiu essa notificação. Outro ponto que poderia ser um problema, é que você está iniciando a depuração atraves do SIGAMDI, tente iniciar direto atraves do SIGAPCP por exemplo.
Tentei iniciar com SIGAPCP em vez de SIGAMDI, gerei novo dap. dap.log
Detalhe, mesmo que eu entre sem debugar ( CTR + F5 ), o sistema aborta ao montar a tela. Se eu abro o smartclient sem ser pelo VSCode, abre normalmente.
Veja no console do Protheus se há alguma mensagem que possa ajudar na identificação da ocorrência.
@emebatista Voce diz abrir o mesmo SC que configurou no launch.json via shell funciona? apenas executando /Applications/smartclient.app/Contents/MacOs/smartclient abre e monta a mesma tela??
Tem isso, mas anexei o arquivo todo: console_appserver.log
2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] Memory 19257960 on FWUISKIN.PRW FN ALTERGREETING FROM NULL LN 1896 2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] Memory 19293824 on FWUISKIN.PRW FN {|| FWI18NLANG("FWUISKIN","STR0048",48)} FROM NULL LN 1276 2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] Memory 19331616 on FWUISKIN.PRW FN { | U | IF( PCOUNT() == 0, CGETPSW, CGETPSW := U ) } FROM NULL LN 1306 2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] Memory 19367056 on FWUISKIN.PRW FN { | U | IF( PCOUNT() == 0, CIDIOMA, CIDIOMA := U ) } FROM NULL LN 1351 2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] Memory 19401352 on FWUISKIN.PRW FN GETUSERQT FROM NULL LN 1404 2023-11-16T14:18:10.882000-03:00 7108|[Thread 7108] --- END APP PROFILER --- 2023-11-16T14:18:10.948000-03:00 3840| [INFO ][SERVER] [[Thread 3840][16/11/2023 14:18:10] Debugger finished ( (emerson, MacBook-Pro-de-Emerson.local) 2023-11-16T14:18:10.948000-03:00 3840| [INFO ][SERVER] [Thread 3840] [16/11/2023 14:18:10] Debugger - Set KillApp to child thread 5656 ... 2023-11-16T14:18:10.948000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:10] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:11.963000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:11] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:12.971000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:12] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:13.979000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:13] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:14.988000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:14] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:15.997000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:15] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:17.010000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:17] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:18.019000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:18] Debugger - Waiting for 1 child thread(s) ... 2023-11-16T14:18:18.354000-03:00 4312| [INFO ][SERVER] [16/11/2023 14:18:18] Connection released from balance [10.0.3.6:6900]. 2023-11-16T14:18:18.358000-03:00 6028| [INFO ][SERVER] [16/11/2023 14:18:18] Service addressed as [server1] from balance [10.0.3.6:6900]. 2023-11-16T14:18:18.369000-03:00 344| [INFO ][SERVER] [Thread 344] JOB Thread finishing [-] 2023-11-16T14:18:18.369000-03:00 344| [INFO ][SERVER] [Thread 344] JOB Thread finished [-] 2023-11-16T14:18:19.030000-03:00 3840| [WARN ][SERVER] [Thread 3840] [16/11/2023 14:18:19] Debugger - Waiting for 1 child thread(s) ...
/Applications/smartclient.app/Contents/MacOs/smartclient
monta a tela e entra normalmente.
/Applications/smartclient.app/Contents/MacOs/smartclient
monta a tela e entra normalmente.
alias, pelo prompt nao monta nao, dá esse erro aqui:
emerson@MacBook-Pro-de-Emerson _github_publicas % /Applications/smartclient.app/Contents/MacOs/smartclient :/remote/images/splash_totvs.jpg :/remote/images/totvs_totvs.jpg :/remote/images/totvs.jpg :/remote/images/login_activex_totvs.jpg :/remote/images/totvs_totvs.jpg :/remote/images/totvs.jpg qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.qpa.fonts: Populating font family aliases took 263 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost. Starting loading CEFView (first time load dll into memory) - 2023-11-16T16:04:13.229 dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) Finished loading WebEngineView - 2023-11-16T16:04:13.661 dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embeddeddlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (Renderer).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing (GPU).app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) [1116/160414.073479:FATAL:gpu_data_manager_impl_private.cc(440)] GPU process isn't usable. Goodbye. zsh: trace trap /Applications/smartclient.app/Contents/MacOs/smartclient emerson@MacBook-Pro-de-Emerson _github_publicas % dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache) dlopen /Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework: dlopen(/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework, 0x0105): tried: '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/System/Volumes/Preboot/Cryptexes/OS/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/Applications/smartclient.app/Contents/PlugIns/CefViewWing.app/Contents/MacOS/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework' (file system sandbox blocked open()), '/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file), '/System/Library/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework' (no such file, not in dyld cache)
Pelo 1o log, parece que esta usando balance. No VS-Code tem que usar um slave para desenvolvimento/depuração.
Eu recomendo usar um servidor "stand alone".
Pelo 1o log, parece que esta usando balance. No VS-Code tem que usar um slave para desenvolvimento/depuração.
Eu recomendo usar um servidor "stand alone".
É ambiente cloud, mas por via das dúvidas coloquei para debugar em modo exclusivo. O erro é o mesmo. Anexei o console.log console_appserver_exclusivo.log
Rodando pelo terminal do Mac, ao dar o mesmo erro, gera o log aqui anexado. erro_smartclient.log
@emebatista Grato pelo log de erro do SC. Realmente a versão de Mac que você está utilizando pode apresentar problemas, pois ainda não foi homologado. https://tdn.totvs.com/display/tec/SmartClient#SmartClient-Homologados Temos alguns relatos de problemas na execução do SC com o Mac Rosetta/M2 mesmo, então até que o SC seja homologado para este SO, não temos muito o que analisar no tds-vscode. O time do SC já está ciente desses problemas, então por enquanto se possível continue utilizando a versão anterior do SC. Vou fechar essa issue por enquanto, pois neste momento nada pode ser feito, mas se apos a homologacao do SC para o Mac M2, esse problema persitir, fique a vontade para abrir uma nova issue ou até reabrir esta. De qualquer forma, grato por reportar e fornecer todas estas informacoes.
Recomendamos a utilizacao do webapp (https://tdn.totvs.com/pages/viewpage.action?pageId=448596783). Realmente já tivemos reportes de problemas com o processador M2.
Só complementando, a variável que faz dar o erro não é o SC em si, mas o appserver onde se conecta, pois em alguns appserver ele funciona, em outros não (principalmente os cloud).
@emebatista Ah grato pelo complemento, mas então se for possível, antes de executar a rotina que ocorre o erro, se puder verificar atraves do SHIFT+F6 as builds (20.3.1.12? 20.3.2.0?) dos AppServer para comparar em quais o problema ocorre e quais não ocorre, nos ajudaria muito, pois já informariamos o time responsavel da ocorrencia desse problema.
Abiente em que funciona:
Dados do Server
Versão: TOTVS Manufatura Build AppServer: 7.00.210324P-20230727 - 64 bits Nome do servidor: MICROSIGA Sistema operacional: Windows Server 2019 Appserver version: 20.3.1.12 Build DBAccess: 20220303-20230623 Release do RPO: 12.1.2210 Release do dicionário: 12.1.2210 Local files: CTREE License server: 2014 - 3.6.0 DB DataBase: MSSQL DB API Build: 20220303-20230623
Ambiente em que NÃO funciona:
Dados do Server
Versão: TOTVS Manufatura Build AppServer: 7.00.210324P-20230727 - 64 bits Nome do servidor: 143903-PROTHEUS Sistema operacional: Windows Server 2016 Appserver version: 20.3.1.12 Build DBAccess: 20220303-20230623 Release do RPO: 12.1.2210 Release do dicionário: 12.1.2210 Local files: ctree License server: 2014 - 3.6.0 DB DataBase: MSSQL DB API Build: 20220303-20230623
@emebatista Grato pela informação, então basicamente a diferença é apenas na versão do Windows Server... No 2019 funciona, mas no 2016 não funciona. Você teria um fonte simples com a tela que não está sendo montada para nos tentarmos reproduzir esse problema?
Descobri o que era:
No smartclient antigo, o caminho era : "smartclientBin": "/Applications/smartclient.app/Contents/MacOs/smartclient",
No smartcliente novo, o caminho é: "smartclientBin": "/Applications/smartclient.app/Contents/MacOS/smartclient"
Basta colocar em maiúsculo o "S" de MacOS que funciona. A diferença estava sendo o lauch.json que guardava caminhos diferentes.
Valeu pessoal!
No ambiente MacOS 14.0 (23A344), pós atualizar o smartclient para a versão 20.3.2.0, não está mais sendo possível debugar.
Ao chamar o Smartclient, após dar o usuário/senha, na hora que começa a montar a tela com os menus, simplesmente fecha. Visualizei no VSCode, o output das extensões tem:
2023-11-16 10:05:23.726 [info] ExtensionService#_doActivateExtension vscode.debug-server-ready, startup: false, activationEvent: 'onDebugResolve' 2023-11-16 10:06:16.493 [error] Error: Invalid debug adapter at v.m (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1552:95) at v.$acceptDAExit (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1552:35) at $.S (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:18856) at $.Q (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:18622) at $.M (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:17715) at $.L (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:16933) at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:15597) at f.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:87:1902) at f.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:87:2119) at s.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:14396) at Q.onmessage (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1655:1077) 2023-11-16 10:06:16.494 [error] Error: Invalid debug adapter at v.m (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1552:95) at v.$acceptDAError (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1551:7629) at $.S (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:18856) at $.Q (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:18622) at $.M (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:17715) at $.L (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:16794) at u.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1560:15597) at f.y (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:87:1902) at f.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:87:2119) at s.fire (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:616:14396) at Q.onmessage (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1655:1077) 2023-11-16 10:06:46.854 [info] ExtensionService#_doActivateExtension
Versão: TOTVS Manufatura Build AppServer: 7.00.210324P-20230727 - 64 bits Nome do servidor: 143903-PROTHEUS Sistema operacional: Windows Server 2016 Appserver version: 20.3.1.12 Build DBAccess: 20220303-20230623 Release do RPO: 12.1.2210 Release do dicionário: 12.1.2210 Local files: ctree License server: 2014 - 3.6.0 DB DataBase: MSSQL DB API Build: 20220303-20230623
Dados do Remote
Remote build: 7.00.210324P-20230929 Remote version: 20.3.2.0 Remote type: 2 - QT-6.2.6 MAC