I found a workaround in the forum by @he_deceives : XPCE windows freeze with swipl but not swipl-win
I copied and renamed it to the same installation directory, rather than user directory. Of course, this workaround will freeze the window when actually run graphics pp, but at least can it load successfully.