What might have happened with the compass?

The compass might be completely broken.
The Professor and Harry may not know how to read the compass anymore.
The compass may have gotten water logged.
They may have passed the magnetic force that controls the compass.

There could be interference from another magnetic source nearby.

The compass could be pointing to true north instead of magnetic north.