Problem: you're trying to expand the canvas using the Crop tool, but Photoshop is generating new pixels to fill in the expanded area. Solution: watch this video :)
Problem: you're trying to create a line using the Line tool in Photoshop, but when you click and drag on the canvas, it's creating a rectangle instead. Solution: watch this video :)