Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opusscript_native._free is not a function #214

Closed
Emtecsus opened this issue Aug 6, 2023 · 9 comments · Fixed by #237
Closed

opusscript_native._free is not a function #214

Emtecsus opened this issue Aug 6, 2023 · 9 comments · Fixed by #237
Assignees
Labels
bug Something isn't working

Comments

@Emtecsus
Copy link

Emtecsus commented Aug 6, 2023

Describe the bug
ERROR [DiscordVoiceService] TypeError: opusscript_native._free is not a function

To Reproduce
Steps to reproduce the behavior:
1.Start the bot
2.Play any song
3.Disconnect the bot
4.Play another song and the bot will enter the chat but no sound is produced

LOG

yarn run v1.22.15
$ node dist/main
(node:28) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [NestFactory] Starting Nest application...
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] AppModule dependencies initialized +39ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscordModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] PlaybackModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] ServeStaticModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] TerminusModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +50ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] EventEmitterModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscordHostModule dependencies initialized +2ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] UpdatesModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] JellyfinClientModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscordModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscordModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] HealthModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] DiscordClientModule dependencies initialized +1ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [InstanceLoader] CommandModule dependencies initialized +0ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [RoutesResolver] HealthController {/health}: +19ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [RouterExplorer] Mapped {/health, GET} route +2ms
[Nest] 28 - 08/06/2023, 11:06:00 PM LOG [PlayItemCommand] Subscribe to event(on): interactionCreate
(node:28) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 interactionCreate listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
[Nest] 28 - 08/06/2023, 11:06:01 PM LOG [NestApplication] Nest application successfully started +688ms
[Nest] 28 - 08/06/2023, 11:06:42 PM LOG [RegisterCommandService] All global commands are registered!
[Nest] 28 - 08/06/2023, 11:09:37 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:12:05 PM ERROR [DiscordVoiceService] TypeError: opusscript_native._free is not a function
[Nest] 28 - 08/06/2023, 11:12:05 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:12:33 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:14:53 PM ERROR [DiscordVoiceService] TypeError: opusscript_native._free is not a function
[Nest] 28 - 08/06/2023, 11:14:54 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:16:00 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:17:35 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:18:06 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged
[Nest] 28 - 08/06/2023, 11:20:43 PM ERROR [DiscordVoiceService] TypeError: opusscript_native._free is not a function
[Nest] 28 - 08/06/2023, 11:20:43 PM WARN [JellyfinWebSocketService] Received a package from the socket of unknown type: UserDataChanged

@manuel-rw
Copy link
Owner

Thanks for the issue. I'll try to reproduce.

@manuel-rw manuel-rw self-assigned this Aug 7, 2023
@manuel-rw manuel-rw added the bug Something isn't working label Aug 7, 2023
@sssionek
Copy link
Contributor

Hi, this seems to stem from abalabahaha/opusscript#24.
There is a fix ready for this - abalabahaha/opusscript#23, I have been unable to test it, but can you try pulling it in as a dependency in the test branch?

@sssionek
Copy link
Contributor

sssionek commented Sep 12, 2023

Just in case - a similar log from me:

WARNING: Published ports are discarded when using host network mode
yarn run v1.22.15
$ node dist/main
(node:28) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[NestFactory] �[39m�[32mStarting Nest application...�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mAppModule dependencies initialized�[39m�[38;5;3m +23ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscordModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscoveryModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mPlaybackModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mConfigHostModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mServeStaticModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mTerminusModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mScheduleModule dependencies initialized�[39m�[38;5;3m +16ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mEventEmitterModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mConfigModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscordHostModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mUpdatesModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mJellyfinClientModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscordModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscordModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mHealthModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mDiscordClientModule dependencies initialized�[39m�[38;5;3m +1ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[InstanceLoader] �[39m�[32mCommandModule dependencies initialized�[39m�[38;5;3m +0ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[RoutesResolver] �[39m�[32mHealthController {/health}:�[39m�[38;5;3m +8ms�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[RouterExplorer] �[39m�[32mMapped {/health, GET} route�[39m�[38;5;3m +2ms�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[JellyfinService] �[39m�[95mCreated Jellyfin Client and Api�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "help",
  "description": "Get help if you're having problems with this bot",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "status",
  "description": "Display the current status for troubleshooting",
  "defaultMemberPermissions": "ViewChannel",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "random",
  "description": "Enqueues a random selection of tracks to your playlist",
  "options": [
    {
      "name": "count",
      "description": "Count of items to search for",
      "required": false,
      "type": 4,
      "minValue": 0,
      "maxValue": 10000
    }
  ]
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "playlist",
  "description": "Print the current track information",
  "options": [
    {
      "name": "page",
      "description": "The page",
      "required": false,
      "type": 4
    }
  ]
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "disconnect",
  "description": "Join your current voice channel",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "pause",
  "description": "Pause or resume the playback of the current track",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "next",
  "description": "Go to the next track in the playlist",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "stop",
  "description": "Stop playback entirely and clear the current playlist",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "summon",
  "description": "Join your current voice channel",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "play",
  "description": "Search for an item on your Jellyfin instance",
  "options": [
    {
      "name": "name",
      "description": "Item name on Jellyfin",
      "required": true,
      "type": 3,
      "autocomplete": true
    },
    {
      "name": "type",
      "description": "Desired item type",
      "required": false,
      "type": 4,
      "choices": [
        {
          "name": "Audio",
          "value": 0
        },
        {
          "name": "AudioAlbum",
          "value": 1
        },
        {
          "name": "Playlist",
          "value": 2
        }
      ]
    }
  ]
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "previous",
  "description": "Go to the previous track",
  "options": []
}

�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mSlash command options�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[BuildApplicationCommandService] �[39m�[95mObject:�[39m
{
  "type": 1,
  "name": "volume",
  "description": "Change the volume",
  "options": [
    {
      "name": "volume",
      "description": "The desired volume",
      "required": true,
      "type": 4,
      "minValue": 0,
      "maxValue": 150
    }
  ]
}

�[32m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[32m    LOG�[39m �[38;5;3m[PlayItemCommand] �[39m�[32mSubscribe to event(on): interactionCreate�[39m
(node:28) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 interactionCreate listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[JellyfinService] �[39m�[95mConnected using user 'xxx'�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:39 PM �[95m  DEBUG�[39m �[38;5;3m[JellyinPlaystateService] �[39m�[95mReported playback capabilities sucessfully�[39m
�[32m[Nest] 28  - �[39m09/12/2023, 1:34:40 PM �[32m    LOG�[39m �[38;5;3m[NestApplication] �[39m�[32mNest application successfully started�[39m�[38;5;3m +890ms�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:45 PM �[95m  DEBUG�[39m �[38;5;3m[PlayItemCommand] �[39m�[95mDid not attempt a search, because the auto-complete option was empty�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:47 PM �[95m  DEBUG�[39m �[38;5;3m[PlayItemCommand] �[39m�[95mInitiating auto-complete search for query 't' with type 'undefined'�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:47 PM �[95m  DEBUG�[39m �[38;5;3m[PlayItemCommand] �[39m�[95mInitiating auto-complete search for query 'test' with type 'undefined'�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[JellyfinWebSocketService] �[39m�[95mOpening WebSocket with client id jellyfin-discord-bot...�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[PlayItemCommand] �[39m�[95mExtracted 1 tracks from the search item�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[PlayItemCommand] �[39m�[95mAdding 1 tracks with a duration of 413573.8112 ticks�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[JellyinPlaystateService] �[39m�[95mReporting playback start on track 'xxx'�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[JellyfinStreamBuilderService] �[39m�[95mBuilding stream for 'xxx' with bitrate 96000�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[DiscordVoiceService] �[39m�[95mPlaying audio resource with volume 1�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[DiscordVoiceService] �[39m�[95mInitialized new instance of AudioPlayer because it has not been defined yet�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[DiscordVoiceService] �[39m�[95mAudio player changed state from idle to buffering�[39m
�[31m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[31m  ERROR�[39m �[38;5;3m[DiscordVoiceService] �[39m�[31mTypeError: opusscript_native._free is not a function�[39m
�[95m[Nest] 28  - �[39m09/12/2023, 1:34:51 PM �[95m  DEBUG�[39m �[38;5;3m[DiscordVoiceService] �[39m�[95mAudio player changed state from buffering to idle�[39m
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: Unexpected server response: 302
    at ClientRequest.<anonymous> (/app/node_modules/ws/lib/websocket.js:888:7)
    at ClientRequest.emit (node:events:390:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:623:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:487:22)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:199:23)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/app/node_modules/ws/lib/websocket.js:1008:13)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It seems to also trigger when joining a voice channel (/summon), not only while trying to play something.

@Emtecsus
Copy link
Author

Hi, this seems to stem from abalabahaha/opusscript#24. There is a fix ready for this - abalabahaha/opusscript#23, I have been unable to test it, but can you try pulling it in as a dependency in the test branch?

I'm not really sure how to do it, but i'll give it a try

@manuel-rw
Copy link
Owner

Hi, sorry for my late reply on this topic. As long as abalabahaha/opusscript#23 doesn't get merged, I'm afraid that I can't build a test image with the bug fix. Copying the source files directly is often janky. @abalabahaha can you help us out?

@sssionek
Copy link
Contributor

@manuel-rw abalabahaha updated opusscript a few hours ago, could you try now?

@manuel-rw manuel-rw linked a pull request Oct 10, 2023 that will close this issue
@manuel-rw
Copy link
Owner

Done. Github auto-closed the issue. Please let me know if it works now

@manuel-rw
Copy link
Owner

Any update @sssionek ?

@sssionek
Copy link
Contributor

Any update @sssionek ?

Yeah, I'm still having issues with crashes but they seem like a completely different issue - reported as #238.
The opusscript message is gone and looking through my logs, it seems that before that other crash - playback setup works as expected.

[Nest] 28  - 10/14/2023, 7:23:30 PM   DEBUG [JellyfinWebSocketService] Opening WebSocket with client id jellyfin-discord-bot...
[Nest] 28  - 10/14/2023, 7:23:30 PM   DEBUG [PlayItemCommand] Extracted 1 tracks from the search item
[Nest] 28  - 10/14/2023, 7:23:30 PM   DEBUG [PlayItemCommand] Adding 1 tracks with a duration of 267833.472 ticks
[Nest] 28  - 10/14/2023, 7:23:30 PM   DEBUG [JellyinPlaystateService] Reporting playback start on track 'xxx'
[Nest] 28  - 10/14/2023, 7:23:30 PM   DEBUG [JellyfinStreamBuilderService] Building stream for 'xxx' with bitrate 96000
[Nest] 28  - 10/14/2023, 7:23:31 PM   DEBUG [DiscordVoiceService] Playing audio resource with volume 1
[Nest] 28  - 10/14/2023, 7:23:31 PM   DEBUG [DiscordVoiceService] Initialized new instance of AudioPlayer because it has not been defined yet
[Nest] 28  - 10/14/2023, 7:23:31 PM   DEBUG [DiscordVoiceService] Audio player changed state from idle to buffering
[Nest] 28  - 10/14/2023, 7:23:31 PM VERBOSE [DiscordVoiceService] Reporting progress: 0 on track 4d78c6084308de2c8de5b7e32a58c434
[Nest] 28  - 10/14/2023, 7:23:31 PM     LOG [RegisterCommandService] All global commands are registered!
[Nest] 28  - 10/14/2023, 7:23:31 PM   DEBUG [DiscordVoiceService] Audio player changed state from buffering to playing

Thank you for getting this fix in, while it doesn't solve the issue fully for me, it's at least a step closer ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants