Closed OliveiraICTS closed 1 year ago
new logs with --log-date-time are easier to follow. Please provide as separate files
Okay
miraclecast performs a mirroring for few time and crashed.
To make it works i changed the .miraclecast config file adding missing Windows required parameters by moving wfd_video_formats to wfd2_video_formats because it was wrong and added new wfd_video_formats according with [MS-WFDPE].pdf Microsoft specification. the .miracast config file mecomes like bellow:
[wifid]
log-level=debug
[sinkctl]
extends.wfd_video_formats=00 00 02 10 0001FEFF 3FFFFFFF 00000FFF 00 0000 0000 00 none none
extends.wfd_audio_codecs=LPCM 00000003 00, AAC 0000000f 00, AC3 00000007 00
extends.wfd_display_edid=0001 00ffffffffffff0051f38f50010000000e100104a51d10ff2f0000a057499b2610484f000000010101010101010101010101010101011a36809c70381f403020350025a510000018000000fc00496e7465726e616c204c43440a000000fd003c3c9a9a0e00000000000000000000000000000000000000000000000000000030
extends.wfd_connector_type=05
extends.microsoft_cursor=none
extends.microsoft_rtcp_capability=none
extends.wfd_idr_request_capability=1
extends.microsoft_latency_management_capability=none
extends.microsoft_format_change_capability=none
extends.microsoft_diagnostics_capability=none
extends.intel_friendly_name=miraclecast
extends.intel_sink_manufacturer_name=GNU Linux
extends.intel_sink_model_name=Arch linux
extends.intel_sink_device_URL=http://github.com/albfan/miraclecast
extends.wfd_uibc_capability=input_category_list=GENERIC, HIDC;generic_cap_list=Keyboard;hidc_cap_list=Keyboard/USB, Mouse/USB, MultiTouch/USB, Gesture/USB, RemoteControl/USB;port=none
extends.wfd2_rotation_capability=none
extends.wfd2_video_formats=40 00 01 10 0001bdeb 051557ff 00000fff 10 0000 001f 11 0780 0438, 02 10 0001bdeb 155557ff 00000fff 10 0000 001f 11 0780 0438
extends.wfd2_audio_codecs=LPCM 00000003 00, AAC 0000000f 00, AC3 00000007 00
extends.wfd2_video_stream_control=00
extends.intel_sink_version=product_ID=G4716-2000 hw_version=1.1.5.1345 sw_version=1.2.4.2451
extends.microsoft_video_formats=0000003fffff
extends.microsoft_max_bitrate=25000000
extends.microsoft_multiscreen_projection=none
extends.microsoft_audio_mute=none
extends.microsoft_color_space_conversion=none
what means crash? do you have a debug session or logs to check what's going on?
Log_Miraclecast_20230108_1540.txt This is the log you asked to attach.
I was able to reproduce locally:
free(): invalid pointer
It takes a lot to start streaming so now with --log-date-time
we can check what time is spent on
here is the bt:
#8 0x00000000004088c1 in sink_handle_get_parameter (s=0x472cf0, m=0x47ef20) at /home/alberto/projects/c/miraclecast/src/ctl/ctl-sink.c:107
#9 0x0000000000409a3a in sink_handle (s=0x472cf0, m=0x47ef20) at /home/alberto/projects/c/miraclecast/src/ctl/ctl-sink.c:371
#10 0x0000000000409ab5 in sink_rtsp_fn (bus=0x477a30, m=0x47ef20, data=0x472cf0) at /home/alberto/projects/c/miraclecast/src/ctl/ctl-sink.c:386
#11 0x0000000000416c7d in rtsp_call (bus=0x477a30, m=0x47ef20) at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2635
#12 0x0000000000417145 in rtsp_incoming_message (m=0x47ef20) at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2763
#13 0x0000000000415fe4 in parser_submit (bus=0x477a30) at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2157
#14 0x000000000041627e in parser_feed_char_header (bus=0x477a30, ch=13 '\r') at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2253
#15 0x0000000000416951 in parser_feed_char (bus=0x477a30, ch=13 '\r') at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2504
#16 0x0000000000416a6e in rtsp_parse_data (bus=0x477a30,
buf=0x7fffffffd1e0 "GET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0\r\nSession: 2006058288\r\nCSeq: 5\r\n\r\n07-088C-270AAE2DD901\r\nDate: Sun, 22 Jan 2023 08:27:22 GMT\r\nSession: 2006058288\r\nCSeq: 3\r\n\r\n2627-2DAE-0007-088C-270AAE2DD"..., len=80) at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2550
#17 0x000000000041722b in rtsp_read (bus=0x477a30) at /home/alberto/projects/c/miraclecast/src/shared/rtsp.c:2802
fixed on master 279303d
Hi, I´ve added a file .miraclecast at root directory with extentions example existing on /res/sinkctl.protocol-extension.example. I used Log Level 7 during this procedores with log file in PDF format is attached here.
Seen the log, it was possible to see the RTSP sequences M1 to M7 working propperly and M16(Keepalive). By the way after reach M7 Miraclecast detected a fault and disconnected from WFD_Source - Microsoft windows.
Can you see wat was going on?