Friday Facts #296 - All kinds of bugs

Regular reports on Factorio development.
astroshak
Filter Inserter
Filter Inserter
Posts: 635
Joined: Thu May 10, 2018 9:59 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by astroshak »

Am I the only one who really likes the colored vehicles?

Depending on the tileset I last got out of my tank or car, sometimes it can be easily overlooked when it is that unoccupied grey color. While I’m not sure that Brown would be any harder to overlook when it is parked on dirt, at least the color being saved when its not occupied should help make finding where it was parked that much easier overall.

User avatar
TatsuZZMage
Inserter
Inserter
Posts: 38
Joined: Thu Dec 29, 2016 1:26 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by TatsuZZMage »

3.5x speed 200x accel raming the train1000+ engines using modded 1tj fuel the size of a into its self on a large loop with a smaller loop using 3 train stops no conditions. having a gomez addams bit of fun. had about 8 crashes to dial the speed down till it didn't crash figured it wasn't worth mentioning. hahaha opps wait no still kills it hahaha.

msclrhd
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Feb 26, 2019 9:15 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by msclrhd »

eradicator wrote:
Fri May 24, 2019 11:58 am
programaths wrote:
Fri May 24, 2019 11:45 am
The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
Error: Acronym overflow has occured near "NPE".
NPE = Null Pointer Exception.

In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by eradicator »

msclrhd wrote:
Sat May 25, 2019 7:59 am
eradicator wrote:
Fri May 24, 2019 11:58 am
programaths wrote:
Fri May 24, 2019 11:45 am
The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
Error: Acronym overflow has occured near "NPE".
NPE = Null Pointer Exception.
Thank you. I was merely saying that recently NPE was mostly used as "New Player Experience" on FFF threads, so my brain-parser threw an error on the first attempt to understand that sentence. Though i seem to have been the only one with that problem ;).
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

BaggyK
Inserter
Inserter
Posts: 40
Joined: Fri Mar 01, 2019 12:22 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by BaggyK »

msclrhd wrote:
Sat May 25, 2019 7:59 am
NPE = Null Pointer Exception.

In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.
To be pedantic in C and C++ it is undefined behavior, which on something with an decent OS will probably cause an segmentation fault but it is not guaranteed.

User avatar
<NO_NAME>
Filter Inserter
Filter Inserter
Posts: 295
Joined: Tue Aug 02, 2016 9:52 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by <NO_NAME> »

BaggyK wrote:
Sat May 25, 2019 9:47 pm
msclrhd wrote:
Sat May 25, 2019 7:59 am
NPE = Null Pointer Exception.

In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.
To be pedantic in C and C++ it is undefined behavior, which on something with an decent OS will probably cause an segmentation fault but it is not guaranteed.
Yeah, it's call undefined behavior because if you don't have operating system which would monitor this (for example on microcontroller), the program may start wreaking havoc and doing pretty much random things. (It is really funny unless it happens to you.) In case of Factorio, segmentation fault would be the most accurate term, though.
I am a translator. And what did you do for Factorio?
Check out my mod "Realistic Ores" and my other mods!

Dave64738
Inserter
Inserter
Posts: 29
Joined: Wed Apr 13, 2016 10:37 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Dave64738 »

eradicator wrote:
Sat May 25, 2019 9:57 am
msclrhd wrote:
Sat May 25, 2019 7:59 am
eradicator wrote:
Fri May 24, 2019 11:58 am
programaths wrote:
Fri May 24, 2019 11:45 am
The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
Error: Acronym overflow has occured near "NPE".
NPE = Null Pointer Exception.
Thank you. I was merely saying that recently NPE was mostly used as "New Player Experience" on FFF threads, so my brain-parser threw an error on the first attempt to understand that sentence. Though i seem to have been the only one with that problem ;).
No, you're not, although I had the opposite problem reading stuff about the new player experience thinking "why are they talking about null pointer exceptions? it can't possibly mean that" but not being able for quite a while to work out what NPE stood for.

Randombandit
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon May 27, 2019 12:50 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Randombandit »

Shame to see any dev time wasted on stuff mods break (which would be fine after release).

I understand the interest though. The fun of programming is troubleshooting.

catma
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sun Jan 06, 2019 7:21 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by catma »

Can we have a bugs left count in every FFF until the new version, please?

Also a list of things that need be done after the bugs are thought to be fixed. Like a new trailer with the new HD graphics and new biters and the various colors of chemical plant smoke or something.

Nothing with a date tho, because there is always one more bug/thing, but it's nice to have a list of things left to do!!

User avatar
Ghoulish
Filter Inserter
Filter Inserter
Posts: 468
Joined: Fri Oct 16, 2015 8:40 am

Re: Friday Facts #296 - All kinds of bugs

Post by Ghoulish »

catma wrote:
Mon May 27, 2019 6:44 am
Can we have a bugs left count in every FFF until the new version, please?

Also a list of things that need be done after the bugs are thought to be fixed. Like a new trailer with the new HD graphics and new biters and the various colors of chemical plant smoke or something.

Nothing with a date tho, because there is always one more bug/thing, but it's nice to have a list of things left to do!!
Have a look at viewtopic.php?f=5&t=61864

I doubt the devs would do this, far better use of their time to fix bugs and move the game closer to release than tell us what's around the corner.
See the daily™ struggles with my Factory! :D https://www.twitch.tv/repetitivebeats

Tekky
Smart Inserter
Smart Inserter
Posts: 1040
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Tekky »

Thank you very much for this FFF. I found it really interesting to read about Rseding's experiences in bug fixing.

boran_blok
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Fri Mar 01, 2019 7:56 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by boran_blok »

catma wrote:
Mon May 27, 2019 6:44 am
Can we have a bugs left count in every FFF until the new version, please?
[..]
Just look at the number of threads in the bug reports subforum, that is your count.

smileynator
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Apr 13, 2017 7:10 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by smileynator »

Where can we hire you? I need more colleagues that work on my mental level. you are clearly in the right mindset.

Tekky
Smart Inserter
Smart Inserter
Posts: 1040
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Tekky »

smileynator wrote:
Wed May 29, 2019 7:35 am
Where can we hire you? I need more colleagues that work on my mental level. you are clearly in the right mindset.
You cannot hire them, they hire you! (if you are good)

Dominik
Former Staff
Former Staff
Posts: 658
Joined: Sat Oct 12, 2013 9:08 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Dominik »

Agamemnon wrote:
Fri May 24, 2019 4:15 pm
This reminds me of the 6 stages of debugging:

1 That can’t happen.

2 That doesn’t happen on my machine.

3 That shouldn’t happen.

4 Why does that happen?

5 Oh, I see.

6 How did that ever work?
7 Now it's working. Why the hell is it working?

8 Whatever. Push.

Zavian
Smart Inserter
Smart Inserter
Posts: 1646
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Zavian »

Dominik wrote:
Wed May 29, 2019 8:55 am
Agamemnon wrote:
Fri May 24, 2019 4:15 pm
This reminds me of the 6 stages of debugging:

1 That can’t happen.

2 That doesn’t happen on my machine.

3 That shouldn’t happen.

4 Why does that happen?

5 Oh, I see.

6 How did that ever work?
7 Now it's working. Why the hell is it working?

8 Whatever. Push.
9 Opps. That broke something else.

vanatteveldt
Filter Inserter
Filter Inserter
Posts: 947
Joined: Wed Nov 25, 2015 11:44 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by vanatteveldt »

Zavian wrote:
Wed May 29, 2019 9:40 am
Dominik wrote:
Wed May 29, 2019 8:55 am
Agamemnon wrote:
Fri May 24, 2019 4:15 pm
This reminds me of the 6 stages of debugging:

1 That can’t happen.

2 That doesn’t happen on my machine.

3 That shouldn’t happen.

4 Why does that happen?

5 Oh, I see.

6 How did that ever work?
7 Now it's working. Why the hell is it working?

8 Whatever. Push.
9 Opps. That broke something else.
10 GOTO 1

Jupiter
Fast Inserter
Fast Inserter
Posts: 174
Joined: Thu Jun 23, 2016 2:38 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Jupiter »

Crashing on dereferencing null? Add a null check
This is my life.


I should let every collegue of mine read this. This is literally what happened to me a few weeks ago except that some other programmer before me didn't have his 'smart part of their brain' light up and simply added a null-check, killing some functionality.

I fixed it properly, now the customer calls me amazing :P

Jupiter
Fast Inserter
Fast Inserter
Posts: 174
Joined: Thu Jun 23, 2016 2:38 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Jupiter »

vanatteveldt wrote:
Wed Jun 05, 2019 11:24 pm
Zavian wrote:
Wed May 29, 2019 9:40 am
Dominik wrote:
Wed May 29, 2019 8:55 am
Agamemnon wrote:
Fri May 24, 2019 4:15 pm
This reminds me of the 6 stages of debugging:

1 That can’t happen.

2 That doesn’t happen on my machine.

3 That shouldn’t happen.

4 Why does that happen?

5 Oh, I see.

6 How did that ever work?
7 Now it's working. Why the hell is it working?

8 Whatever. Push.
9 Opps. That broke something else.
10 GOTO 1
11 If time's up:
12 implement next feature

Post Reply

Return to “News”