Selection highlight is not working in certain objects

Hello. For some reason some objects refuse to get highlighted when selected in Wireframe mode. What I’ve tried so far:

  • Deleting the Saved sub-folder on the project folder.
  • Resetting everything to defaults.
  • Turn on and off the option under Editor Preferences → Viewports.

So far, nothing. Curiously enough, when I un-tick the “Selection” box under the “Advanced” visualization menu (as is shown in the second screenshot) some things get highlighted as if selected. Everything on the perspective viewport is unselected, though. Any ideas?