Friday Facts #296 - All kinds of bugs

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

Re: Friday Facts #296 - All kinds of bugs

Post by astroshak » Sat May 25, 2019 12:46 am

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: 25
Joined: Thu Dec 29, 2016 1:26 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by TatsuZZMage » Sat May 25, 2019 2:16 am

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 » 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.

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: 3057
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by eradicator » 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 ;).
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

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

Re: Friday Facts #296 - All kinds of bugs

Post by BaggyK » 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.

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

Re: Friday Facts #296 - All kinds of bugs

Post by <NO_NAME> » Sun May 26, 2019 2:00 am

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 you did 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 » Sun May 26, 2019 4:03 pm

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 » Mon May 27, 2019 12:56 am

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
Inserter
Inserter
Posts: 36
Joined: Sun Jan 06, 2019 7:21 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by catma » 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!!

Ghoulish
Filter Inserter
Filter Inserter
Posts: 315
Joined: Fri Oct 16, 2015 8:40 am

Re: Friday Facts #296 - All kinds of bugs

Post by Ghoulish » Mon May 27, 2019 11:07 am

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.

Tekky
Filter Inserter
Filter Inserter
Posts: 996
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Tekky » Mon May 27, 2019 10:24 pm

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: 73
Joined: Fri Mar 01, 2019 7:56 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by boran_blok » Tue May 28, 2019 6:32 am

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
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Apr 13, 2017 7:10 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by smileynator » 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.

Tekky
Filter Inserter
Filter Inserter
Posts: 996
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Tekky » Wed May 29, 2019 7:45 am

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
Factorio Staff
Factorio Staff
Posts: 521
Joined: Sat Oct 12, 2013 9:08 am
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Dominik » 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.

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

Re: Friday Facts #296 - All kinds of bugs

Post by Zavian » 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.

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

Re: Friday Facts #296 - All kinds of bugs

Post by vanatteveldt » 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

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

Re: Friday Facts #296 - All kinds of bugs

Post by Jupiter » Thu Jun 13, 2019 8:47 pm

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: 172
Joined: Thu Jun 23, 2016 2:38 pm
Contact:

Re: Friday Facts #296 - All kinds of bugs

Post by Jupiter » Thu Jun 13, 2019 8:51 pm

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”

Who is online

Users browsing this forum: No registered users