r/ProgrammerHumor • • May 20 '22

Meme Found Reddit video player source code

Post image
42.9k Upvotes

533 comments sorted by

3.4k

u/WeSaidMeh May 20 '22

This is exactly my experience, glad I'm not alone. Why is this?

1.4k

u/satosat May 20 '22

reddit is actually banned in my country, so i have to always use vpn to open it. i thought video freezing was just because of the crappy vpn. glad (though probably shouldn't be) to know that it's actually an issue for others as well.

438

u/MrSkme May 20 '22

What country is that?

746

u/satosat May 20 '22

Indonesia. I think the argument is that the ministry count them as 'pornographic' site. The ban included Tumblr and Vimeo as well IIRC although the two were overturned but Reddit remains banned.

409

u/Furry_69 May 20 '22

I mean, parts of it are, but so is nearly every single platform not meant for children. So is basically every single platform banned there?

→ More replies (14)
→ More replies (51)
→ More replies (1)

10

u/xaedmollv May 20 '22

bro, just change ur dns. it's not blocked in the IP level, just dns block. don't thank me, a fellow that country civilian

→ More replies (19)

131

u/Chirimorin May 20 '22

Because the Reddit video player is just garbage and it can't handle the one thing it was designed to do (playing video).

I've blocked v.redd.it posts through RES so I don't even see them anymore because each time I see such a post I'm just disappointed about being unable to watch it. If I was a subreddit mod I'd probably ban v.redd.it links just because they're such a waste of a post.

47

u/ihahp May 20 '22

And it plays sound separately for some fucking weird reason. It's not encoded into the video

37

u/moeburn May 20 '22

To make ripping the video harder. They want you to steal content and upload it to Reddit but not steal Reddit content and upload it elsewhere.

→ More replies (2)
→ More replies (1)

5

u/moeburn May 20 '22

/r/gaming has banned them, i think /r/gifs as well

21

u/Creator13 May 20 '22

It's interesting because I use Sync for Reddit and I rarely have issues opening videos hosted on reddit's own servers. They have always been somewhat slower to load than videos hosted elsewhere, but my experience is nothing like the horrendous experience watching videos on the web page is.

3

u/Cheet4h May 20 '22

I don't have any issues watching videos on the web page - is that solely a new reddit thing? I usually watch them in the expando of RES on old reddit.

→ More replies (1)

46

u/anythingMuchShorter May 20 '22

If the video is interesting more people are watching it. There are only so many tapes of each video so the server has to make you wait while someone else is watching.

31

u/ScreamingDizzBuster May 20 '22

And there are even longer delays if the last person who had it didn't rewind it.

15

u/fsdagvsrfedg May 20 '22

And the fuckers never rewind the tape when returning it either

3

u/OceanFlex May 20 '22

It actually might be this. They might have just forgot to turn on CDN or load balancing on their video system. Plus, those things cost money.

→ More replies (3)

9

u/[deleted] May 20 '22

It ALWAYS freezes around the 1/3-1/2 in. Why?

12

u/drawkbox May 20 '22

They probably cache to the edge part of it to make it quick for scrolling down the page and then it bounces to deeper content for the latter maybe. At large enough scale that could save tons of money but be a bad experience if not prepped better.

Also all the tracking i.e. "telemetry".

Also reddit video uis are horrible, lame design and wonky interaction.

9

u/Character_Building May 20 '22 edited May 20 '22

From my observations, Reddit creates artificial technical complexity, like storing sound and video separately when they are traditionally part of the same file, to induce people into sharing comment pages rather than direct content. This adds maintenance costs on top of an already very complicated technical problem (huge video services) that's also very expensive.

Presumably, the hope is that it makes more people convert into users/keeps the site going, rather than people just 'ripping' content.

Edit: this may be a standard I wasn't familiar with, so this may not be the case

→ More replies (2)

24

u/subject_deleted May 20 '22

Reddit server is potato. Only explanation.

90

u/Schrolli97 May 20 '22

It's not the servers though. That's just what people in r/memes and such say because they know shit about the client/server model. All videos play fine until one doesn't, suddenly every new video doesn't work either. Once you restart the app everything works fine again. Sounds like poor memory management or something to me

37

u/Otherwise_Report_462 May 20 '22

Have you ever scrolled really far on desktop? It goes so laggy

→ More replies (2)
→ More replies (1)

51

u/TKT_Calarin May 20 '22

Servers are just fine when desktop and every non official smartphone app plays videos just fine.

It's their truly terrible shit code.

At least I don't hear the audio from the post before or after anymore....

I just haven't found a replacement all that lets me swipe as easily through the posts. Maybe once I get an iPhone since I've good things about the popular iPhone one

9

u/takesSubsLiterally May 20 '22

Apollo is pretty great but for Android I would recommend infinity, I randomly stumbled upon it on the play store and it's better than Apollo imo. Pretty good customization, not great, but it's similar to the reddit app in terms of layout and the video player actually works.

→ More replies (5)
→ More replies (6)
→ More replies (2)

2

u/often_says_nice May 20 '22

My guess is that interesting videos have more people trying to play them at any given time. Perhaps there are a limited number of workers that handle video posts.

→ More replies (1)

2

u/[deleted] May 20 '22
→ More replies (18)

460

u/OffBrandNameBrand May 20 '22

If Reddit devs need a hand, I am sure that r/ProgrammerHumor community could make a better video player just for the meme.

166

u/weird_dude_69_420 May 20 '22

I'm in.

79

u/SteeleDynamics May 20 '22

Let's do it.

0

u/[deleted] May 20 '22

[deleted]

36

u/chifrij0 May 20 '22

Or python, dear god

→ More replies (5)
→ More replies (10)

49

u/[deleted] May 20 '22

Here,


const VideoHandler = (): void -> {
  if (Video.IsInteresting() || Math.random() > 0.5) {
    RedditVideoPlayer.Play();
  } else {
    RedditVideoPlayer.Play();
  }
};

0

u/[deleted] May 20 '22

[deleted]

12

u/YouTube-r May 20 '22

const VideoHandler = (): void -> {
  if (Video.IsInteresting()) {
    RedditVideoPlayer.Play();
  } else if(Math.random() > 0.5) {
    RedditVideoPlayer.Play();
  } else if(Math.random() < 0.5) {
    RedditVideoPlayer.Play();
  } else if(true) {
    RedditVideoPlayer.Play();
  } else if(!RedditVideoPlayer.isPlaying) {
    RedditVideoPlayer.Play();
 } else if(RedditVideoPlayer.isPlaying) {
    RedditVideoPlayer.Play();
 } else if(true) {
    RedditVideoPlayer.Play();
 } else if(false) {
    RedditVideoPlayer.Play();
}
};

→ More replies (2)

39

u/CoastingUphill May 20 '22

And just like that, 100 new side projects were started, never to be finished.

32

u/[deleted] May 20 '22

They could also go back to an old version. Around a year ago it worked fine for me in the app

19

u/spikegk May 20 '22

Yeah but that was legacy code no one knew how to build anymore so it had to go.

12

u/50-Lucky May 20 '22

Somewhere in the code is //Epstein didnt kill himself

Guaranteed

5

u/kingerthethird May 20 '22

No, that's not a comment, it's a constant.

EPSTEINDIDNTKILLHIMSELF = TRUE;
→ More replies (1)
→ More replies (1)

3

u/ishdx May 20 '22

or how about just use the built-in browser video player

→ More replies (1)

30

u/GodGrabber May 20 '22

document.onLoad = () => {

RedditVideoPlayer.play();
RedditVideoPlayer.stop();

RedditVideoPlayer.play();
RedditVideoPlayer.stop();

RedditVideoPlayer.play();
RedditVideoPlayer.stop();

if(Math.random() > 0.7) RedditVideoPlayer.play()

}

6

u/weird_dude_69_420 May 20 '22

ha ha...another case

2

u/sajjadalis May 20 '22

You forgot to add setTimeout() in between each play/stop. 😀

21

u/GoldenretriverYT May 20 '22

Now we know why livestreams always play. They aren't interesting.

4

u/[deleted] May 20 '22

The Intellisense doesn't show errors, this might be the real thing actually.

977

u/cmdkeyy May 20 '22

And when it does load, it plays in terrible quality before freezing after the first 5 seconds

219

u/Pokinator May 20 '22

I wish you could set universal quality settings. Every time I have to manually set it to max (usually 720p) and yet it still plays like shit. I'm willing to wait for it to buffer, don't nuke the video to 144 when I'm trying to read text in the video

78

u/Magikarpeles May 20 '22

Also it reloads the whole thing after every play through. I noticed this when I lost reception on my phone and it would simply refuse to replay even though I’d just watched it.

20

u/uchihajoeI May 20 '22

And then sometimes you go to another video and the audio from the previous video is still playing.

→ More replies (1)
→ More replies (1)

71

u/[deleted] May 20 '22

Jokes aside, Reddit videos plays fine in HQ for a few seconds, and then it literately goes to 1 FPS and extremely hard-compressed blocky quality at something that looks like 72p. And I mean 1 FPS literately -- the "video" updates one time per second.

It is incredible that the "world largest website" has such big technical issues.

21

u/Tanglebrook May 20 '22

Yeah, what's with that? On desktop I don't have freezes or stutters, but exactly halfway into every video the quality tanks. It's like clockwork, and it's been like that for years. Embarrassing.

11

u/Jokingkin May 20 '22

Yep I barely watch videos on desktop because of this. Tho I use a 3rd party app for reddit on my phone since the media player plays properly.

→ More replies (1)
→ More replies (1)
→ More replies (2)

3

u/6425 May 20 '22

Yeah, short videos are now pretty much a write-off.

569

u/dummyDummyOne May 20 '22

if it's a gif, serve .mp4 with no audio if it's an mp4, serve .gif

151

u/M_krabs May 20 '22

Of it's any other format, random 50% chance it will chug

40

u/[deleted] May 20 '22

.webp for images

32

u/M_krabs May 20 '22

Videos are svg's with lots of transformations

10

u/i_have_chosen_a_name May 20 '22

It if has sound, remove it. If it has no sound, add the oh no no no song to it.

238

u/-NiMa- May 20 '22

if (Video.LiveStream()){

RedditVideoPlayer.PlayFullHD();

}

72

u/bajuh May 20 '22

RedditVideoPlayer.PlayFullHD(freeze: false);

4

u/[deleted] May 20 '22

You forgot to play ads at full HD

627

u/KickinWithKaine May 20 '22

Image Transcription: Code


const VideoHandler = (): void -> {
  if (Video.IsInteresting() || Math.random() > 0.5) {
    RedditVideoPlayer.Freeze();
  } else {
    RedditVideoPlayer.Play();
  }
};

I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

379

u/Same_Return_579 May 20 '22

Good human

89

u/BotBlazing May 20 '22

Thank you, Same_Return_579, for voting on KickinWithKaine.

This bot wants to find the best and worst humans on Reddit. You can view results here.


Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!

86

u/bruh_bot_69420 May 20 '22

I am 99.02496% sure that the above link contains rick roll.

Beep boop, I am a bot that uses an advanced machine learning algorithm to detect potential rick roll, learn more about the project here.

→ More replies (2)

29

u/d00pid00 May 20 '22

Slight correction: It's void => {, not void -> {

→ More replies (1)

7

u/ExplodingOrngPinata May 20 '22

No joke I've read one of these comments and it was faster than waiting for a video to load.

I have gigabit internet.

Thank you for everything you do.

→ More replies (2)

359

u/whiznat May 20 '22

This is fake. Reddit never just plays a video. You have to reload the page at least once, often twice, occasionally over and over and over.

→ More replies (19)

264

u/petergriffin1115 May 20 '22

If livestream:

runSoSmoothlyFeelsLikeOfline()

75

u/Pokinator May 20 '22

Might be what's eating all their bandwidth

→ More replies (1)

46

u/Rhinofreak May 20 '22

Livestream the prerecorded videos then

54

u/petergriffin1115 May 20 '22

Found the project manager (giving any random solution)

9

u/Rhinofreak May 20 '22

Bro wtf I'm actually working as one (more or less) right now

→ More replies (4)

93

u/ApatheticWithoutTheA May 20 '22

Amazing with how much Reddit is worth, they can’t hire a developer to fix the fucking video player!

16

u/g000r May 20 '22 edited May 20 '24

wistful attraction husky telephone marvelous dam imminent spoon beneficial plant

This post was mass deleted and anonymized with Redact

7

u/barofa May 20 '22

I don't know, the code seems very complex, I'm sure they did their best.

→ More replies (1)

35

u/coulls May 20 '22

I think I hit the other routine all the time.., the one where video brightness is set to 1000% on some videos. Ha ha!

9

u/paulstelian97 May 20 '22

You have HDR? Consider yourself lucky

→ More replies (1)

24

u/[deleted] May 20 '22

10

u/[deleted] May 20 '22

And don’t use the official bloody reddit app. It's shit!

→ More replies (2)

10

u/PineCone227 May 20 '22

Where are the DisplayRandomNoise() and DistortSound() functions?

16

u/user32532 May 20 '22

an important part is missing like

video.setQuality("4KUHD")
if (video.hasFinishedPlayingOnce()){
video.setQuality("120p")
video.enableRandomStutter(true)
}

4

u/50-Lucky May 20 '22

Also

If (input.TimeSelect == true) video.freeze;

It's been ages since I did programming so I probably butchered that, but holy shit if you go to show someone a video and pick a timestamps etc you bet your ass that video never works again

7

u/LKZToroH May 20 '22

I don't know other options for web reddit but for mobile I use RIF as my reddit "browser" and I have 0 problems with videos using it. It even works for redgifs

3

u/hudgepudge May 20 '22

Was looking for someone else who had zero issues. RIF does a great job apparently.

5

u/LKZToroH May 20 '22

Rif the best imo. Simple, fast and received regular updates, also the ads are completely non intrusive

→ More replies (2)

2

u/anthonyjr2 May 20 '22

Apollo here, never have an issue either.

→ More replies (2)

3

u/itsjustawindmill May 20 '22

TRWTF is that ligature on line 1. Stop it! Stoppit!!

5

u/weird_dude_69_420 May 20 '22

he he...I kinda like it. Anything wrong with it in your opinion?

2

u/itsjustawindmill May 20 '22

Yes. There’s a good post on practicaltypography.com that explains these in more detail, but here’s the long and short of it:

  • It’s impossible for such a font to distinguish between combos in strings and combos being used as language keywords/operators.

  • There is no agreed upon meaning for ligatures, so when presenting your code to others (as you did here) you run the risk of causing confusion. Does this language actually use the implication symbol? If I backspace once from the symbol, why does it replace it with an “=“ instead of deleting it? How come pasting into a different program/website (github? np++?) the code looks different?

  • Their only value is aesthetic, and this can be contested. So only use them if you’re 100% sure they won’t affect anyone else’s work, or (heaven forbid) you adopt a standard set of ligatures across your entire team.

3

u/weird_dude_69_420 May 20 '22

mmh..ok I'll check it out... I use it personally. I don't preach it as well. Seems like good reasons.

→ More replies (5)

4

u/robclancy May 20 '22

Ligatures are great. That font overall looks great.

6

u/BertyTheBook May 20 '22
if (Video.isAd()) {
    RedditVideoPlayer.LoadPriority();
}

6

u/ogreUnwanted May 20 '22 edited May 22 '22

I know this is for fun and humour. But the syntax looks like typescript, but the naming convention of pascal case throws me off.

What is it?

5

u/DividedState May 20 '22

Needs some time.sleep and endless buffering while loops.

4

u/Chamkaar May 20 '22

Hahah happens to me all the time

4

u/[deleted] May 20 '22

Freeze method: Hang the whole f*** cellphone

4

u/d3vil401 May 20 '22

The line 3 (first if) should have not been using an OR || but an AND &&

At least from my experience

4

u/joedeandev May 20 '22

Clearly, isInteresting should be a standalone function that takes a Video (or Image) as its parameter.

→ More replies (1)

1

u/willez99 May 20 '22

What is the definition of interesting

1

u/C83_14 May 20 '22

Where's the console.log("fuck the user") ?

1

u/rndmcmder May 20 '22

You'll don't realize that the video is only interesting because you can't see it?

3

u/weird_dude_69_420 May 20 '22

Grass is greener on the other side?

1

u/belacscole May 20 '22

these days i just call in one of the downloader bots just to watch the fucking video

1

u/weird_dude_69_420 May 20 '22

me too...I just download the video.

→ More replies (1)

1

u/Late-Scale May 20 '22

Public bool IsInteresting() { Return true; }

1

u/weird_dude_69_420 May 20 '22

ha ha ha... probably

1

u/TheAwesome98_Real May 20 '22

the way I understand this is it’s a half chance to freeze it it’s an interesting video. right?

1

u/weird_dude_69_420 May 20 '22

if its interesting OR the math.random is greater than .05

1

u/Nine-LifedEnchanter May 20 '22

Let's say that I wasn't very good at programming.. what would you say that the random math bit was about? Asking for a friend.

1

u/weird_dude_69_420 May 20 '22

It would still try to screw you even if the video was not interesting. Should have made it true instead of that. 😆

→ More replies (1)

1

u/[deleted] May 20 '22

Often faster to just use the savereddit extension and download the video, even with the shittiest internet in town it's still faster than that damn video player.

1

u/[deleted] May 20 '22

Yo what colour theme is this

1

u/APEXchip May 20 '22

Off topic: What language is this?

1

u/Romulus3799 May 20 '22

This is one of the only code memes I've seen where nobody can bitch about the code itself in the comments. It's perfect typescript, good job OP

1

u/weird_dude_69_420 May 20 '22

ESlint for the rescue

3

u/[deleted] May 20 '22

I really feel like they meant &&?

2

u/lukabrlek May 20 '22

Yeah, this way (with ||) it seems like it should play if it is interesting 100% of the time.

3

u/dejv913 May 20 '22

It's funny. All I see on Reddit are complaints about video player. Meanwhile here I am on old reddit and never experienced an issue.

Why are people using new reddit?

→ More replies (1)

1

u/excral May 20 '22

Hey, at least it's TypeScript

2

u/weird_dude_69_420 May 20 '22

maybe I should have done it in JS just to match reddit. I gave it too much.

0

u/[deleted] May 20 '22

[deleted]

2

u/weird_dude_69_420 May 20 '22

recent .NET exposure he he.

2

u/Fluxfall May 20 '22

All videos turn into murder video quality. It's fucking horrible and I hate it. Choppy as fuck.

2

u/N00bRobloxian09 May 20 '22

Haha yes, this is so true.

2

u/NOTHEJAS May 20 '22

alr now fix it

2

u/mekwall May 20 '22

I'm impressed it's typed, but it is not valid TypeScript!

2

u/ExtraGreasy May 20 '22

I don't know how to code but all I need to know to sympathize with this is that the last line looks like a sad face };

2

u/philophilo May 20 '22

Where’s the DowngradeTo240pForNoReason method?

2

u/[deleted] May 20 '22 edited Jul 15 '25

provide water bedroom sophisticated wise adjoining air meeting piquant jellyfish

This post was mass deleted and anonymized with Redact

2

u/ChosenMate May 20 '22

use a third party app

2

u/7K_K7 May 20 '22

Just use reddit third party apps. I use one called infinity and it is amazing.

2

u/tnuke1 May 20 '22

Using boost for reddit no videos ever freeze, but there's an annoying bug that distorts the audio, but it's also present in the official app so idk

2

u/The_llama123 May 20 '22 edited May 20 '22

class RedditLoad (self):

> def __init__ (self):

> > self.__LoadImage = '140 P'

> def change_image (self, Quality):

> > self.__LoadImage = str(Quality)

if RedditImage == 'AD':

> Quality = '4K'

> > RedditLoad.change_image(Quality)

2

u/New-Tomato2349 May 20 '22

I can't be the only person here that's not had any issues with videos on Reddit, right?

2

u/Jkimainthere May 20 '22

if playing :
freeze(Reddit_Video_Player)

2

u/Negitive545 May 20 '22

For forgot

If videosPlayed > 3 { Freeze() }

2

u/yaosio May 21 '22

Let me just set the resolution to 144p for you.

1

u/markpreston54 May 20 '22

Actually, this could actually makes sense.

Too many users try to access interesting video and the system encounters bottleneck somewhere in between when too many users access the same file

→ More replies (1)

1

u/Burgers8 May 20 '22

Good job 👍

1

u/Tankki3 May 20 '22

That fits my experience.

1

u/MaybeAdrian May 20 '22

So isn't my internet.

1

u/Rezaka116 May 20 '22

And that's how you make people spend more time on your website! This is genius

1

u/[deleted] May 20 '22

forgot about the case for adverts

1

u/[deleted] May 20 '22

You forgot to disable the audio

1

u/technobird22 May 20 '22

Hmm... so sometimes it doesn't freeze, but it drops the quality to something so bad you can't really see anything. It becomes incredibly pixelated.

I know it's not me because I have gigabit internet and can watch 4K YouTube videos fine 😂

1

u/Nasaku7 May 20 '22

At this point I'm just surprised how bad it is, even I managed to use an open source react player that just works 100% for all types of files and codecs, never ran into problems

1

u/RandyBoggs1986 May 20 '22

this. So mcuh this

1

u/S0B3RN0M4D May 20 '22

They did it on purpose to annoy its users.

Every viral website has a properly working video player, and Reddit's one has no special feature to justify its bugs.

Reddit team, call Pornhub and ask them which player do they use. Thank me later.

1

u/SFL_Tria May 20 '22

Code segment memes are underrated

1

u/Alan_Smithee_ May 20 '22

You forgot “black screen, and endless spinning wheel.”

1

u/[deleted] May 20 '22

I never had any problem with reddit video player.

The twitch one however.. is horrible.

1

u/Ultra_Noob69 May 20 '22

Jokes on you, i use infinity

1

u/[deleted] May 20 '22

/u/iamthatis will have this fixed in next version of /r/apolloapp 😜

1

u/RandomEasternGuy May 20 '22

I am more annoyed by the fact that I'm receiving the same posts over and over again. There appears to be no flag for "seen", only for up or down voted posts. This problem is from their API, since it is the same on Boost and normal app.

1

u/AlmostAnchovy May 20 '22

if(Video.IsLive()){ RedditVideoPlayer.Play(8K, 120fps); }

1

u/CitesQuo May 20 '22

if.save.play

1

u/Knuffya May 20 '22

So if a video is interesting, it will instantly stop and never play again? I would've and-joined these two expressions.

1

u/Timo6506 May 20 '22

Every time it freezes I have to go to the poster’s profile where the video actually plays

1

u/Sennomo May 20 '22

what language is this?

→ More replies (1)

1

u/[deleted] May 20 '22

Math.Random not so random heh heh PRNG

1

u/tuanalumi May 20 '22

Don't forget about the ad video. It loads like it's local.

1

u/[deleted] May 20 '22

r/notinteresting will like analyzing that algorithm, probably not as it is too interesting.

1

u/JeffBPesos May 20 '22

I guess that interesting videos get more views and are thus more likely to buffer.

1

u/grammarGuy69 May 20 '22

0.5 my ass

1

u/rosenskjold May 20 '22

Too clean, real code would have at least five expletive comments

1

u/_Nohbdy_ May 20 '22

Always works perfectly 100% of the time for me, unless my wifi is crap or reddit is having trouble with everything.

Using the RIF app, that's probably why.

1

u/[deleted] May 20 '22

This font is col, anyone know how to change to it?

1

u/callmetroller May 20 '22

What about the reddit app where it just starts randomly playing videos im not looking at at full volume

1

u/wondergom83 May 20 '22

Hahaha Legend!

1

u/Thenderick May 20 '22

I still don't understand what the difference is between function x(){} and const x = function(){}... Can someone explain?

0

u/[deleted] May 20 '22

[deleted]

→ More replies (2)

1

u/[deleted] May 20 '22

I've never had any issues, but I see stuff about this all the time. What are people using to view reddit? And is it old or new reddit?

1

u/TrotBot May 20 '22

Don't forget the code for dropping down to 2p after 30 frames

1

u/Splitje May 20 '22

Same with the Twitter mobile video player

1

u/zeecookiemonster May 20 '22

Not a programmer, but there are some amazing other features:

  • 1: Press play/pause too many times (random as above source code) and it will drop brightness to 50%

  • 2: Click anywhere on the video (to pause it) and then if you click a spot that is above/below the pixel height of where you just clicked, no longer pause/play until you use the actual play/pause.

1

u/bewbsrkewl May 20 '22

Can we see that IsInteresting method?

1

u/ConConTheMon May 20 '22

So annoying lol

1

u/Fatdumbmagatard May 20 '22

? You guys using the official reddit app or something? Never had a video not play.

1

u/siddharth904 May 20 '22

Error: RedditViddeoPlayer.Freeze() is not a function.

Whole app crashes