The problem is solved after specifying distribution as base instead of the default one.
dotspacemacs-distribution 'spacemacs-base The problem occurs because of the layer spacemacs-ui-visual, but by disabling it, cannot see the spaceline.
Further investigation has shown that the package conflicting with sr-speedbar is the package popwin, so exclude this package in .spacemacs would solve the problem and can still use spaceline.