firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Missing error codes for restore errors

Open reevespaul opened this issue 4 months ago • 2 comments

I came across this error today:

Image

This was with Fb 3.0.11.

Searching across the source for all supported branches failed to return neither 336330998 nor 336330999.

When I dug into messages2.sql I found this section:

('gbak_sysmemex', 'MISC_alloc_memory', 'misc.c', NULL, 12, 238, NULL, 'System memory exhausted', NULL, NULL);
<snipped>
(NULL, 'RESTORE_restore', 'restore.e', NULL, 12, 246, NULL, 'Database is not online due to failure to activate one or more indices.', NULL, NULL);
(NULL, 'RESTORE_restore', 'restore.e', NULL, 12, 247, NULL, 'Run gfix -online to bring database online without active indices.', NULL, NULL);

gbak_sysmemex matches error code 336330990 and counting through it is evident that the entry for 246 matches error code 336330998.

So, part of the problem was solved. But why are these codes missing?

B3_0_Release and v4.0-release are certainly affected. v5.0-release also appears to be affected but the code has been reworked. The relevant section in gbak.h is marked FB_IMPL_MSG_NO_SYMBOL

reevespaul avatar Aug 26 '25 16:08 reevespaul

What version of firebird.msg does the program use (see) ?

hvlad avatar Aug 26 '25 17:08 hvlad

Or: does application uses firebird.msg at all ? These messages were never included into firebird.dll and exists in firebird.msg only. (never == since v2.5 at least).

hvlad avatar Aug 26 '25 17:08 hvlad