Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with open apps #143

Open
namdeptrai2003 opened this issue Jan 19, 2024 · 9 comments
Open

Error with open apps #143

namdeptrai2003 opened this issue Jan 19, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@namdeptrai2003
Copy link

namdeptrai2003 commented Jan 19, 2024

Describe the bug
Can't open any apps. No windows appear.
To Reproduce
Steps to reproduce the behavior:

  1. Go to Terminal
  2. Type: python3 -m cassowary -c guest-run -- 'C:\Program Files\Microsoft Office\Root\Office16\EXCEL.EXE' %u
  3. See error

Expected behavior
[dimacat@dimacat-precision7510 ~]$ python3 -m cassowary -c guest-run -- 'C:\Program Files\Microsoft Office\Root\Office16\EXCEL.EXE' %u
[ 2024-01-19 07:45:58,455 ] | [ DEBUG ] : [ helper -> vm_wake ] --> Attempting to resume VM
[ 2024-01-19 07:45:58,466 ] | [ WARNING ] : [ helper -> vm_wake ] --> VM state is not set to suspended : State -> '1'
[ 2024-01-19 07:45:58,467 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Opening & closing a test window to trigger login or try to fix black screen bug on first launch
[ 2024-01-19 07:45:58,467 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Trying to fix black window bug by opening a test window before requested application - 1705625158.4677012CMDLINE: xfreerdp /d:"RDPWINDOWS" /u:"Administrator" /p:"" /v:"192.168.122.11" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe"
[ 2024-01-19 07:45:59,130 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Test window opened and closed !
[ 2024-01-19 07:45:59,130 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> An app was already opened, the black window should not appear now !
[ 2024-01-19 07:45:59,131 ] | [ DEBUG ] : [ init -> main ] --> guest-run with commandline: xfreerdp /d:"RDPWINDOWS" /u:"Administrator" /p:"" /v:192.168.122.11 +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-EXCEL.EXE" /app:"C:\Program Files\Microsoft Office\Root\Office16\EXCEL.EXE" /app-icon:"/home/dimacat/.local/lib/python3.11/site-packages/cassowary/base/../gui/extrares/cassowary_app.png" /app-cmd:"%u "
[07:45:59:377] [3069:3070] [WARN][com.freerdp.core.nla] - SPNEGO received NTSTATUS: STATUS_ACCOUNT_RESTRICTION [0xC000006E] from server
[07:45:59:377] [3069:3070] [ERROR][com.freerdp.core] - nla_recv_pdu:freerdp_set_last_error_ex ERRCONNECT_ACCOUNT_RESTRICTION [0x00020017]
[07:45:59:377] [3069:3070] [ERROR][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail
[07:45:59:377] [3069:3070] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1

Screenshots
Screenshot_20240119_074930

System information:

@namdeptrai2003 namdeptrai2003 added the bug Something isn't working label Jan 19, 2024
@casualsnek
Copy link
Owner

Can you launch a full RDP session using cassowary ?

@namdeptrai2003
Copy link
Author

namdeptrai2003 commented Jan 20, 2024

Hi @casualsnek , I can't do it. Here is the logs and screenshot:
[ 2024-01-20 07:45:18,187 ] | [ WARNING ] : [ main_ui -> populate_applications ] --> Looks like some app returned data that cannot be parsed : [None, 'C:\Program Files\WindowsApps\Microsoft.Paint_11.2201.22.0_x64__8wekyb3d8bbwe\PaintApp\mspaint.exe', None] : Traceback (most recent call last):
File "/home/dimacat/.local/lib/python3.11/site-packages/cassowary/gui/components/main_ui.py", line 350, in populate_applications
name = app[0].split(":")[0]
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

[ 2024-01-20 07:45:18,187 ] | [ WARNING ] : [ main_ui -> populate_applications ] --> Looks like some app returned data that cannot be parsed : [None, 'C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_11.2112.32.0_x64__8wekyb3d8bbwe\Notepad\Notepad.exe', None] : Traceback (most recent call last):
File "/home/dimacat/.local/lib/python3.11/site-packages/cassowary/gui/components/main_ui.py", line 350, in populate_applications
name = app[0].split(":")[0]
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

[ 2024-01-20 07:45:18,188 ] | [ WARNING ] : [ main_ui -> populate_applications ] --> Looks like some app returned data that cannot be parsed : [None, 'C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.17.10691.0_x64__8wekyb3d8bbwe\winget.exe', None] : Traceback (most recent call last):
File "/home/dimacat/.local/lib/python3.11/site-packages/cassowary/gui/components/main_ui.py", line 350, in populate_applications
name = app[0].split(":")[0]
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

[ 2024-01-20 07:45:18,201 ] | [ DEBUG ] : [ client -> __send ] --> Sending message to server
[ 2024-01-20 07:45:19,320 ] | [ DEBUG ] : [ client -> __send ] --> Sending message to server
[ 2024-01-20 07:45:23,256 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:23,269 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
[ 2024-01-20 07:45:28,602 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:28,607 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
[ 2024-01-20 07:45:29,556 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:29,570 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
[ 2024-01-20 07:45:30,216 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:30,230 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
[ 2024-01-20 07:45:30,628 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:30,632 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
[ 2024-01-20 07:45:38,698 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Creating a full RDP session with commandline : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 &
[ 2024-01-20 07:45:38,712 ] | [ DEBUG ] : [ helper -> full_rdp ] --> Full RDP session ended !
Screenshot_20240120_074542

@Dimacat-exe
Copy link

Help?

@Dimacat-exe
Copy link

@casualsnek fixed it but after open 1 app and close it, i cant open the next app. Is there any workaround?

@phildong
Copy link

phildong commented Apr 9, 2024

@casualsnek fixed it but after open 1 app and close it, i cant open the next app. Is there any workaround?

Could you share how you fixed it?

@ang3lo-azevedo
Copy link

I also can't open any apps
When I start an RDP session it automatically ends

[ 2024-04-10 10:45:23,931 ] | [  DEBUG ] :  [      helper ->             full_rdp  ] -->  Creating a full RDP session with commandline  : {rdc} /d:"{domain}" /u:"{user}" /p:"{passd}" /v:{ip} /a:drive,root,{share_root} +auto-reconnect +clipboard /cert-ignore /audio-mode:1 /scale:{scale} /wm-class:"cassowaryApp-FULLSESSION" /dynamic-resolution /{mflag} {rdflag} 1> /dev/null 2>&1 & 
[ 2024-04-10 10:45:23,934 ] | [  DEBUG ] :  [      helper ->             full_rdp  ] -->  Full RDP session ended ! 

@iopanio
Copy link

iopanio commented Apr 29, 2024

Install xfreerdp. For Arch, it's pacman -S freerdp2. pacman -S xfreerdp will install xfreerdp3, which is incompatible.

@ang3lo-azevedo
Copy link

Install xfreerdp. For Arch, it's pacman -S freerdp2. pacman -S xfreerdp will install xfreerdp3, which is incompatible.

Didn't work

@ang3lo-azevedo
Copy link

Can't launch any app or open an RDP connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants