Author Topic: Quite a Problem  (Read 10234 times)

0 Members and 1 Guest are viewing this topic.

Offline NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
I was able to fix most of the problems, however for the Petbe model the turret04b refuses to change from "none" to "y-axis".
In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
Alright so here's the most recent debug log: http://www.mediafire.com/download/kwhowlmjhg3ndlq/fs2_open.log

Some errors I am still working on cleaning up although one of them is out of my hands since the Ishtar requires a texture that, as far as I am aware, did not come with the ship. Will look into it.
In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Code: [Select]
WARNING: Unable to get shader uniform location for "desaturate"!
I don't know anything about this one.. Hopefully someone like The_E or AdmiralRalwood can shed some light here.
While I appreciate your faith in my troubleshooting abilities, a quick search through the code confirms that it's a problem deep in the graphics code (if I had to guess, vglGetUniformLocationARB() is encountering a problem, since the value failing the check is its return value, but there's no opengl_check_for_errors() call to find what the error is... assuming it would even report an OpenGL error), and graphics code is not one of my strong suits. It may also be completely harmless; I have no idea. Perhaps Swifty would have a better idea of what's going on there.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

  

Offline NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
I wanted to bump this along a bit. I'm still working on solving a lot of the easy to fix errors but one of the reasons as to why I started this thread was to solve a problem like this:

Code: [Select]
Could not load in 2_Pop3!
ntdll.dll! ZwWaitForSingleObject + 21 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_2.exe! <no symbol>
fs2_open_3_7_2.exe! <no symbol>

What tends to happen is that at certain specific parts of missions for unknown reasons, the UI bugs out. Head Anis fail to properly play and the entire interface refuses to load, creating errors like this. I know I need to fix the other errors first but I thought I'd post it here anyways to see if you guys had any ideas. I'll play another debug run through the same mission once most of the errors are fixed and place the log in an edited portion of this post.
In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Take a look in your fs2_open.log, I guess you'll find the message "A free Cfile_block could not be found." at the end.
The engine is running out of free file slots (there are 64 in current trunk code). It seems you're using too many files at once. (Why is that limit so low anyway? Am I missing something?)

Code: [Select]
WARNING: Unable to get shader uniform location for "desaturate"!
[...] (if I had to guess, vglGetUniformLocationARB() is encountering a problem, since the value failing the check is its return value, but there's no opengl_check_for_errors() call to find what the error is... assuming it would even report an OpenGL error) [...]
The warning is raised by opengl_shader_init_uniform in graphics/gropenglshader.cpp which calls vglGetUniformLocationARB, so AdmiralRalwood was correct...
I guess the "desaturate" uniform is listed in your post_processing.tbl but no shader actually uses it.

 

Offline NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
Quote
Take a look in your fs2_open.log, I guess you'll find the message "A free Cfile_block could not be found." at the end.
The engine is running out of free file slots (there are 64 in current trunk code). It seems you're using too many files at once. (Why is that limit so low anyway? Am I missing something?)

I had a feeling it was something involving this, so how do we rectify the problem?

Also, recent log with the same end error: http://www.mediafire.com/download/kwhowlmjhg3ndlq/fs2_open.log

In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Try this build and upload a new log. I've added a few debug messsages which should help.

 

Offline NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
We solved this on IRC. Apparently the issue was a .wav file which FSO couldn't load.
I've submitted a bug report for the cfile leak to mantis: http://scp.indiegames.us/mantis/view.php?id=3168