You have people who don't have English as a first language talking to people.
You have people with varying levels of interpersonal skills - some pretty poor. For example, people with Asperger's can be pretty blunt when talking to others. And they don't always have best modern help to sort that out.
People tend to be protective of work they've done. Especially when it's being "attacked".
And people can be unconstructive in their criticism - "that sucks!" "You're an idiot for doing it like that!"
People can be very attached to certain models.
These combine into a massive clusterfuck. The fact the world runs on so much open source software really is remarkable.
As to fixing this stuff:
1) Create clear divides between technical lists and things that anyone can comment on.
2) Create clear rules about expected behaviour. ("Only technical comments"; "patches get attention, whines don't"; "comment on the code, not the coder"; "polite is good, constructive is essential, flames get you banned".)
2a) Have people to enforces those
3) Have some kind of comment limiting mechanism to prevent flames breaking out. Mostly this is user behaviour, but slowing comments might help to prevent a few flames turning into a forest fire.
4) Have experienced community members acting as mediators. Often flames happen when two people mostly agree with each other but are mis-interpreting a small point, or there are language problems, or some such.