This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Wireshark 4.6.0 won't launch on Windows 11

asked Nov 10 '25

updated Nov 10 '25

Re-installed Wireshark a number of times, would not launch. Eventually worked out it was the user settings in C:\Users\username\AppData\Roaming\Wireshark causing the problem. Rename this folder to fix. Can you ensure the installation checks for user settings problems and either fixes them or replaces this folder to prevent the same happening again.

Comments

There may have been an issue with the config in the original folder.
Can you restore it then launch Wireshark from the command line to see if any errors are printed.

User 2763 ( Nov 10 '25 )
C:\Program Files\Wireshark>wireshark --log-level debug

 ** (wireshark:13360) 15:50:24.759822 [Epan WARNING] C:\gitlab-builds\builds\MsQ3pox2\1\wireshark\wireshark\epan\prefs.c:4926 -- read_prefs_file(): Malformed preference at line 135 of
C:\Users\username\AppData\Roaming\Wireshark\recent_common (save preferences to remove this warning)

Does not go any further, app fails to load. Can the program be updated to either provide an on screen message asking to replace the user settings or just replace them ?

User 21261 ( Nov 10 '25 )

recent_common is a ASCII file. Can you look at line 135 and share here if not sensitive data.
Can then look at the logic in prefs.c to determine issue.

User 2763 ( Nov 10 '25 )

Line 135 is

.FollowStreamDialog.y: 0

This is the section
# List of custom colors selected in Qt color picker.
gui.custom_colors: 
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff",
    "ffffffff", "ffffffff"
.FollowStreamDialog.y: 0
gui.geom.FollowStreamDialog.width: 1280
gui.geom.FollowStreamDialog.height: 999
# true or false (case-insensitive).
gui.geom.FollowStreamDialog.maximized: false
# Qt Geometry State (hex byte string).
gui.geom.FollowStreamDialog.qt_geometry: 01d9d0cb0003000000000136000000000000063500000405000001360000001f000006350000040500000000000000000780000001360000001f0000063500000405

The code needs some input validation to avoid failing. I am not a programmer so cannot debug any further.

User 21261 ( Nov 11 '25 )

I think the ".FollowStreamDialog.y: 0" bits are errant and should be deleted.

User 98587 ( Nov 11 '25 )

prefs.c is processing the file a single character at the time.
When it reads the . at start of line, the malformed message is printed.
Continuing on to grab the full line then printing it might cause issues with corrupt files?

User 2763 ( Nov 11 '25 )

1 Answer

0

answered Nov 11 '25

Maybe this entry was from a previous version. Should an upgraded version include a check for redundant config entries and remove them to prevent it crashing on launch.

Comments

The first line of the file should be something like # Common recent settings file for Wireshark 4.6.0.
What version of Wireshark wrote the file?

User 2763 ( Nov 11 '25 )

Can't be sure what version wrote this entry. On launch if a newer version is available it is offered and I usually install it. Previous version was 4.4.10-x64.exe.

User 21261 ( Nov 11 '25 )

The corrupt line is after what should have been the last data (gui colors) written to the file.
Currently no check to see if the file close is clean.

recent.c:

    fprintf(rf, "\n# Custom colors.\n");
    fprintf(rf, "# List of custom colors selected in Qt color picker.\n");
    string_list = join_string_list(recent.custom_colors);
    fprintf(rf, RECENT_GUI_CUSTOM_COLORS ": %s\n", string_list);
    g_free(string_list);

    fclose(rf);

    /* XXX - catch I/O errors (e.g. "ran out of disk space") and return
       an error indication, or maybe write to a new recent file and
       rename that file on top of the old one only if there are not I/O
       errors. */
    return true;
User 2763 ( Nov 11 '25 )

Seems like a local issue, a possible cause is some AV process blocking files. I'm not aware of this being reported much at all.

If you want too improve the handling of locally corrupted files, please raise an issue on our GitLab instance where the prevalence can be tracked, the more info you can provide would be helpful. See https://gitlab.com/wireshark/wireshar...

User 98587 ( Nov 12 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.