Could it be connected with directory /usr/lib/X11/scologin
?
It contains procedures for starting the graphical X session - starting login, window manager, X desktop etc.
Look what kind of error messages in file.
Could be wrong configured X system - X server cannot open the the display, or some of programs can not be started, tries many times and thats why a lot of errors.