Skip to content

EBADF: bad file descriptor + Fiber does not exist when executing INSERT INTO (works fine in classic VFP 9) #12

Open

Description

@Ostanto

When running a simple INSERT INTO statement on a table (wa_messages), FoxDev Studio throws the following errors.

The exact same code runs without any problem in classic Visual FoxPro 9.
Error messages:
textError 1098 in WA_MESSAGELOG.LOG line 33: Error invoking remote method 'data:write': Error: EBADF: bad file descriptor, write

  • Error 0 in line 0: Fiber 30 does not exist
    The error occurs specifically at this statement:
    foxproINSERT INTO wa_messages ;
    (phone, msg_text, dir, msg_type, status, filepath, sent_dt, err_msg, cr_dt) ;
    VALUES ( ;
    lcPhone, ;
    lcMsg, ;
    lcDirection, ;
    lcType, ;
    lcStatus, ;
    NVL(lcFilePath, ""), ;
    ldSent, ;
    NVL(lcError, ""), ;
    DATETIME() )
    Steps to Reproduce

Open the project in FoxDev Studio
Run the program / form that executes the INSERT statement above
The error appears immediately when the INSERT is executed

Expected Behavior

The INSERT should succeed (as it does in classic Visual FoxPro 9).
Actual Behavior

FoxDev Studio throws:

Electron IPC error: Error invoking remote method 'data:write': Error: EBADF: bad file descriptor, write
Fiber error: Fiber 30 does not exist

Environment

FoxDev Studio version: [FoxDevStudio-0.1.0-nightly.20260922.b337cd6-win-x64]
Operating System: [Windows 10 / Windows 11 / dll]
Classic VFP 9: Works normally (no error)

Additional Notes

The table wa_messages and the log file WA_MESSAGELOG.LOG seem to be involved.
The presence of “remote method 'data:write'” and “Fiber XX does not exist” strongly suggests an issue in the Electron + fiber-based runtime when handling file writes during database operations.

Thank you for looking into this!

Activity

  1. added
    bug
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions