Could be problem with tf,
gmapping requires the
laser frames to be published. Frame names could be changed to any values you need. You need to make sure, that gmapping is configured with tf names that are already published. In other case gmapping will wait until they are published.